I have been using sdk1.5 since I came into contact with Android in July. I know that the SDK has been updated and the ADT has to be updated. I guess the process is troublesome, so I have been too reluctant to change it. I downloaded a piece of code
In the entire Android program, you sometimes need to save some global data (such as user information) for convenient calling anywhere in the program. There is a relatively useful method for data transmission between activities, that is, global
When Android 2.3.7.r1 presses the menu key, the video is stopped. Press the menu key when you change the video to do not process it. The following modifications can be made:
In packages/apps/CameraOpen/src/com/mediatek/camera/VideoCamera. java
In
1. Because you need to delete files, you need the following permissions::
2. Core code
Copy codeThe Code is as follows: package com. example. deleteyoumi;
Import java. io. File;
Import android. OS. Bundle;
Import android. OS. Handler;
Import
Don't worry about the remaining memory size. In fact, many people bring the habit of using other systems. Most android applications do not exit the design, which is related to the system's scheduling mechanism for processes. If you know java, you
EditText inheritance relationship: View --> TextView --> EditTextEditText has many attributes. Here we will introduce several attributes:Android: hint = "enter a number! "// Set the prompt information displayed on the spaceAndroid: numeric =
We can send data to the server in the form of Request Parameters. However, when the data size is too large, this method is unavailable. At this time, we should send data in a stream mode, in the following example, the content of an xml file is
[Java]Import java. util. List;Import java. util. Map;Import android. content. Context;Import android. content. SharedPreferences; /*** Tool for storing configuration information * Note: The data types that can be read include- boolean, int, float,
Defining shapes is often the first step to develop high-end graphics. You do not need to know how OpenGL ES wants you to define image objects when Drawing Images Using OpenGL ES. The following describes the coordination system related and screens,
I am troubled by work problems, so I have not written any blogs for the past few days.
Recently, I felt I was lazy. As a programmer, we had to keep learning when we were charging, so we couldn't leave ourselves alone.
Let's take a look at the use of
By convention, I wrote it above: maybe in the process of learning Android, everyone will learn a lot of basic knowledge like me, and a lot of knowledge points can also be said 123, however, these isolated points are too fragmented after all.
The json string to the json object universal converter (implemented in java) is one hundred lines of code, which is very lightweight and compact. For general application scenarios, resource consumption is very low and the speed is fast enough,
1. To obtain the battery information of the Android device, register a BroadCastReceiver whose Action is Intent. ACTION_BATTERY_CHANGED.
2. In the BroadcastReceiver onReceive () event, the received Intent. ACTION_BATTERY_CHANGED includes the
Recently, I am working on a small application. I need to set the AP (Access point) of the Android mobile phone through a program, which turns the mobile phone into a mobile hotspot and other machines can connect to the mobile phone through wifi ). I
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