is the location of the text file you want to open.-d is to allow data to be passed to the app's activity.-n will allow to launch the app's mentioned component.Open your favorite terminal app in Android and enter: su Keep the whole string ( /.) ready to be used. You may use the command dumpsys activity to see some more useful stuff. The output may look like: mFocusedActivity: ActivityRecord Open the file manually in the editor using GUI, and make sure that it stays active on the screen.Ĭonnect your phone into PC in debugging mode, setup ADB on PC, and enter into PC's terminal/cmd the commands: adb shell.Note: Tested the solution on Android 4.2, 4.4 and 5.0. In that case, first identify the activity responsible for the edit window you see when the file is opened in the editor using GUI. You'll have to use am start combined with certain to launch the app or a particular section of it.įrom the comments, it seems that you may want to launch the text file using ES Note Editor. Launching apps in Android isn't straightforward.
0 Comments
Leave a Reply. |