- Open Android Studio
- Go to: Tools > Create Command-line Launcher
- Leave as default, Press OK
- Add the following lines to your
.gitconfig
import androidx.fragment.app.FragmentActivity | |
class LoggerCrashHandler(private val app: FragmentActivity) : Thread.UncaughtExceptionHandler { | |
private val defaultUEH: Thread.UncaughtExceptionHandler? = | |
Thread.getDefaultUncaughtExceptionHandler() | |
override fun uncaughtException(t: Thread, e: Throwable) { | |
var arr = e.stackTrace | |
var report = "$e\n\n" | |
report += "--------- Stack trace ---------\n\n" |
--- !https://twitter.com/PoliceNG/status/1204006677990821888?s=19 | |
states: | |
- state : abia | |
phones: | |
- '0803541540' | |
- '08079210003' | |
- '08079210004' | |
- '08079210005' | |
- state : adamawa | |
phones: |
package com.your.package | |
import android.app.Dialog | |
import android.os.Bundle | |
import com.your.package.R | |
import com.google.android.material.bottomsheet.BottomSheetDialog | |
import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
/** | |
* BottomSheetDialog fragment that uses a custom |
public class FragmentObserver extends Observable { | |
@Override | |
public void notifyObservers() { | |
setChanged(); // Set the changed flag to true, otherwise observers won't be notified. | |
super.notifyObservers(); | |
} | |
} |