Android SIP send location - android

I'm developing an app with the SDK API SIP. Ive got all the call stablishment ok, but my real problem is that i want to show the location of the user that is calling me during the proccess of call.
I've been reading about PARCEL cause SIP API have 2 functions of it, but i dont think thats the way. I just want to send the coordinates to put them in the API that Google offers me to show the map.
Does anybody can tell me an idea of how to send those values from the caller to the receiver??
Could be a solution, put those values as extra values in the PendingIntent that u create for the open function? If i the caller put them in, the receiver will receive them?
Thanks!!!
Yep, I'm noob in android. It's my first app XD

Related

Background call receiving in using IMSdroid voip

Thanks in advanced, I am using imsdroid library in my app. calling feature work fine, but i am unable to receive call when app is closed.When I minimize application it works but when i clear application from recent app it can't receive call. What is solution for this issue, please help me out. or provide some reference links.
According to me, IMSdroid does not provide this functionality. You have to open your application while dealing with them. I got same issue:
https://code.google.com/p/imsdroid/issues/detail?can=2&q=491&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&id=491
finally resolved it with some customization.
#nik u r right. it is not possible to keep registered all the time.in that case u have to notify the second person when first client tries to make him a call ,and when second client will get notification, then fire a broadcast to start the NativeService. this will register the device. and finally u will get the incoming call.

How to tell which third-party app called startActivity into my app

Suppose there are two apps on my device, GoodApp and EvilApp. I didn't write either of them. Both apps can use an ACTION_SEND Intent to start an exported activity in my app, passing data in. They both call startActivity, not startActivityForResult.
I want to trust the data I receive from GoodApp, but distrust and ignore the data I receive from EvilApp.
How can my Activity tell which app started it? Activity.getCallingActivity() returns null, because it wasn't started for-result. I can't send a message back to the apps asking "was it you who sent me this?" because they aren't written to respond to that, and their code is out of my control. Is there any way I can tell the difference?
Require apps use startActivityForResult in order for you to handle their request? (:
ActivityManager.getRunningTasks might give you a hint, but its documentation says not to use it for things like what you are asking.

How to change the default android call screen(both outgoing and incoming)

I would like to know how I can add extra fields to the current android calling and recieving screen ? Like the area code of a region or so? I am looking for pointers at to where to start only. Could someone please help me?Just to convince people that this indeed is possible , the link to the app that does just this is https://play.google.com/store/apps/details?id=ardent.androidapps.callerinfo.views&hl=en

How to know other application is in use from my application

I have a requirement that , I want to do some changes in my application, If some other application ,let say "com.android.abc" is in use.
Pl. let me know can I get the package names of the currently running apps in my application..?
I can use Broad cast receiver , but I dont have access for the other application to modify it and send some notification to my app.
thanks.
See this.
If you can't do that (as in, get that permission), then you can't accomplish this.

Show Toast on Missed Call in android application

i want to show a Toast in an Activity when a missed call happened. How can i do it?
Thanks in advance.
I suppose you have content providers to access call logs.
http://www.anddev.org/video-tut_-_querying_and_displaying_the_calllog-t169.html
http://www.devx.com/wireless/Article/41133
If this code works you just need to run this query at the right time. I mean check some samples that can notify you when you get a call in your device
http://groups.google.com/group/android-developers/browse_thread/thread/d97a759a3708cbe3
Once you get this notification put a timer or use some built in Intents to find that the phone is back to normal state and access the call logs...
There was a similar question recently, the answer should work for you as well:
broadcast receiver for missed call in android
showing the toast afterwards should be the easy part :)

Categories

Resources