android make toast
This commit is contained in:
parent
87944ff808
commit
8b27ea4663
14
README.md
14
README.md
@ -18,6 +18,7 @@
|
|||||||
- [File access](#file-access)
|
- [File access](#file-access)
|
||||||
- [Webview URLS](#webview-urls)
|
- [Webview URLS](#webview-urls)
|
||||||
- [Await for specific module to load](#await-for-condition)
|
- [Await for specific module to load](#await-for-condition)
|
||||||
|
- [Android make Toast](#android-make-toast)
|
||||||
- [TODO list](#todos)
|
- [TODO list](#todos)
|
||||||
|
|
||||||
#### Intercept and backtrace low level open
|
#### 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
|
#### TODOs
|
||||||
- Add GIFs & docs
|
- Add GIFs & docs
|
||||||
- Add links to /scripts
|
- Add links to /scripts
|
||||||
|
Loading…
Reference in New Issue
Block a user