Phone dialer for Android learning notes (2)

At present, Android has a strong dominant position in the mobile phone market and has attracted more and more followers. Android learning is becoming more and more popular. However, the registration fee is really prohibitive for most people

1、 New project callphone

1.1. Establish project

2、 Setting interface and project name

2.1. Change project name

Change app in strings.xml under RES / values_ Name telephone dialer

string.xml

2.2. Set file box and key

3、 Write java code

3.1、MainActivity.java

perhaps

3.2. Add permission

3.3 operation

Let's share a piece of code -- Android phone dialer and SMS sender

Android phone dialer

Because the application uses the phone service of the mobile phone, add the phone service permission in the manifest file androidmanifest.xml:

Interface layout:

LinearLayout, absolutelayout, relativelayout, tablelayout, FrameLayout

Activity:

SMS transmitter

Because the application needs to use the SMS service of the mobile phone, add the SMS service permission in the list file androidmanifest.xml:

Interface layout:

Activity main code:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>