Android Development Common small features

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 ();   ;

The Android 5.0 ratio doubles?

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

Learn about 9.png notes in Android.

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

The operation of dynamic switch component background in Android

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.

Android's TextView and HTML combination usage

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 (

How Android modifies the default time format

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

Android Custom Intent Select the title of the interface

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,

Android Change Zoning permissions

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

Android implements installation and uninstallation of applications in the form of code

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,

Android to achieve continuous slide of the house image

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

Android calls the system SMS intent will be pre-filled to receive numbers and content

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

Android Development Environment Configuration issues

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.

Solve common problems in Android development

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

Method of appt Command detection APK information in Android platform

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

How to add a button event to Android

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.

Android When you modify some code, the compiler commands are most efficient

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/

WebView Adaptive screen in Android

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

How to determine if the data in EditText is empty in Android

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 =

How Android implements interprocess communication

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

Android Custom View arc show diagram

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

Total Pages: 2774 1 .... 1927 1928 1929 1930 1931 .... 2774 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.