Ok, so I know that you found another solution, but I searched for it and found something that worked for me. Instead of calling an intent, I used pendingIntent, an intent filter and a pending post. Here is a code snippet for everyone else having this problem.
Context context = MyApplication.this.getApplicationContext(); Intent errorActivity = new Intent("com.error.activity");//this has to match your intent filter errorActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pendingIntent = PendingIntent.getActivity(context, 22, errorActivity, 0); try { pendingIntent.send(); } catch (CanceledException e) { // TODO Auto-generated catch block e.printStackTrace(); }
Then in your manifest just make sure you set the intent filter for fishing activity
<activity android:name="UncaughtErrorDialogActivity" android:theme="@android:style/Theme.Dialog" > <intent-filter> <action android:name="com.error.activity" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
Mike israel
source share