• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Change the Outgoing call number

Hareef

Newbie
Hi,

I want to know how to use the setResultData() in worker thread

1. Registered a broadcast receiver for this intent "android.intent.action.NEW_OUTGOING_CALL"
2. So using "intent.getStringExtra", i got the user dialed number.
3. After that i need to do some database operation and after that i have to change the user dialed number.
4. Using setResultData(), i will update the dialed number.

here i want to do the database operation in worker thread instead of doing it in OnReceive() of BroadcastReceiver
So from the worker thread how can i use the setResultData()?

Thanks in advance
Hareef:confused:
 
Hey there Hareef, i have moved your thread into Application Development as this just seemed like a question that belonged here.

If this isn't the right place, you think, for it, please PM me over this :)
 
Hi thanks for your reply. the intent i registered for outgoing call is "SendOrderedBroadcast". so in this case i have to set the data using SetResultData(). so how can we use this API SetResultData() from Service or IntentService
 
Back
Top Bottom