When switching between the horizontal and vertical screens, the activity is switched to the background, and the activity is disabled due to insufficient system memory, we want to keep some data. What should we do at this time ???
Next we will
Intent, broadcast, and reception for Android Development
/*
* Intent, broadcast, and reception for Android Development
*
* Created on: 2011-8-15
* Author: blueeagle
* Email: liujiaxiang@gmail.com
*/
Intent
Intent is a message transmission
Screen attributes of Android Development
/*
* Screen attributes of Android Development
* Beijing Android Club group: 167839253
* Created on: 2011-12-08
* Author: blueeagle
* Email: liujiaxiang@gmail.com
*/
There are many Android screen attributes.
Message Processing Mechanism for Android Development (I) -- Handler
/*
* Message Processing Mechanism for Android development (1) -- Handler
* Beijing Android Club group: 167839253
* Created on: 2011-8-29
* Author: blueeagle
* Email:
Android ndk development entry instance
Write this to record how my own ndk gets started. It is easy to view in the future, and you will not forget to use a search engine for a messy search. Then we hope to help the new students get started. First,
1. Set the text style (such as color and italic) in textview. You can set different styles for text in different positions.(For example, set the characters with an index range of 1-3 to black, and 2-6 to bold)
Myfirsttextview = (textview)
Ubuntu 9.04, install JDK 1.5, eclipse 3.6 (helios-SR1), Adt, Android SDK
1. install Java
1) to install the following software package, add the following content to the end of the/etc/APT/sources. list file.
Deb
Sax parsing XML:
Basic Principles of sax:
The event-driven parsing of XML files is performed row-by-row in streaming mode. It does not need to parse the entire document and parse the document in order of content, sax checks whether the currently
Application scenarios
During Android Application Development, sometimes we manually create some XML files, which may be used in the project development process, that is to say, the original XML resource file is used. The original XML resource file
I carefully looked at my blog's previous blog and found that I haven't updated my blog for a long time. I am too busy with this outsourcing project, I don't have much time to update it. I have to worry about it. In the future, I will try to spend
Videoview
Common Methods:
Method Name
Description
Public void setvideopath (string path)
Load the file in the path
Public void setvideouri (URI)
Load the video corresponding to the URI
Public void
Application scenarios:
Video playback using videoview is simple and convenient, but mediaplayer can also be used to play videos. However, we know that mediaplayer is mainly used to play audio. It is an output interface that does not provide output
Introduction to sharedpreferences
In the android development process, sometimes we need to save some simple software configuration and other simple data information, and it is not convenient if we directly use the database for storage,
Android controls seekbar and ratingbar
1. seekbar is a progress bar. You can drag it to change it;
After dragging:
The original code is as follows:
Layout file:
Java code:
Package Lili. seekbar; import android. app. activity; import android. OS.
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
Provides a window view container for tabs. This object
Android day 6
Menu Introduction
Android provides three menu types: Options menu, context menu, and sub menu.
The options menu is displayed by pressing the Home Key.
The context menu needs to be displayed after 2 seconds on The View.
Both menus can
1. The source code of Android includes the interface layout file, Java source file, and resource file.
2. Use the assetmanager class to access files in the assets folder. (Learn more about assetmanager ).
3. There are two types of resource files: (1)
reboot:Intent i= new Intent( Intent.ACTION_REBOOT);intent.putExtra("nowait", 1); intent.putExtra("interval", 1); intent.putExtra("window", 0);sendBroadcast( i ); shutdown:Intent i= new Intent( Intent.ACTION_SHUTDOWN);sendBroadcast( i ); public
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