Recently, I made a small application on Android 2.3, native/Web hybrid, and used a webview to display the main content area. Jquery mobile's list and built-in search functions are used. The search box is at the top of the list. when the list is
The Home Key is mapped to the Home key on the keyboard.
The menu key is used to open the menu. The F2 key is mapped to the keyboard, and the pgup key is also supported. In addition, it seems that this key is designed as left softkey on some models)
1. Import the launcher2 project to eclipse.At this time, the launcher2 project has been imported into eclipse, but there will be more than 100 errors.
2. Add the package file used by launcher2.
BecauseAndroidIn the source code, many methods, members,
In Android, the dialog class inherits the dialog class, so it is very helpful to rewrite the dialog class. The implementation is as follows:
1, in styel. Implement them. XML in XML
2. In the code, dialog = new dialog (this, R. style. them
The following actions can only use context in Java code
.Register the registerreceiver () method. Otherwise, the error message is not received.
Action_screen _On/
Off if needed, you need to release the permission code in the Framework Services/Java/
After studying the android gridview, the default gridview only supports vertical scrolling, but does not support horizontal scrolling. Sometimes we want to achieve the table effect, both horizontal and vertical have a scroll bar, can be implemented
Use transactions to add Contacts1. the provider is accessed multiple times when a contact is added. If an exception occurs during the process, data is incomplete. These operations should be placed in a transaction.2. Use the contentresolver's
Many friends may encounter a problem when using Android for network requests. When users are using a WAP network, they need to add a proxy geographic and port number to the network request header.
When using a Wi-Fi or cmnet network connection, you
Override the listview by listening to the sliding event, according to the position of the sliding and the sliding direction, use the built-in scrollto or scrollby function of the view to move the view to the interaction distance of your gesture
In Android, an activity component can activate another activity component (which may belong to another application ).
If the new activated Activity component belongs to another application, the activity component runs in the Process of that
Multiple annotations found at this line:- error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?- error: Unexpected end tag string
This problem occurs after the project is imported.
Public class graphicutils {/**** Load local Images* @ Param context: Main running function instance* @ Param bitadress: Specifies the image address, which generally points to the drawable directory under R.* @ Return*/
Public final bitmap
The project encountered the need to read and display system text messages. Some information was collected online and tested briefly.
The system SMS database table includes the SMS table and thread table. All information is in the SMS table. Thread
In the project, the control is moved with the touch of the finger.
package com.example.viewanimationtest;/** * @author maria * 2013-2-16 */import android.os.Bundle;import android.app.Activity;import android.view.MotionEvent;import
Why contentprovider? What is the difference between SQL and SQL?
You can use contentprovider to share data with other applications so that applications other than this application can also access the data of this application. Its underlying layer is
Elementary
-Max android
Android news.
-Lordhong's blog
-Android-related projects included in the open-source Chinese community
Intermediate
-My life with Android
Contains some technical articles about Android.
-Soaring
It includes some
1. First, you need to go down the source code to a directory.
2. Execute source build/envsetup. Sh in the root directory of the source code.
3. Execute the choosecombo command and select, and 3 from the options that appear.
4. Execute the make-J8
Document Translation:
AsynctaskCan be used properly and simplyUi thread. This class permits the execution of background operations, so that those who are not skilled in the Operation threadPublish results on the UI thread.
An asynchronous task is
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