To use the radio to monitor the phone dialing on the virtual machine can run the real machine can't

Source: Internet
Author: User

Part of the code below for the Big God Solution

public class Outgoingcallreceiver  extends Broadcastreceiver {@SuppressLint ("showtoast") @Overridepublic void OnReceive (context context, Intent Intent) {         String phone = this.getresultdata ();//Get out of       the phone System.out.println (" Dial "+phone");                          Toast.maketext (context, "dialing" +phone, 10000). Show ();}}

<!--to radio receiver        ---<receiver android:name= ". Outgoingcallreceiver ">            <intent-filter>                <!--Monitor to power-up                <action android:name=" Android.intent.action.NEW_OUTGOING_CALL "/>                <action android:name=" Android.intent.action.BOOT_COMPLETED "/>              </intent-filter>        </receiver>

I QQ 850459198 ask the big God to help see what the reason for the virtual machine running can listen to dial the real machine run play all did not respond to the charm Blue Note has been tested

To use the radio to monitor the phone dialing on the virtual machine can run the real machine can't

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.