The main purpose of a Service is to provide backend service calls. Unlike an Activity, a Service has no interface. Because of this, it does not stop when a user leaves the application interface as an Activity, the Service is always running in the
MediaRecorder recorder = new MediaRecorder
Recorder. setVideoSource (MediaRecorder. VideoSource. CAMERA); // capture video from CAMERA
Recorder. setAudioSource (MediaRecorder. AudioSource. MIC );
Recorder. setOutputFormat (MediaRecorder.
I believe everyone should know that there are many ways to save data in the Android system, but they can be summarized as four methods:
• Preferences
• Files
• Databases
• Network
Today, let's take a look at Databases. A lightweight database
In this chapter, we will focus on introducing the Mysql database server to process Json data in PHP by handing it over to Android. At first, the students thought that there were a lot of technical terms, everyone should be able to understand. Well,
Some time ago, we engaged in android animation. After using the animation on the page, the effect was quite good, which greatly improved the user experience. However, by chance, to add a display and disappear animation in the popupwindow, I used
The SoundRecoder software provided by Android is easy to write. Three Java files have the most distinctive pointer. This is not to introduce the implementation process of the pointer. It is also simple. It is an algorithm that uses the amplitude
Use the android. hardware. Camera class to take photos. The procedure is as follows:
A. Get the Camera instance object,
Camera camera = Camera. open ();
Alternatively, Camera camera = Camera. open (int cameraId );
CameraId indicates the
A bug found during the product testing process is that after the tester repeatedly clicks a button and triggers toast, the toast content will always be displayed in the queue and cannot disappear quickly. This may affect your use.
Toast has a
I recently read about launcher. In launcher, after selecting the folder option, select "Daming Address Book" and create a real-time folder in the launcher on the main interface to bring up the contact name, then we can process it, click to enter the
Public static void lengthFilter (final Context context, final EditText editText, final int max_length, final String err_msg ){
InputFilter [] filters = new InputFilter [1];
Filters [0] = new InputFilter. LengthFilter (max_length ){
@
This section describes parameter transfer between activities. We know that intent can achieve mutual jump between activities. We also need to pass some parameters while redirecting. The following describes how to pass parameters in an activity,
Let's take a look at PlayerPrefs APIs,
Let me explain,
SetInt is to save a PlayerPrefs. SetInt ("Player Score", 10 );,
GetInt is used to read a PlayerPrefs. GetInt ("Player Score") value. They are a pair and used as an integer for
Suppose: Here I have two activities: A and B. When I transfer data from A to B, I use Bundle to encapsulate the data, and then jump from A to B, when B needs to encapsulate the data and send it back to A, it jumps back to. When receiving data in A,
Last time, we made a simple hello world. This time, we wrote a telephone call system. In fact, this call is not really called by our own program, instead, call the system program.
First, create the project Phone and create the required string
1 public class PagePoint extends View {
2
3 private String TAG = "PagePoint ";
4 Paint p;
5 int totalPage; // the total number of pages.
6 int currentPage;
7 Bitmap bmp, bmp 2;
8 int screenW;
9 int screenH;
10 boolean flag = false;
11
12 int ws; //
Recently, I made a small function to achieve the effect similar to gallery. However, you need to select the first item and do not want to move it to the very beginning to have free space, if you try to use the gallery that comes with android, you
In this section, we will discuss the fifth topic, which is actually about data storage in Android. Let's take a look at the Common Data Storage Methods: file storage and database storage are common methods, and these storage methods are also
Let's take a look
How about it?
Let's analyze how this effect can be achieved?
First of all, we should note that the top several horizontal switchover functions are TabHost.
TabHost has been released successfully
Provides a window view
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