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

Android: simulate incoming call

Hi,

There are at least 2 ways of making incoming calls to your test device (either real device or emulator).

Solution A: Make the call from within Eclipse DDMS UI



Solution B: Make the call using command line

1. List the available devices:

$ adb devices

List of devices attached
localhost:5554    device


2. Telnet to the device:
$ telnet localhost 5554

3. Make the incoming call:
> gsm call <specify_number>



Cheers!


Android Emulator: How to run APK file?

If you want to install and run APK on the emulator device follow the steps below.


You will be using adb script which should be located in android-sdks/platform-tools/

1. List the available devices:
$ ./adb devices

2. Install the APK file:
$ ./abd install example_app.apk



Success!