Back to project page twawm2.
The source code is released under:
Copyright (c) 2014, afnf All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistr...
If you think the Android project twawm2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.appspot.afnf4199ga.twawm.app; //from ww w .j av a 2 s. c om import android.app.Application; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Intent; import android.content.res.Configuration; import com.appspot.afnf4199ga.twawm.Const; import com.appspot.afnf4199ga.utils.MyUncaughtExceptionHandler; public class MainApp extends Application { @Override public void onCreate() { // UncaughtExceptionHandler???? MyUncaughtExceptionHandler.init(this); } @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); // Logger.v("MainApp onConfigurationChanged"); Intent intent = new Intent(Const.INTENT_WD_STYLE_CHANGED, null, this, DefaultWidgetProvider.class); AppWidgetManager appWidgetMgr = AppWidgetManager.getInstance(this); ComponentName cm = new ComponentName(this, DefaultWidgetProvider.class); int[] appWidgetIds = appWidgetMgr.getAppWidgetIds(cm); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds); sendBroadcast(intent); } }