You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
deviceClient.StartApp("com.android.app"); doesn't work #90
HI! I have updated package from 2.5.8 to 3.0.9 buy found that deviceClient.StartApp("com.android.app"); doesn't open apk on smartphone There are no errors in log. I use NET Framework 4.8
Here is my code. App installed but can't run. The problem is on all android smartphones package version 3.0.9, in 2.5.8 there is no problem but problem is with getting elements on adroid 9
varserial=client.GetDevices().FirstOrDefault().Serial;// You get the first connected device's serial.client.Connect(serial);// Then you connect it again.vardeviceData=client.GetDevices().FirstOrDefault();// Now I don't know which device you would get...
And StartApp is sending monkey -p xxx 1 to the Android shell. You can try to using adb shell monkey -p xxx 1 on adb command line.
You are right but in any case I can't start apk after installing, comman doesn't run application, nothing happens. But all works on 2.5.8 So I think there is some promler in latest version of Advanced Sharp Adb I try to found whre is problem Can you show actual examples on real smartphone or maybe you need test on facebook apk?
Activity
wherewhere commentedon Feb 8, 2024
It works on my device...
screen-20240208-115733.3.mp4
evolution1987 commentedon Feb 8, 2024
On my visual studio Start app works on 2.5.8 version but not in 3.0.9
wherewhere commentedon Feb 8, 2024
.net4.8 also works.
Try using
client.StartApp(device, "com.bilibili.app.in")evolution1987 commentedon Feb 8, 2024
Here is my code. App installed but can't run. The problem is on all android smartphones package version 3.0.9, in 2.5.8 there is no problem but problem is with getting elements on adroid 9
wherewhere commentedon Feb 8, 2024
So what's your old code?
evolution1987 commentedon Feb 8, 2024
This code with 3.0.9 version and StartApp doesn't work
wherewhere commentedon Feb 8, 2024
But it works on my device. I need to know the difference to figure out what happened...
And why you connect a connected device?
wherewhere commentedon Feb 8, 2024
And
StartAppis sendingmonkey -p xxx 1to the Android shell. You can try to usingadb shell monkey -p xxx 1on adb command line.evolution1987 commentedon Feb 8, 2024
You are right but in any case I can't start apk after installing, comman doesn't run application, nothing happens. But all works on 2.5.8 So I think there is some promler in latest version of Advanced Sharp Adb I try to found whre is problem Can you show actual examples on real smartphone or maybe you need test on facebook apk?
wherewhere commentedon Feb 8, 2024
evolution1987 commentedon Feb 8, 2024
Tell me please, in method client.Connect("ip:port") can I use name of device as ip:port?
wherewhere commentedon Feb 8, 2024
No, you can only use ip and port like
192.168.1.19:37146.If you connected with USB, you can ignore it.
evolution1987 commentedon Feb 8, 2024
So, if I connect my smartphone via USB I can ignore the line client.Connect("ip:port")?
wherewhere commentedon Feb 8, 2024
Yes.
evolution1987 commentedon Feb 8, 2024
Thank you very much, I will try to discover my problem again
evolution1987 commentedon Feb 9, 2024
Hello! I can run app using shell as you said me, but comand StartApp from documentaion doesn't work for me. In any case, you can help me, thanks
wherewhere commentedon Feb 22, 2024
I don't know what happened...
wherewhere commentedon Feb 22, 2024
I have no idea...
liditingziya commentedon Jan 14, 2025
I encountered the same problem.

This code works in
v2.5.8, but it has no effect in versions above it.