This article describes how Android obtains information such as the version of a mobile phone system. Share to everyone for your reference. as follows:
String Phoneinfo = "Product:" + Android.os.Build.PRODUCT;
Phoneinfo + = ", Cpu_abi:" + Android.os.Build.CPU_ABI;
Phoneinfo + = ", TAGS:" + Android.os.Build.TAGS; Phoneinfo = ", Version_codes. BASE: "+ Android.os.Build.VERSION_CODES."
BASE;
Phoneinfo
This article is an example of Android to determine whether the mobile phone network method, share for everyone to reference. The specific steps are as follows:
First, add the permissions associated with the connection network in Androidmanifest.xml:
Copy Code code as follows:
To determine the networking code is as follows:
Copy Code code as follows:
Connectivitymanager C
1. Uninstall or disable unused applications
When we use smartphones, we tend to install a large number of applications at the start, but many are largely unused, and these applications occupy RAM and storage space, so it is necessary to uninstall properly. Just go to the settings, open the Application menu, select or disable some content. Also, if you have a mobile or flat-panel support memory card extension, you can install the application on the storage card.
2. Clear the application cache
This paper illustrates the method of Android to realize the vibration setting of mobile phone. Share to everyone for your reference. Specifically as follows:
Main.xml Layout file:
Manifest file:
Vibrateactivity class:
Package com.ljq.activity;
Import android.app.Activity;
Import Android.app.Service;
Import Android.os.Bundle;
Import Android.os.Vibrator;
Import Android.widget.Comp
1, the picture into a thumbnail and then load:
The code is as follows
Copy Code
1 bitmapfactory.options Options = new Bitmapfactory.options ();2 options.insamplesize = 2;3 Bitmap img = bitmapfactory.decodefile ("/sdcard/1.png", options);
This code is read 1.png thumbnail, length, width is only 1/2 of the original picture. The size of the picture is reduced and the memory footprint is naturally smaller. The disadvantage of this is that the picture quality is
I. below
II,
Because the app wants to use the mobile phone service, you need to add the telephone service permission in the androidmanifest. xml file of the list file:
Package = "cn. itcast. Action"Android: versioncode = "1"Android: versionname = "1.0" type = "codeph" text = "/codeph">....
3. layout Interface
Interface layout:Android: Orientation = "vertical"
Tablet and mobile phone support
Do you still remember the content in the previous chapter? In resolution and multi-screen mode, we need to provide a variety of resources available to the system based on different screens, so that your app can be applied to many devices. And sometimes you want to further optimize them. For example, Tablet
Provide more space for your app to display more information, but it can be displayed in several parts on your
Google Maps API V2 Android mobile phone development in China does not support Google Play service problems-graphic tutorial
The use of Google Maps in China is a headache and troublesome. I cannot understand why Google cannot be used as a map of Baidu.
Note: you can download a few APK packages on the market and then use the Google service after re-installation (the default is root.
Google Maps depends on Goo
Recently in making an Android phone on the music player, learned a lot of things, such as the use of Fragment,actionbar, and so on, here is the first to introduce the implementation of the lyrics synchronization.
The realization of the lyrics synchronization is simple: Get the time and lyrics in the lyrics file LRC, and then play the corresponding content within the specified time. The difficulty lies in h
1. We are on the desktop of the computer right click on the desktop "computer/My Computer" and then click "Manage" in the pop-up menu as shown in the picture.
2. Then in the pop-up menu we click "Management" in the "Device Manager" shown in the following image.
3. Then we found "ADB Interface" or "Android Phone" devices in "Device Manager", which are usually shown in the first device. If the driver is
Android how to get phone records, this article for everyone to announce.
Get mobile phone call recording process:
1, to obtain contentresolver;
Contentresolver resolver = Getcontentresolver ();
2, Resolver.query (*);
URI:CallLog.Calls.CONTENT_URI that require incoming call records
3, the query to obtain the cursor data acquisition.
The main code is as foll
The absolute value to see the article, haha. I personally completed, there are errors please point out:
Now the phone perfect support HTML5, so if the phone end want to do a lottery module, with scraping card lottery effect, I believe this interactive experience is very good
PS: Because I do not have WP8 system of mobile phones, so can not be compatible with the WP8 system, the current perfect compatibility
Android mobile phone vibration settings (vibrator) Steps:
A, through the system services to obtain mobile phone vibration services, vibrator vibrator = (Vibrator) getsystemservice (Vibrator_service);
b, after the vibration service to detect the existence of vibrator:
Vibrator.hasvibrator ();
Detects if the current hardware has vibrator and returns true if it ha
good products.
Great God Note3 the back of the fuselage
The great God Note3 faces a 5.5-inch 720p screen with pixel density of 267PPI. The core is built with a 64-bit MediaTek MT6753 eight core processor and a 2GB RAM+16GB ROM memory portfolio that runs smoothly on the 360 OS (mini) based on the Android 5.1 system and has a built-in 3000mAh battery that lasts up to 2 days. The fuselage has a 13 million-megapixel camera on the ba
Grab Bag Prep1. Android phone requires root access first. A test method for root access: Install and open the Terminal emulator (available through the Android Market, etc.). In the terminal emulator interface input SU and enter, if the error indicates that the root, if the command prompt from the change # is rooted;2. If the
Grab Bag Prep1. Android phone requires root access first. A test method for root access: Install and open the Terminal emulator (available through the Android Market, etc.). In the terminal emulator interface input SU and enter, if the error indicates that the root, if the command prompt from the change # is rooted;2. If the
Today, we use Android to write a small program that enables calls. First, create an Android project Phone and modify the String. xml in Values in Layout. The Code is as follows:
Then add several attributes to main. xml. The Code is as follows: www.2cto.com
Android: layout_width = "fill_parent"
If you use more than one computer at the same time, may have already heard Synergy, Input Director, unbounded mouse and other magical tools, they can let you only use a set of mouse can control the operation of many different computers, so that the mouse free "shuttle" different screen, very convenient.But the above software can only support win, MAC, Linux and other desktop systems, but today's protagonist Deskdock can let you use the computer's mouse keyboard to control
This article describes the phone eavesdropping and interception applications implemented by Android. Share to everyone for your reference, specific as follows:
Today I learned about the communication-->aidl of the Interprocess service, and based on the broadcast mechanism I learned a few days ago, I made a simple phone tapping and recording application. Now the
The Android mobile operating system is an open-source system based on the Linux platform. Developers can modify and perform other operations based on their needs. There are many important functions in this system that deserve our research. For example, the Android phone function is one of the basic knowledge points.
Android
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.