Hi!
I'm sorry, looks like the problem is not related with activity or
service.
I have this problem if I have a running MediaRecorder in my service or
some binded service.
The ACTION_CALL activity doesn't appear while the MediaRecorder is
running!
The ACTION_CALL activity appears right after that as the MediaRecorder
is stopped!
Here is my sample
// service's thread...
MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile('/dev/null');
recorder.prepare();
recorder.start();
Intent dialIntent = new Intent((Intent.ACTION_CALL),
Uri.parse("tel://" + dialOutNumber));
dialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(dialIntent);
//some activity or sleep... ACTION_CALL doesn't appear, screen is
black and locked, but the call is going well
recorder.stop();
// right after that screen is unlocked and ACTION_CALL activity
appears
recorder.reset();
recorder.release();
recorder = null;
...
NB! I can reproduce this problem only with Motorola Milestone wiith
firmware version 2.1-update1.
The problem is localized.. need a solution!
Thanks, in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en