Question

There's documentation to build the android source code base. But it's hard to find information on how to run the android os and its applications in the emulator environment so you can test your changes.

Can anyone point me in the right direction? I am unfamiliar with Linux development.

Was it helpful?

Solution

you need to run the emulator you just built. if you've followed the build instructions, it should be on your path, so just run it.

running "source build/envsetup.sh" from the root of your source tree is a good way to ensure you've got pretty much the same setup that google engineers use.

a quick web search found this, which looks about right to me:

http://devtcg.blogspot.com/2009/03/building-running-and-debugging-android.html

(though i'd use "lunch generic-eng" rather than a numeric lunch. and, yes, that really is "lunch", as in "lunch combo", as in "what would you like today?".)

if you want to test on a device, there are extra instructions:

http://source.android.com/documentation/building-for-dream

OTHER TIPS

Please check Debugging Android Framework services. Even though it was written for real device, I don't see any reason why it doesn't for an emulator.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top