How to prevent the toasting process

When I execute this code

  try {
         process = Runtime.getRuntime().exec(new String[]{"su", "-c", "reboot bootloader"});
         process.waitFor();
      } catch (Exception e) {
         e.printStackTrace();
      }

      

it creates a Toast " reload bootloader "

I believe SuperSU is showing toast.

how can i prevent it.

+3
android android-studio


source to share


No one has answered this question yet

Check out similar questions:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2284
How can I fix 'android.os.NetworkOnMainThreadException'?
1844
How to place text horizontally and vertically in a TextView?
1002
Grid motion detection
935
Eclipse Cannot Start - Java was started but exit code returned = 13
703
How can I avoid reverse engineering my APK file?
702
How to detect when a fragment becomes visible in the ViewPager
551
How do I make an Android Spinner with a "Select One" seed?
299
How do I create a dialog box without a title bar?
45
Use Toast inside a fragment



All Articles
Loading...
X
Show
Funny
Dev
Pics