Posts Tagged ‘emulator’

Simulate a call from/to emulator by Telnet

July 7, 2011 1 comment

One of interesting things I’ve learned today is to simulate a call to Emulator by Telnet.

Just launch Command Prompt and query to connect to an emulator first:

C:\telnet localhost 5554

Assuming I’m calling to Emulator by this number: 01098276331, I issue this command:

gsm call 01098276331

You’d get this incoming call screen.

Incoming Call

Incoming Call

I want to make it a missed call, I issue this command

gsm cancel 01098276331

Checking the call log, you see the result:

Missed Call Log

Missed Call Log


There are more commands there, just type “help” to get more.


Hope you like it!



Pete Houston



Android Emulator Stolen Shot v1.0.15.36178

I’ve just created a simple tool for capturing Android screen on Emulator, well, it’s kind of support my work.

Application: Android Stolen Shot


Requirements: .NET Framework 2+




Not really providing many features, just an utility.

Download: Mediafire


Pete Houston

Capture Emulator Screen (using DDMS)

June 27, 2011 1 comment

There is a supported function in capturing screen of Android Emulator. Today, one of my colleagues told me, I was so surprised and got so sicked of the every past days, I took screenshots by Windows screen capture function, then cropping image using MS-Paint. Couldn’t believe this!!!!

Oh well, it’s on DDMS, just access menu Device->Screen Capture, and things are automatically.

DDMS: Screen Capture

DDMS: Screen Capture

I’d like to share to everyone of you, so you don’t do stupid things like I did.

Hope you like it!



Pete Houston


Emulator file management using DDMS

I’ve found another way to manage files on Android Emulator, that is, to use Dalvik Debug Monitor.

Launch program from here:

C:\Program Files\Android\android-sdk\tools\ddms.bat

Access menu Device->File Explorer, the dialog will appear.

DDMS File Explorer

DDMS File Explorer

You can browse/push/pull/delete files.

Use it when you don’t like to interact through command-line interface.

Hope you like it!


Pete Houston

Create and use emulated SD Card

June 26, 2011 16 comments

SD card is an external storage for mobile device, by default, it is not available in Android Emulator. What you need  to do is to create an emulated SD card for your Android Emulator.

1. Creating SD Card

Access to your Android SDK Tools folder and use command “mksdcard” in order to create one.

By default installation on Windows, the Tools folder should be here:

C:\Program Files\Android\android-sdk\tools

Using following syntax to create your desired SD Card

mksdcard [memory size] [output file]

For example, I’d like to create a SD card with 256 MB in memory and put the files in C:\Personel\AndroidNewbie\SDCard with file named “sdcard_dev.iso“, I do like this:

mksdcard 256M C:\Personel\AndroidNewbie\SDCard\sdcard_dev.iso

2. Using SD Card

You’ve done creating your desired SD Card, now you need it to be used by Android emulator. Open Eclipse, access to your project.

On menu Run -> Run Configurations, click on Android Configuration on the left tree menu, click on tab Target on the right pane. You will see at the bottom: “Additional Emulator Commandline Options” and an Input/Edit box below:

Just type your input sdcard following syntax

-sdcard [sdcard location]

For example, with the SD Card I’ve created above, I type:

-sdcard C:\Personel\AndroidNewbie\SDCard\sdcard_dev.iso


SD Card Settings

SD Card Settings

Now just run your emulator, you can access to your created SD Card.


Another way to run your Emulator with SDCard:

+ Open AVD Manager, click on the device you want to run with SDCard automatically, click on button Edit on the right menu. A setting dialog appears and just browse to your desired SDCard image:

SD Card Settings

SD Card Settings


3. Browse SD Card

There are many ways to browse SD Card, however, I will just tell you two common ways:

a. In Eclipse, open DDMS Perspective, and open File Explorer view, you can browse /sdcard directory.

In this mode, you can drag and drop files.

b. Using commandline, go to adb shell by typing:

adb -e shell

Then access to /sdcard directory by typing:

# cd /sdcard

You can use push/pull from adb shell to put files into sdcard or get files from it.

It’s quite handy-some, isn’t it?

Happy Android!


Pete Houston

Categories: Tutorials Tags: , ,

Get files from emulator/device

June 25, 2011 6 comments

Sometimes, you might want to get files from devices for inspection, well, something like your SQLite databases, or file output…

This is how you do it:

adb pull [remote_device_path] [local_path]

Ok, a sample when I want to get my database from device to local:

adb pull /data/data/ C:\Downloads\images.db

Very effective and simple!
Hope you like it!

Pete Houston

Categories: Tricks & Tips Tags: , , , ,

Push files/directories into emulator/device

June 25, 2011 1 comment

In order to put files or directories into emulator/device, you need to issue command “push” from adb with following syntax:

adb push [local_path] [remote_device_path]

Here a sample if I want to put a file named ‘data.txt‘ into my folder in device: ‘/data/data/‘, I issue this command

adb push C:\data.txt /data/data/

To check whether the file pushed into devices succeeded or not, I will try:

ls /data/data/

If file ‘data.txt‘ appears, then it was pushed inside successfully.

Hope you like it!

Pete Houston

Categories: Tricks & Tips Tags: , , , , ,