开发者

android howto create an (incoming phone call) but not for talking

hi again search around but cant find a way to start developing this Wanted to send an image to my phone (ftp) and when the image has arrived and saved to my CD card i would like to have the phone ringing like it was someone calling. When i answer the image will fill the screen.

What i have done so fare is is that the image is received and saved to CD card. Only the Phone call thing missing If you can give me a hint about what I need to do im happy I know I can start a phone call activity with this code

    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:123456789"));
    startActivity(callIntent);

Maybe it can be modif开发者_如何学运维ied to create a dummy call?


Use the RingtoneManager to acquire a Ringtone object and then play() it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