how can I get result from the dialer ?

Put your problem here if it does not fit any of the other categories.

how can I get result from the dialer ?

Postby savignien » Tue Nov 03, 2009 4:01 pm

Hello,

I'm trying to start the dialer and to continue my work after the call is ended.
I'm doing this :

protected void onResume() {
Intent call = new Intent(Intent.ACTION_DIAL);
startActivityForResult(call, 0 );
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if ( requestCode == 0 ) {
...
}
}

But it doesn't work. The log says that "Activity is launching as a new task, so cancelling activity result".
Also, the doc for startActivityForResult states "that this method should only be used with Intent protocols that are defined to return a result."
So it seems that the ACTION_DIAL is not defined to return a result...
So how can I know if the user has made a call ? (Couldn't find a convenient CALL_STATE to listen either)
savignien
Freshman
Freshman
 
Posts: 4
Joined: Thu Oct 29, 2009 11:04 am

Top

Postby savignien » Thu Nov 05, 2009 8:27 am

Nobody knows, or nobody has the same problem ?
savignien
Freshman
Freshman
 
Posts: 4
Joined: Thu Oct 29, 2009 11:04 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 13 guests