How can I make an incoming call in Genymotion emulator for Android?
I am using Genymotion emulator to run and test my application.
In the native emulator DDMS, we can make a fake call. Can this be done using the Genymotion emulator?
There is no way to do that in Genymotion yet.
UPDATE:
Since version 2.4.0 Genymotion supports phone ans SMS emulation.
You can control it from the UI, using the dedicated widget or the Java API to launch it from your Java instrumented tests code.
Disclaimer: I work for Genymotion.
I found the call function in Genymotion...
The Phone widget allows to test applications relying on telephony features and observe their behavior when receiving a call or a text message.
To use the Phone widget, click or Ctrl + 8.
To simulate an incoming call:
Enter an incoming phone number.
Click Call.
To simulate an incoming message:
1.Enter an incoming phone number.
2.Enter a text message.
3.Click Send message.
The text message is displayed in the virtual device via a notification and can also be read in the Messaging application.
:( This feature is only available with Indie and Business licenses.
It is not implemented yet, but for testing purposes give 911 in your number field. This will take you to the dialer without throwing Mobile network not available.
You can also try 911856, 911782222, 911666666, etc.
As long as it starts with 911 this would suffice for testing purposes!!!
Related
I want to fake an incoming call on my own (physical!!! -> not the emulator) android device. I know there are lots of apps that actually can do that, which means it cant be that hard - I just need a hint. Searching the net only brings up apps which do the job.
I am looking for a way how to automate incoming calls for testing with MonkeyTalk. That means I can run some external scripts. In our Continuous Integration tool I need something capable of running in the headless mode.
WHAT I TRIED
DDMS
Telnet
ADB
DDMS from Eclipse is not the way to go as it supports only GUI.
Telnet seemed like a good choice but it's a pain in the ass to write some command line scripts for it. In Windows I didn't make it. There exists some ways in Linux though.
ADB offers only outgoing calls by using the famous
adb shell am start -a android.intent.action.CALL tel:1112223333
With ADB I also tried to invoke a broadcast with extra state ringing but NO...
QUESTION
How can I fake an incoming call to an emulator using a script? I need to set my own number, of course.
On google's android studio I think it gives you access to internet & google accounts. You could just log in, install "hangouts dialer" from the play store, then (on another phone, with a different google account) call the previously used google account. I haven't tested this though, and I don't know if the phone handles this as an actual call or just opens hangouts.
Alternatively, you could just set up two emulator instances and dial the console port number, in the window title "Android Emulator #####", as said in this question.
As we all know, you can use an Android phone to dial a number to make a phone call.
Is there any way using the Android SDK to dial a number, but connected to a service running locally on the device?
My aim is to create some sort of interactive voice service (running locally on the phone), that could be used with bluetooth device that only support making phone calls...
My back up plan would be to run an Asterisk server in the house to handle this, but it would be nice to have something running on the phone instead.
Thanks
I am working on an android project, and I want to be able to test my app on a physical device. The only way I can test my app is to receive incoming text messages and calls. I know I can simulate texts and calls on the emulator either via telnet or via DDMS in Eclipse.
Is this possible to do the same thing without having to keep texting myself or calling myself from another device as its going to cost. I'd much prefer to do it on a device as it is much quicker than on the emulator.
You can use applications from google play like this one
https://play.google.com/store/apps/details?id=com.popularapp.fakecall&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5wb3B1bGFyYXBwLmZha2VjYWxsIl0.
For text Message, there are number of online sites where you can send Free SMS(TextMessage) to your mobile. I tested in India and US and it worked. Per day, you can send around 100 SMS(TextMessage)... I tested my application through that..
Regarding the Incoming call, if you are in US, probably you can use google talk to dial your number that is free.
Hope this helps!
thanks,
Ramesh S
If the application using sms-sending and receiving how is it possible to test it within the emulator?
It is so simple first start the emulator and launch your application.
now if you have another project(any) launch this in another emulator.
On the other emulator start sms application and send sms to the emulator in which your app is running.The phone no. is simply the emulator number like 5556 or 5554.
Edit
Now You can send an SMS or make a call using Emulator Control. In Eclipse go to window->show views->other->Emulator control.
Now we can use emulator's extended control to send directly to the emulator.
Open Extended controls window.
Open Phone tab
Enter message and send
Check this for Sending SMS to the Emulator using Port.
Sending SMS for Emulators...
You might want to refer to one of my article on handling Emulator SMS: http://xjaphx.wordpress.com/2011/07/07/sending-messages-among-devices/