Monday, February 14, 2011

android dev basic tools

Installing an Application

adb install <path_to_apk>

How to create sdcard ?

mksdcard 256M mysdcardfile

How to load sdcard ?
emulator -sdcard ./mysdcardfile

Copying Files to or from an Emulator/Device Instance

To copy a file or directory (recursively) from the emulator or device, use
adb pull <remote> <local>

To copy a file or directory (recursively) to the emulator or device, use
adb push <local> <remote>

How to view Processes
run /tools/ddms (Dalvik Debug Monitor)
You can see the output of ps -x for a specific VM by selecting Device > Show process status... in the menu bar.

File Explorer: Device > File Explorer...

Copy file/folder to sdcardimage, create bat file with this command
adb connect <IP address of your Android phone>
adb push %1 /sdcard/
pause

Mounting a SD card image in Linux
sudo mount -o loop my128MbCard /media/mycard

No comments:

Post a Comment