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.myapplication.utils | |
import android.app.Activity | |
import android.app.Application.ActivityLifecycleCallbacks | |
import android.os.Bundle | |
import android.util.Log | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleObserver | |
import androidx.lifecycle.OnLifecycleEvent | |
import androidx.lifecycle.ProcessLifecycleOwner |
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.app.base.ui.register.view | |
import android.annotation.SuppressLint | |
import android.content.Intent | |
import android.os.Bundle | |
import android.util.Log | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import com.app.base.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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
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
/** | |
Use below method to filter the list | |
Collections.sort(data.videos, MoreViewComparator()) | |
*/ | |
data class VideosItem( | |
@field:SerializedName("author_name") | |
val authorName: String? = null, | |
@field:SerializedName("updated_on") |
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
class ScheduleVersesOfDay(private var context: Context,private var workerParams: WorkerParameters) : Worker(context, workerParams) { | |
override fun doWork(): Result { | |
Log.e(TAB, "PeriodicWork in BackGround") | |
sendNotification("Work Manager", "This is the scheduled notification") | |
return Result.success() | |
} | |
companion object { | |
private val TAB = ScheduleVersesOfDay::class.java.simpleName | |
} |
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.Manifest | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.location.Location | |
import android.net.Uri | |
import android.os.Looper | |
import android.provider.Settings |
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.e.imagecompressor | |
import android.app.Activity | |
import android.content.Context | |
import android.content.Intent | |
import android.database.Cursor | |
import android.graphics.Bitmap | |
import android.graphics.BitmapFactory | |
import android.net.Uri | |
import android.os.Bundle |
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.gabesechan.android.reusable.receivers; | |
import java.util.Date; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.telephony.TelephonyManager; | |
public abstract class PhonecallReceiver extends BroadcastReceiver { |
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
<?xml version="1.0" encoding="utf-8"?><!-- res/drawable/rounded_edittext_focused.xml --> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:padding="10dp" | |
android:shape="rectangle"> | |
<corners android:radius="10dp" /> | |
<solid android:color="#33363E" /> | |
<stroke | |
android:width="0.9dp" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape> | |
<solid android:color="#ff0000"/> | |
</shape> | |
</item> | |
<item | |
android:right="50dp"> | |
<shape> |