android make toast

This commit is contained in:
iddoeldor 2018-08-05 17:13:17 +03:00 committed by GitHub
parent 87944ff808
commit 8b27ea4663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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