Skip to content

Instantly share code, notes, and snippets.

@makzimi
Last active November 2, 2022 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makzimi/1634f9f374ed1f1118ab811f4a82f8c1 to your computer and use it in GitHub Desktop.
Save makzimi/1634f9f374ed1f1118ab811f4a82f8c1 to your computer and use it in GitHub Desktop.
TransactionTooLargeException_article_Instrumentation.java
public ActivityResult execStartActivity(
Context who, IBinder contextThread, IBinder token, Activity target,
Intent intent, int requestCode, Bundle options) {
...
try {
...
// Call startActivity
int result = ActivityManagerNative.getDefault()
.startActivity(whoThread, who.getBasePackageName(), intent,
intent.resolveTypeIfNeeded(who.getContentResolver()),
token, target != null ? target.mEmbeddedID : null,
requestCode, 0, null, null, options);
checkStartActivityResult(result, intent);
} catch (RemoteException e) {
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment