Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Thursday, December 9, 2010

Android SDK - Emulator - on MAC

Ok, now that i have my first app built in android, i want to give it to my client for a demo who does not have a android PAD, (or yet to have one)...so they have to use the emulator which comes with android SDK to install the APP and show it running like its an android device....
the steps are pretty much simple
(please note you dont need Eclipse or any plugin to just run a APK (android package), - they are needed only for developers to debug and stuff)...

1) install android SDK(google has enuf details for it)
2) RUN the emulator so taht it starts up and ready to install your app
3) copy the APK file to a particular folder (say Desktop)
4) open up the terminal and navigate to the andoird SDK folder

$ cd ./android
$ cd platform-tools
your current working directory would be the platform-tools which contains a file called ADB.exe which will install the APK to the android emulator device...
execute the command
$ ./adb install "APK file name"

it will show some messages like installing etc., and has to finally say SUCCESS...

go to the emulator and open up the menu by clicking the android menu button (its the little dots stacked at the bottom of the page and not the button labelled "MENU" on the emulator)

you must then see your app being displayed as an icon....

happy androiding...

Wednesday, December 8, 2010

Install APK file from command Prompt

 I have now finished with my POC and want to install it in my android emulator outside of Eclipse.

Here are the steps

Execute the emulator so that it starts and is ready to install new programs.
(you need to run the emulator.exe under the android SDK\Tools folder)
1) copy the APK file (which will under /bin directory) to "C:\myProject.apk" (this step is really not needed, but its just a failsafe method)

2) open the command prompt (in your PC and not in the emulator) and type

abd install c:\myProject.apx

this will install the APK file in the emulator

3) If you are getting "command not found" - navigate to the Android SDK/Tools folder
cd x:/androidsdkfolder/tools
and run command again.....

happy androiding !!!!