making incoming phonecall to android runnung in emulator - android

I'm trying to develop small app that will be registered on PhoneStateListener and do some magic over incoming voice calls. For debugging purposes I need to trigger onCallStateChanged(...) event from outside of phone, not perform real incoming voicecall.
Is it possible to do this somehow with sending phone number to debugged app?

There you go try these guy over here http://www.anddev.org/video-tut_-_simulating_incoming_phone_calls_-_sms_via_cmd-t135.html
Hope it helps :D

Related

Can Android wearable send event to the phone and call 3rd party Services?

I'm new to wearable development, it's quite standard that wearable only uses GoogleAPIs. But is it possible to call a background service from the phone and send the results back ?
this is my thoughts:
Wearable send an event to the phone via MessageAPI, eg: request a particular news feed.
The phone wakes up it's service when it receives the event.
services does the background task and post the results back to wearable.
I haven't try this approach yet, just want to gather more opinions first. Thanks!
Yes, this is a completely valid approach. I understand, that you are sending the data to the phone, because you need some resource (most likely internet connection) that is not available to you on the wearable?

Android:How to send missed call alert sms?

If my mobile is not reachable or switched off when someone calls then I want to send sms to that particular person by automatically. How can i achieve this through code?
Please help me.
This, I believe, is impossible. If someone rings you, and you have no signal, then how is your phone meant to know? If it did know, surely your phone would actually RING instead?
You need to create service with phone state listener
ANdroid Development - Call state of the phone
and when you have call back send sms Sending text messages programmatically in android

How to start/stop custom built application on remote Android device

I have written an app in Eclipse and now I just need to add an additional method, but I'm wondering how to do it.
Method should listen to incomming messages somehow, and when SMS arrive to device it should start/stop my current app running in background.
So, I send SMS to device with specific content in message (e.g START123) and when device receives it, content application will automatically start and perform all further tasks on it.
Any idea/coding on how to accomplish this is welcome. :)
Thanks and regards.
https://stackoverflow.com/a/8720582 do your work from a service.
Don't forget to catch on boot if your app should run after reboots.

Android Service that monitors user activity

Is it possible for a background service to log every action of the user on his device? I just want to check if our devices are vulnerable to such actions.
Yes it is. But depending on what your app wants to monitor, you don't need to run a Service just to constantly monitor the user's actions. All you need is a BroadcastReceiver that listens to Intents fired by the system when specific phone events occur.
For example, I once built a mobile app that logs all the user's sent SMSes, detects incoming SMS, incoming and outgoing calls, and bytes of data sent and received over 3G and WiFi. Shameless plug, I've posted some tutorials on how to do it in my website: http://www.mattquiros.com/blog
You could also monitor the other way. Looking at the Browser class and monitoring processes and what tasks are running using ActivityManager.

frequent c2dm message request

I had develop an android app that allow user to request info from their phone based on chrometophone example.
Everything is working well but i noticed that c2dm message only sent once to the device and subsequence c2dm will only reach phone after screen unlock.
This make me annoy as my app required to get data from phone without unlock screen multiple times.
Anyone can help on this?
Thanks and sorry for my bad English.
thanks lonel for reply.
I think I found the answer. there is a parameter called "delay_while_idle", chrometophone set this param to true so C2DM will send only when phone not in IDLE.
If I understand your question, you want to send messages to the phone while it is in an idle state.Sadly, you can't do it because C2DM messages are only received when the phone is not idle (i.e. unlocked).
On top of that the devices stop the wifi while they have the screen locked and they only bring it up from time to time.

Categories

Resources