Some people will be curious about the places where images are placed in Android: drawable-hdpi, drawable-mdpi, and drawable-ldpi. You will surely think about which one you can store, as long as it is in drawable under the res directory in Android,
In Android applications, the message loop is completed by logoff and handler in combination. The logoff class is used to encapsulate the message loop, and there is a messagequeue message queue in the class. The Handler class encapsulates functions
Recently, during the android porting processProgram(APK) permission issues. I have recently learned a little about this and want to share it with you.
The android framework is built based on the Linux kernel, so the android security system is also
1. Hide the title bar
// Hide the title barThis. requestwindowfeature (window. feature_no_title );
Ii. Hide the status bar
// Hide the status barThis. getwindow (). setflags (windowmanager. layoutparams. flag_fullscreen, windowmanager. layoutparams.
1. A service runs in the main thread of its hosting process-the service does not createIts own thread and does not runIn a separate process (unless you specify otherwise)
Although the service does not have a UI, it cannot perform time-consuming
1. Check the version and installed version
Dev03 @ dev03 :~ $ Ls/usr/bin/GCC *
/Usr/bin/GCC/usr/bin/gcc-4.5/usr/bin/gcc-4.6
If some versions are missing, install them directly:
Sudo apt-Get install gcc-4.5 g ++-4.5
Sudo apt-Get install gcc-4.4 g ++-
Continue, and finally discuss the implementation of the timer.
This is a very simple task. It should be enough to use Java. util. Timer directly, but it is very depressing to find that the task cannot go to the mainview of invalidate. This
To add more information, it is very easy to add background music to the game. Android provides a mediaplayer class to conveniently play music files.
Android. media. mediaplayer class has no constructor. Generally, it uses its static method create
I took a look at the service class in Android. app and thought it was very similar to activity, but I should pay attention to the following points:
1. In the lifecycle, it is easier to migrate services from oncreate ()-> onstart (INT, bundle)->
When we use HTC's gxx, we will find that it has a function of vibrating prompt after it is connected. Although it is not a big function, it is more convenient to use, for example, when the call process occurs, you can place it on the table and wait
I still remember that when I first came into contact with the "Baidu Post Bar" application a few months ago, it was instantly attracted by its floating title bar and tag bar, although mm, which had a UI around him, said that the float type was
In general, the list items of listview use the same layout, but the filled content is different. In this case, Android provides convertview to help us cache the list items for recycling, the developer will also use the viewholder mode to optimize
In Android Application Development, especially UI development, dip and PX are often used to adjust the layout, which is hard to figure out. Obviously, it is much easier to use dip for portability, so it is very important to understand the conversion
One of the most common words that a friend who has just started to use flash drives may be "root". What is "root"? We will talk about it below. You should be familiar with Windows systems. The Administrator is called administrator. in the operating
To customize the menu items of an android application, you must first know the entry point. After learning, we know that the callback functions in two activity classes are oncreateoptionsmenu (menu) and onprepareoptionsmenu (menu ).
1. R. java file, right-click the project on the Internet and select Android tools, and select fix project propertise. If this is the case, add r. there is still an error in the Java file, so I don't know what to do. It's amazing to delete eclipse,
Android now is an extremely popular mobile OS on the planet. this small robot creates a big world. includevelopers are also incluting themselves to Android development. for both novices and experts, you all need to keep your skills updated and know
Abstract:Google officially released Android 4.3 at a new product conference in San Francisco, codenamed "Jelly Bean ". This update does not change much, but keeps up with the pace of 4.1 and 4.2. It adds a series of features such as low-power
Setting up the ADT bundle
The ADT bundle provides everything you need to start developing apps, including a version of the Eclipse IDE with built-inADT (Android developer tools)To streamline your Android app development.If you haven't already, go
1. First you need to download JDK for installation and configuration, laruence Skip,: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlThe downloaded file is a file suffixed with bin. At this time, UBUNTU does not have 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