Hi
I am creating an Android emulator on Windows 10 Pro PC. In apps or games, I want to able to press any key on my keyboard to tap a certain coordinate(X,Y.) I have successfully created an script to do that. However, I want to automatically start a certain script when the appropriate app is running. By an adb command, you can see the active window package ID:
adb shell "dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'"
It comes back with:
mCurrentFocus=Window{2b1c1a0 u0 com.mobirate.rovercraft.gplay/com.mobirate.activity.RCActivity}
mFocusedApp=AppWindowToken{454eeb3 token=Token{b03e817 ActivityRecord{5ae5496 u0 com.mobirate.rovercraft.gplay/com.mobirate.activity.RCActivity t6}}}
This indicated RoverCraft with a package ID "com.mobirate.rovercraft.gplay" is the active window. I know the Andy emulator on andyroid.net uses this but their .cfg files. I would like to create this on my emulator. How would I approach this?
Thank you
John
Android Emulator
Re: Android Emulator
Any help would be great.
Who is online
Users browsing this forum: hugojans, Pumpk11nnn and 66 guests