ActivityForceNewTask

Apps can launch other apps' activities inside their task. This makes it impossible to switch back and forth between the two. This module sets the FLAG_ACTIVITY_NEW_TASK flag when starting a new activity, which 'fixes' that. See the XDA thread for more info.

Screenshot explanation.

Author(s): 
Package: 
com.germainz.activityforcenewtask
Version name: 
2.1.3
Release type: 
Stable (low risk of bugs)
Number of downloads: 
113,514 in total · 74 in the last 24 hours
MD5 checksum: 
9e7e93fa6557b087e5fc0e2620a6a5b4
Uploaded on: 
Tuesday, April 14, 2015 - 17:34
Changes: 
  • Compatibility with Lollipop.
  • Added Spanish translation and updated Portuguese (Brazil) and Slovak translations. Thanks to Jose Artuñedo, meatboy371 and ja-som.
Version name: 
2.1.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
130,916 in total · 4 in the last 24 hours
MD5 checksum: 
de1bab61d0ff834dad4b8458afa92273
Uploaded on: 
Thursday, June 12, 2014 - 15:36
Changes: 
  • The blacklist/whitelist settings are now only reloaded when necessary. Shouldn't make a big difference unless you have huge lists.
  • 4.4.3 fix: get the context using a different method (fixes logging on 4.4.3).
  • Added Portuguese (Br) translation by meatboy371.
  • Added Spanish translation by Jose Artuñedo (@JoseArtuRod)
Version name: 
2.0.3
Release type: 
Stable (low risk of bugs)
Number of downloads: 
25,395 in total · 1 in the last 24 hours
MD5 checksum: 
b1d9cadef849024ac33ba30f737f3dc6
Uploaded on: 
Thursday, May 1, 2014 - 19:29
Changes: 
  • Only use context for logging;
  • Try to get the context in an alternate manner if the first one fails;
  • Bug fix: current package wasn't being detected properly;
  • Only start activities in a new task when the caller does not expect a result (different, more general implementation.) Fixes issues with e.g. Mobile ODIN file selection, WhatsApp image sharing, etc.
Version name: 
2.0.2
Release type: 
Stable (low risk of bugs)
Number of downloads: 
13,578 in total · 0 in the last 24 hours
MD5 checksum: 
31304e5db38b50e79833f81249e0e257
Uploaded on: 
Friday, April 11, 2014 - 20:29
Changes: 
  • Reverted back to hooking ActivityRecord's constructor. Should solve the issue where some activities' launches weren't being detected.
  • Updated Slovak translations
Version name: 
2.0
Release type: 
Stable (low risk of bugs)
Number of downloads: 
7,338 in total · 0 in the last 24 hours
MD5 checksum: 
4404b763504261accf45e94bee55cd8c
Uploaded on: 
Thursday, April 3, 2014 - 16:20
Changes: 

You need to clear the app's data.

  • Ignore activities that are launched by their own apps;
  • Added filtering options back. You can choose between the whitelist and the blacklist, but the no filtering option has been removed;
  • Added help dialogs for the whitelist/blacklist/log;
  • Bug fix: duplicate log entries when returning to the app with the log viewer open.
  • Other minor changes: use icons for action bar items, reorder preferences.
Version name: 
1.9.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
5,551 in total · 0 in the last 24 hours
MD5 checksum: 
b5dc460d01904e68c6ae2ace94b111af
Uploaded on: 
Saturday, March 29, 2014 - 22:16
Changes: 

Something went wrong with 1.9 while building, and caused it not to work. Rebuild.

Version name: 
1.9
Release type: 
Stable (low risk of bugs)
Number of downloads: 
693 in total · 1 in the last 24 hours
MD5 checksum: 
2fbc2cf6fae33a86dc7ab7c2f81c7299
Uploaded on: 
Saturday, March 29, 2014 - 21:03
Changes: 
  • Removed none/blacklist filtering options. The whitelist is always used now (renamed to "Enabled Components") which means that you must configure the module, as it won't do anything by default.
  • Reverted back to hooking Activity.startActivity(Intent, Bundle). Other methods used to start an Activity require the usage of FLAG_ACTIVITY_NEW_TASK, so it doesn't actually make sense to hook anything else. Also removed the alternate way to get a context as it shouldn't be needed anymore.
  • Check if FLAG_ACTIVITY_NEW_TASK is already set, and do nothing if that's the case (the activity won't be logged either.)
  • Updated Slovak translations (by ja-som.)
