Simulating incoming call or sms in Android Studio

16.3k views Asked by At

Its possible to spoof calls and messages using DDMS in Eclipse IDE but how can I do it in Android Studio? There must be a way.

2

There are 2 answers

4
CommonsWare On BEST ANSWER

Open the Android Device Monitor via Tools > Android > Android Device Monitor. The Monitor has the same "Emulator Control" tab that you are used to from Eclipse's DDMS.

4
raddevus On

Even after reading the answer here I couldn't find the phone call simulator that I've used in the past directly from the Android Device Monitor.

The following works in Android Studio 2.2.3 with associated Android Virtual Devices.

I read someone's note and then I remembered the menu items next to the emulator. Click the ellipsis button :

emulator ellipsis

After you click that button the window I was looking for appeared.
You can see there are various tabs that will allow you to simulate a phone call, an incoming text, etc.

simulate incoming messages, etc.

Android Studio Early October, 2020 I still see the ellipsis and other options.

Here's my current version: Android Studio 4.0.2 Build #AI-193.6911.18.40.6821437, built on September 8, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 5.4.0-52-generic

Emulator Version

30.1.5-6855416

emulator options

Latest Version 4.1 Android Studio 4.1 Build #AI-201.8743.12.41.6858069, built on September 23, 2020 Runtime version: 1.8.0_242-release-1644-b3-6222593 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 5.4.0-52-generic GC: ParNew, ConcurrentMarkSweep Memory: 1979M Cores: 12 Current Desktop: ubuntu:GNOME

New Run In Android Studio Option This new Run Emulator in Android Studio Option may cause the problem of finding the options. run emulator in studio option

Run Emulator Outside of Android Studio for Options

My emulator still runs outside of Android Studio and I see the ellipsis and options just as in the previous 4.01 version of Android Studio.

Turn This Option Off

If you want those other options for now it looks like you need to run the Emulator in it's own window (instead of inside of Android Studio).

Turn the option off under File...Settings...

Uncheck the following checkbox...

turn off run inside