Android already has a strong dominance in the mobile phone market and attracts a growing number of enthusiasts. Android's learning is getting more and more hot. However, the registration fee is indeed prohibitive for most people
First, new project Callphone
1.1, the establishment of the project
Second, set the interface and project name
2.1, change the name of the project
Res/values Strings.xml Change the app_name phone dialing device
String.x
1. Create a new Android project called Javacallphone, and build a Callphoneactivity.java class under Cn.csdn.hr.activity package
2. Open the layout under the Res main.xml layout, set the layout of the horizontal layout, and then from the left to drag into the Textview,text files under the Phone, and button buttons, through the new string after the effect is as follows:
3.
Open Callphoneactivity.java to write, the specifi
Finally, the problem was solved. The reason for this error was that the permission was incorrect due to my carelessness. As a result, the effect was always delayed, I was puzzled. I was in a dead corner. Fortunately, I finally corrected this error.
Android4.4 Telephony Process Analysis-call record loading process of dial-up applications (Dialer)
The code in this article takes the MTK platform Android 4.4 as the analysis object, which is somewhat different from Google's native AOSP. Please be aware of it.
The call history of the Android system is stored in the CALS table of the contact database contacts2.db
Customize wm6.5's dial-up interface. The article I saw on xda shows a lot of useful settings,
Original address: http://forum.xda-developers.com/showthread.php? T = 525055
Tuto: Modification of a dialer
Hello everyone,
This tuto allowing to intervene directly on the resources of your dialer. ie DLL.
Advantages: no additional resource, only those origins. So, not one gram of fat added. a
The first time I wrote this, I don't know the format yet.Learning Android or some time, there is no specific steps, so the route is always messy, after all, self-study of their own difficulties is not a little bit, so included in a small project
This thought is a simple telephone dialer, or learned a lot of things, so still learned a lot of things, understand the Android permissions Uri.parse several uses:Not much to say on the code:Package Com.djf.phone;import Android.app.activity;import Android.content.intent;import android.net.Uri;import Android.os.bundle;import Android.text.textutils;import Android.view.view;import Android.widget.EditText;impor
Implementation steps1. Instantiate a Intent Object2. Specify the action3. Specify the object to dial4. Initiation IntentExample codepublic void Ponecall () {Button ListenerBtn.setonclicklistener (New Onclicklistener () {@Overridepublic void OnClick (View v) {Get the number you enteredString Phonetext=et.gettext (). toString ();1. Declaration of IntentIntent intent=new Intent ();2. Specify (call) actionIntent.setaction (Intent.action_call);3. Give the phone number you want to dialIntent.setdata (
Calling code:
Rasdisplay ras = new Rasdisplay ();
Ras. Disconnect ()//disconnection
Ras. Connect ("ADSL");/dial
Copy Code code as follows:
Using System;
Using System.Runtime.InteropServices;
public struct Rasconn
{
public int
a program to broadcast commonly used intents (allows an application to broadcast sticky intents)
Android. Permission. call_phoneTo allow a program to initiate a dialing call, you do not need to use the dialing user interface. You need to confirm (allows an application to initiate a phone call without going through the dialer user interface for the user to confirm the call being placed .)
dangerous)
Android. Permission. broadcast_package_removedAllows an application to broadcast a notification that an application package has been removedAllow the program to broadcast a prompt message after an application package has been removed
Android. Permission. broadcast_stickyAllows an application to broadcast sticky intentsAllows a program to broadcast commonly used intents
new system also includes two new Bluetooth profiles, with lower power consumption and more supported devices, including swapping maps with Bluetooth devices in the car. At the same time, the new Infrared remote control interface can support more devices, including TVs, switches and so on.More user-friendly dialer and message transmittersAndroid 4.4 offers a new dialer that helps users get phone numbers mor
InCallUI is included in the Update Call State process ). The MT process is also divided into two steps: Update Call State and Ringing.
Android 4.4 Telephony Phone has a clear architecture and its sub-modules are also relatively independent. For example, Telephony Service interacts with InCallUI through CallHandlerService, CallHandlerServiceProxy, CallCommandClient, and CallCommandService, mainly involving com. an
dangerous) (required to be able to disable the device (very * erous !).)
Android. Permission. broadcast_package_removed
Allow the program to broadcast a message after an application package has been removed (allows an application to broadcast a notification that an application package has been removed)
Android. Permission. broadcast_sticky
Allows a program to broadcast commonly used intents (allows
) (required to be able to disable the device (very * erous !).)
Android. Permission. broadcast_package_removed allows the program to broadcast a message after an application package has been removed (allows an application to broadcast anotification that an application package has been removed)
Android. Permission. broadcast_sticky allows a program to broadcast commonly used intents (allows an application to
(Allows applications to discover and pair bluetooth devices)
Android. permission. BRICK
Request to disable the device (very dangerous) (Required to be able to disable the device (very * erous !).)
Android. permission. BROADCAST_PACKAGE_REMOVED
Allow the program to broadcast a message after an application package has been removed (Allows an application to broadcast a notification that an application package
bluetooth devices (Allows applications to discover and pair bluetooth devices)
Android. permission. BRICKRequest to disable the device (very dangerous) (Required to be able to disable the device (very * erous !).)
Android. permission. BROADCAST_PACKAGE_REMOVEDAllow the program to broadcast a message after an application package has been removed (Allows an application to broadcast a notification that an app
applications to discover and pair bluetooth devices)
13. android. permission. BRICKRequest to disable the device (very dangerous) (Required to be able to disable the device (very * erous !).)
14. android. permission. BROADCAST_PACKAGE_REMOVEDAllow the program to broadcast a message after an application package has been removed (Allows an application to broadcast a notification that an application package h
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.