diff --git a/README.md b/README.md index fa1fc13..21fcf21 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ - [File access](#file-access) - [Webview URLS](#webview-urls) - [Await for specific module to load](#await-for-condition) + - [Android make Toast](#android-make-toast) - [TODO list](#todos) #### Intercept and backtrace low level open @@ -407,6 +408,19 @@ Java.perform(function() { }); ``` +#### Android make Toast +``` +Java.scheduleOnMainThread(function() { + Java.use("android.widget.Toast") + .makeText( + Java.use("android.app.ActivityThread").currentApplication().getApplicationContext(), + "Text to Toast here", + 0 // https://developer.android.com/reference/android/widget/Toast#LENGTH_LONG + ) + .show(); +}); +``` + #### TODOs - Add GIFs & docs - Add links to /scripts