[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.