When we use the mobile phone, if the text message, and we do not click to view, is not in the top of the mobile phone status bar has a small message icon hint AH. Do you want to implement this function as well? Today's notification is to solve this
Toast is the most commonly used but now many of the procedures in the market do not notice a point, is the toast immediate shutdown problem
Toast played a role in prompting the cancellation should be canceled as soon as possible
User cannot manually
The first is how to modify the problem.
In/frameworks/base/android.mk, locate the following line:
Packages_to_document: =
At the end of the variable's assignment statement, add the
XXXXX (here is the name of your package, such as Com/sina/ui, in
The four components of Andong are designed to solve the problem of cross process communication 1. Radio 2.contentProvide 3.Service inside the commonly used aidl===== is actually binder mechanism 4.Activity such as Call system call application (need
Recently a dynamic Loading ListView class table items, sharing out the learning, I said the implementation of this example, I first limit each load of the list item data for 10 data, when I drag ListView scroll to the last data when loading 10, and
Recently, while developing a module, an activity nested the HTML5 page, but found that the debug package was able to invoke the Android local method normally, while the release package could not invoke the same local method. The code is as follows:
Before read LK but are scattered, also remember, this time a good record, as their own essays to see
What did I do, I'll write about it:
1. Initialize the board structure according to the hardware information of the board2. Initialize all kinds of
It was found that it was too slow to start the simulator in Android 3.0. Finally, two tips can be found to speed up a little.
1. Set the available memory of the simulator to a greater value (of course, the memory of your own machine is larger ),For
After the android SDK is updated, the system prompts this version of ADT requires
Author: original Android Development Network
Time: 2008-09-24 After downloading and setting the latest SDK version, the system prompts this version of ADT requires.
If a large amount of data is loaded during listview loading, the loading time may be too long and the screen is stuck. To solve this problem, check the SDK, There are two methods in onscrolllistener
You only need to override these two methods to
Speaking of the definition of APK, most of the current tutorials are made using hex workshop or android resedit. However, after the actual operation, you will find that:1. The hex workshop operation is cumbersome, and the characters to be modified
I. Preparations
1. A development mobile phone.
I recommend using G7, which is also HTC Desire (whether it is a bit of advertising suspicion ...), This machine has a wide variety of ROM and more information. It is easy to fl root, and the Android
The layout_weight usage environment is described in this article. I will summarize the following:
1. the control's layout must be linearlayout.
2. Set the orientation attribute of linearlayout to "horizontal ".
3. Set the layout_width attribute of
Http://blog.csdn.net/hellogv/archive/2010/10/21/5955959.aspx #
This is a good example. I have explained in detail the usage of alertdialog and layoutinflater:
Main. xml:Android: Orientation = "vertical"Android: layout_width = "fill_parent"Android:
/**
*
* @ Author Administrator
*
* Custom menu, instead of the built-in menu
*
* System Menu principle: When we click the menu button, a popupwindow is displayed.
* The popupwindow contains the menu.
*
* In order for the menu button to be
Android can also open remote web pages and use httpclient
Get the page content. The following code is available in both methods:
Import java. Io. bufferedinputstream;Import java. Io. bufferedreader;Import java. Io. inputstream;Import java. Io.
I learned one trick today. In Android, I want to determine whether the screen is landscape or landscape, and change the background accordingly. The Code is as follows:
Public static void autobackground (activity, view, int background_v, int
The Android system is actually Linux, so you can call CAT/proc/meminfo and Cat in the program
/Proc/cpuino to view the memory and CPU conditions, the following is the program:
Public class cpuspeed extends activity {
/** Called when the activity
Not all mobile phone numbers can be obtained. Only some of them can be obtained. This is because the mobile operator did not write the data of the mobile phone number into the SIM card. the SIM card only has a unique ID for the network and device to
Because my project has programs that need to be run in the background. So I want to make something similar to QQ mobile phones. Hide the main program and click the status bar icon to restore it to the previous page.
The following unit is the
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