Version name: 
1.8.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
6,542 in total · 0 in the last 24 hours
MD5 checksum: 
b407fdfe3e623322b912e4e3c896e6d7
Uploaded on: 
Sunday, March 23, 2014 - 20:15
Changes: 
  • Fix some crashes at startup;
  • Add FLAG_ACTIVITY_NEW_TASK flag instead of overwriting it. This fixes issues with XHalo and some apps showing in recents when they shouldn't;
  • Updated translations.
Version name: 
1.7.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
7,058 in total · 0 in the last 24 hours
MD5 checksum: 
018e8df3119b07e390b625f70c3e1de5
Changes: 

German translation.

Version name: 
1.7
Release type: 
Stable (low risk of bugs)
Number of downloads: 
358 in total · 0 in the last 24 hours
MD5 checksum: 
44f93623e78c72d110fe256b5043b528
Changes: 

Different hook, the previous one didn't catch all new activities.

Version name: 
1.6.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
8,475 in total · 0 in the last 24 hours
MD5 checksum: 
8a85c1f2d624c8caab677e39b731fe52
Changes: 

Removed unnecessary logging.

Version name: 
1.6
Release type: 
Stable (low risk of bugs)
Number of downloads: 
7,873 in total · 0 in the last 24 hours
MD5 checksum: 
91f955ee56c29d3af38c60b7683c6d61
Changes: 

Added whitelist. You can either choose the whitelist or the blacklist now to filter activities, or none if you use neither.

Version name: 
1.5
Release type: 
Stable (low risk of bugs)
Number of downloads: 
2,855 in total · 0 in the last 24 hours
MD5 checksum: 
11ee7ae1495c6f406fee00b408e33866
Changes: 
  • Added option to enable/disable the blacklist (and log.) The blacklist requires a few extra calls which are unnecessary if you don't use it, so I'd advise you don't enable it unless you need it.
  • Cleanup/better performance for the log viewer.
Version name: 
1.4
Release type: 
Stable (low risk of bugs)
Number of downloads: 
2,959 in total · 0 in the last 24 hours
MD5 checksum: 
1afbc79b6dc5acad35819c2de6182c45
Changes: 
  • The mod will now only modify intents that should be modified. This should fix all breakage without needing the blacklist. \o/
  • Log viewer improvements: tapping on an item now removes it from the list after adding it to the blacklist, and a toast is shown to indicate if it's been added to the blacklist.
Version name: 
1.3
Release type: 
Stable (low risk of bugs)
Number of downloads: 
998 in total · 0 in the last 24 hours
MD5 checksum: 
b2f17940fe01e089c4ec70e4e9550e54
Changes: 

Use flat text file for storing the logs instead of SharedPreferences. This is much better for performance, especially if the log gets long
Clearing the application's data is recommended (nothing bad will happen if you don't, but the old log won't be cleared from SharedPreferences if you don't.) Sorry for the inconvenience.

Version name: 
1.2
Release type: 
Stable (low risk of bugs)
Number of downloads: 
500 in total · 1 in the last 24 hours
MD5 checksum: 
0f4eda9d80cd16295a3e661858b89139
Changes: 
  • The blacklist is now for activities (that are about to be launched,) not the class name that launched the intent.
  • You can enable/disable logging from within the app.
  • Added log viewer to the app. You can tap a log entry to directly add it to the blacklist.
  • Fixes.
Version name: 
1.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
760 in total · 2 in the last 24 hours
MD5 checksum: 
5a083a20dba515f5ea072945176507b9
Changes: 

Fixes for the two icons appearing in the launcher.
Disable text correction when adding a blacklist item.

Version name: 
1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
568 in total · 0 in the last 24 hours
MD5 checksum: 
3ede5983da5563e3304648f704862c4f
Changes: 

Initial release.