This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.pay.app.controls | |
| import android.content.Context | |
| import android.content.res.TypedArray | |
| import android.graphics.Typeface | |
| import android.util.AttributeSet | |
| import androidx.appcompat.widget.AppCompatTextView | |
| import com.pay.app.R | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun setTheme(activity: Activity) { | |
| StoreUserData(activity).setString( | |
| Constants.DEVICE_ID, | |
| Settings.Secure.getString(activity.contentResolver, Settings.Secure.ANDROID_ID) | |
| ) | |
| if (StoreUserData(activity).getString(Constants.THEME_TYPE) == Constants.THEME_BLACK_WHITE) { | |
| if (StoreUserData(activity).getString(Constants.FONT_SIZE) == Constants.FONT_LARGE) { | |
| activity.setTheme(com.qirat.R.style.AppThemeBlackWhiteLarge) | |
| } else { | |
| activity.setTheme(com.qirat.R.style.AppThemeBlackWhiteSmall) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.blinddate.fcm; | |
| /** | |
| * Created by arthtilva on 15-08-2016. | |
| */ | |
| import android.app.NotificationChannel; | |
| import android.app.NotificationManager; | |
| import android.app.PendingIntent; | |
| import android.content.Context; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.android.downloadablefonts; | |
| import android.app.Application; | |
| import android.graphics.Typeface; | |
| import android.os.Handler; | |
| import android.os.HandlerThread; | |
| import android.support.v4.provider.FontRequest; | |
| import android.support.v4.provider.FontsContractCompat; | |
| import android.util.Log; | |
| import android.widget.Toast; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mfinity.doodlephotoeditor.customview; | |
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.content.res.Resources; | |
| import android.graphics.RectF; | |
| import android.graphics.Typeface; | |
| import android.os.Build; | |
| import android.text.Layout.Alignment; | |
| import android.text.StaticLayout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mfinity.doodlephotoeditor.customview; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BlurMaskFilter; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.Paint.Join; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mfinity.doodlecamera.sticker; | |
| import android.annotation.SuppressLint; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.Shader.TileMode; | |
| import android.graphics.Typeface; | |
| import android.text.TextPaint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Typeface; | |
| import android.text.TextPaint; | |
| import android.util.AttributeSet; | |
| import android.view.Gravity; | |
| public class VerticalTextView extends android.support.v7.widget.AppCompatTextView { | |
| final boolean topDown; | |
| public static final String ANDROID_SCHEMA = "http://schemas.android.com/apk/res/android"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void launchUPI() { | |
| // look below for a reference to these parameters | |
| Uri uri = Uri.parse("upi://pay").buildUpon() | |
| .appendQueryParameter("pa", "xxx@xxxxx") | |
| .appendQueryParameter("pn", "XYZXYZ") | |
| .appendQueryParameter("tn", "Pay for in-app purchase") | |
| .appendQueryParameter("am", "20") | |
| .appendQueryParameter("cu", "INR") | |
| .build(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActivityManager manager = (ActivityManager) activity.getSystemService(activity.ACTIVITY_SERVICE); | |
| List<ActivityManager.RunningAppProcessInfo> runningApps = manager.getRunningAppProcesses(); | |
| Log.i("TAG", "onCreate: " + runningApps.size()); | |
| for (ActivityManager.RunningAppProcessInfo runningApp : runningApps) { | |
| // Get UID of the selected process | |
| int uid = runningApp.uid; | |
| // Get traffic data | |
| long received = TrafficStats.getUidRxBytes(uid); | |
| long send = TrafficStats.getUidTxBytes(uid); | |
| Log.v("bytes" + uid, "Send :" + send + ", Received :" + received); |
NewerOlder