I do some mobile browser testing in the Android web browser through the Android SDK in Linux and I have a couple of questions:
- Can I run an Android Virtual Device without the entire Android SDK?
- Can I autostart the web browser when starting an Android Virtual Device/emulator?
I’m not sure why you want to do 1), but 2) is possible if you’re willing to do a bit of work. You have to create a simple Android app that receives the BOOT_COMPLETED hardware event and then launches the browser. Once this app is installed, your browser will start automatically.
Little background knowledge: How to start an Android project
The app is pretty simple. You need to declare that your app is to digest the BOOT_COMPLETED event. You can do this in the AndroidManifest.xml:
Then, you just need to implement the BrowserStartupIntentReceiver class. Its only function is to broadcast an intent to the OS to launch the browser.
That should launch the browser when the emulator boots up. Though, it might not be worth going to such lengths to avoid the extra button press.