[Android Note] on the dial-up interface, you can call a specified number to start a secret interface.

Source: Internet
Author: User
Tags samsung android

[Android Note] on the dial-up interface, you can call a specified number to start a secret interface.
Solution Description: 1. listen to the user's call operations by registering a broadcast receiver; 2. when a user makes a call, the broadcast receiver receives the number and compares it with the specified "dark". If the number matches, an interface is started and the user's call is terminated.
Implementation:

1. Configure the broadcast receiver in the configuration file and add permissions:

<receiver             android:name="cn.edu.chd.mobilesafe.receiver.CallPhoneReceiver"            >            <intent-filter                 android:priority="1000"                >                <action android:name="android.intent.action.NEW_OUTGOING_CALL"/>            </intent-filter>        </receiver>  

Permission:

 <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/> 

2. process in the OnReceive method of the broadcast receiver:

Public class CallPhoneReceiver extends BroadcastReceiver {private static final String CODE = "110"; @ Override public void onReceive (Context context, Intent intent) {String number = getResultData (); if (CODE. equals (number) {Intent myIntent = new Intent (context, DemoActivity. class); myIntent. addFlags (Intent. FLAG_ACTIVITY_NEW_TASK); context. startActivity (myIntent); // terminate the outbound call setResultData (null );}}}



The address book software that allows Android phones to change the appearance of the dialing Interface

QQ address book seems acceptable. Click the setting icon in the upper-right corner of the QQ Address Book personal center and go to the page to find the settings. I downloaded the settings and tried it.
 
After dialing a Samsung Android mobile phone, the interface automatically disappears. You cannot make a call or send a text message on the Internet. You can answer the phone and ask a friend. After dialing

Don't worry. After all, the mobile phone is not damaged by hardware.
Restoring is simple. Restoring factory settings can solve the problem.
All you need will be back. Hey hey, good brother. It's fun to study more.
Full score.
 

Related Article

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.