Android emulator browser connection while screen is off -
I'm thinking that the browser can not connect to the internet when the screen is off in an Android emulator?
My application will use the browser to connect to the web server when the screen is off I use
startActivity (new intent (Intent.ACTION_VIEW, Uri.parse (CommonVariable.BOTNET_HOST + Command)) setFlags (Intent.FLAG_ACTIVITY_NEW_TASK));
After receiving a server request, it will redirect the browser to a specific plan called iLoivo: // Blublblah. This plan will start my activity when the browser gets the scheme. I have tested this method when walking on the screen, and everything is fine.
When I test my app, the server does not get anything until the screen is turned on. However, activity manager in lockback starts the activity with intent when the scan is closed. So I'm wondering if the browser connection is disabled when the screen is off?
What is the special reason you need a browser? Because you can invite your app directly through the custom app (like iloveu: // blahblahblah )
Comments
Post a Comment