Installing Android Market application to emulator

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Installing Android Market application to emulator

Postby rohitmandiwal » Thu Oct 22, 2009 1:21 pm

Hi Dudes,

Here I come with the solution to install to Android Market Application (Vending.apk) to emulator. Please have a look on the required steps I've taken.

1) Downloaded and installed the android SDK.
2) Run the command prompt and go to the tools dir in the SDK.
3) Generated an avd with 1.5 as target with the a default hardware profile. ('android list target' get a list of targets, 'android create avd -n enhanced -t 2' creates the avd as target 2)
4) Download and unzip this image file. update-cm-3.6.5-signed.system.img.zip (http://content.modaco.net/dropzone/upda ... em.img.zip) extracted it and put the system.img in the enhanced.avd folder ("C:\Documents and Settings\rohit\.android\avd\enhanced.avd").
5) Opened the emulator through a project in eclipe. But can be done as command as well 'emulator -avd enhanced'.

The solution is tested and working fine.

I need to do this when I need to launch an application available on android market with "market://" URL.
Here is how I did that:

[font=Courier New]Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:com.cdnsol.t2g.main"));
startActivity(intent);[/font]

I hope this will help you :)

Regards,
Rohit Mandiwal
rohitmandiwal
Freshman
Freshman
 
Posts: 2
Joined: Fri Jul 31, 2009 12:34 pm

Top

Is there a newer version available?

Postby gcstang » Fri Jan 22, 2010 4:33 pm

1.5 is a little old now do you have something newer?

I was hoping to do this in one of the newer versions of the Emulator and SDKs.

Thank you,
gcstang
Freshman
Freshman
 
Posts: 8
Joined: Sun Jan 03, 2010 12:37 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests