Phone Dialer Development steps:
1. Add the call permissions in the manifest file
<?xml version= "1.0" encoding= "Utf-8"?> <manifestxmlns:android= "http://schemas.android.com/apk/res/ Android "package=" Cn.itcast.action "android:versioncode=" 1 "android:versionname=" 1.0 "> <uses-sdkandroid:minsdkversion= "6"/> <uses-permission android:name= "android.permission . Call_phone "/>//dialing rights </manifest> attention to call permissions, will only jump to the dial interface, to manually click the Dial button. Call_phone will make a direct phone call.
2. Call the core code
Create a new Intent object Intent Intent_call = new Intent (); Add an action intent_call.setaction (Intent.action_call) for the intent object; Add Data Intent_call.setdata (Uri.parse ("Tel:" + phone number) for the intended object; Execution Intent StartActivity (Intent_call);
Android Development process:
-
Product manager design product requirements and product prototypes
-
Designers design UI
-
-
programmer, according to the UI to do the corresponding display layout and code logic development
-
-
-
This article is from the "line of the World" blog, please be sure to keep this source http://4259297.blog.51cto.com/4249297/1675137
Android day01-Phone Dialer case &android development process