I try to install android market on emulator using these instructions – How to install android market on emulator for all api's, but after restarting emulator all changes are lost.
In other guide, I read that I need to remove some .img files from device avd folder, but it doesn’t work. What else can I do to permanently install market to emulator?
As you told me you need this for test-purpose, I think it isn’t worth the trouble. Don’t you know any person with an Android device to test it? I know this isn’t the answer you expect – but as it is recommended to test on a real device anyhow – here my suggestion:
I’ve been using this code in a few apps which are in the market and it works fine:
The link in the string could look like this: market://details?id=com.google.zxing.client.android
To prevent this code from crashing on the emulator (obviously there is no PlayStore) you can wrap this code in a try catch blog: