Skip to content

Instantly share code, notes, and snippets.

View wizmea's full-sized avatar

Arcadius TCHOKPODO wizmea

View GitHub Profile
@wizmea
wizmea / App.java
Created September 5, 2017 09:45
Handle all android app exception
public class App extends Application {
// Called when the application is starting, before any other application objects have been created.
// Overriding this method is totally optional!
@Override
public void onCreate() {
super.onCreate();
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread paramThread, Throwable paramThrowable) {
Log.e("Error"+Thread.currentThread().getStackTrace()[2],paramThrowable.getLocalizedMessage());
}
@wizmea
wizmea / newapp.java
Last active May 31, 2020 16:36
check android app version playstore and force update
private void checkNewAppVersion(Context context,int view){
final String link = "https://play.google.com/store/apps/details?id="+getPackageName() + "&hl=en";
new AsyncTask<Void, Void, String>() {
@Override
protected String doInBackground(Void... strings) {
try {
Log.e("startVersion","start");
String newVersion = Jsoup
.connect(link)
.timeout(30000)
@wizmea
wizmea / README.md
Created January 27, 2017 15:14 — forked from lopspower/README.md
Material Animations

Material Animations

Android Arsenal

[Android Transition Framework][transition-framework] can be used for three main things:

  1. Animate activity layout content when transitioning from one activity to another.
  2. Animate shared elements (Hero views) in transitions between activities.
  3. Animate view changes within same activity.