First, get the current mobile phone number * * Get current cell phone number/public String Getlocalnumber () {Telephonymanager Tmanager = (Telephonymanager) . Getsystemservice (Telephony_service); String number = Tmanager.getline1number (); ;
Google unveiled its February version of Android, where Android 5.0 has grown to 3.3%.
According to last month's data, Android's 5.0 per cent share is 1.6%, and now it has grown to 3.3%, which can be doubled. Still, it's not much, but it's a lot
In the previous learning process has also seen, because it has not been working, also useless to, has been ignoring the past, in the group of a discussion, decided to take a good look at this, and finally find out, online a lot of introduction point
This is also yesterday to learn to use, summed up the idea bar, because this knowledge point will definitely be used again.
Purpose: I want to dynamically select component background, System skin, custom toast background and so on in the software.
The TextView in the android supports part of the HTML format label itself. This includes commonly used font size color settings, text links, and so on. It's also easier to use, just use the HTML class to convert it. For example: Textview.settext (
1. Modify File Alpsframeworksbasepackagessettingsproviderresvaluesdefaults.xmlAdd code 24The red mark represents a 24-hour system, or it can be changed to 12 (12-hour system).2. Modify File
You can use the Intent.createchooser () method to create a Intent and pass in the desired Sting as the caption.Taking the wallpaper selection box as an example, when you press on a blank area in Launcher workspace, a wallpaper selection box pops up,
Sometimes you need to change the permissions on the partition
If some non-root users need to read part of the partition
Modify Systemcorerootdirueventd.rc as follows:
/dev/null 0666 Root root
/dev/zero 0666 Root root
/dev/full 0666 Root root
Because the application installation and uninstall module has been written on the Android system, so we just need to activate it.
Attention:
Intent.setdataandtype (uri.fromfile (file), "Application/vnd.android.package-archive"); In this sentence,
Before that, wrote a few about in Android to achieve the effect of sliding, after all, sliding effect in the development of Andriod also used more frequently, interested friends please check my previous article, no longer detailed here.
Today, the
The previous world in an application calls the system to send the text message intent, but the receiver's number has been worn, the code is as follows:
The code is as followsUri Smstouri = Uri.parse ("smsto:123456");Intent sendintent = new Intent
First download the latest version of the Android SDK. However, the latest version of the SDK has clearly stated that the Android SDK archive now contains the tools. It no longer comes populated with a specific Android platform or Google add-on.
1. If your project's R file is not available, you can try to change the version number in the Save, R file is not generally the layout of the text error caused.
2. Layout files may not have uppercase letters
3. Throw the following error
The steps are as follows:
1.Export unsigned apk----------->eclipse
Android Tools > Export Unsigned application Package----->fisheye.apk
2. Command line Run appt Command------------>e:androidandroid-sdkplatform-tools join path system variable
Workaround:
1. Add a button to the Activity_main.xml in Res/layout, named Button1.
2. Add a button event binding in Mainactivity.java:
View btn1 = This.findviewbyid (R.id.button1);
Btn1.setonclicklistener (New Buttonclicklistener ());
3.
1:./mk n (r) kernel;/mk bootimage; When you modify kernel-related code, use this command, as follows:
alps/kernel/
alps/mediatek/platform/mt65xx/kernel/
alps/mediatek/source/kernel/
alps/mediatek/coustom/mt65xx/kernel/
First type:websetting settings = Webview.getsettings ();Settings.setlayoutalgorithm (Layoutalgorithm.single_column);Place all the content in a column of webview width. (the link in the page may appear to be invalidated)
The second
Today I wrote a simple memory note applet, but found that my own code did not work when I judged that the data added was not empty.
String titlestr = AddTitle () ()
String contentstr = Addcontent () ()
if (titlestr = null && contentstr =
I. Use of bundle
When we start the activity, service, and receiver of another process in a process, we can attach the information we need to transmit to the remote process and send it through intent in bundle.
The data we transmit must be able to
I also wrote a few custom progress control, then, today, I add a control, the principle of similar to the previous, look at the effect:
This is an arc based on the progress control, mainly includes two arcs, a circle, a text.
When we click on
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