1. What is Android?
Android is an operating system applied to mobile devices. It is developed on the android SDK platform using Java.
2. What are the four main components of Android?
Activity, service, broadcast aggreger, content provider
3.
As the four main components of Android, service is very simple and convenient, that is, no interface activity is required.
If an app needs to do something in the background, such as playing a song, even if the activity is disabled, it is best to
When andoird 2.0 eclair is being heated up, we learned that Google has started subsequent development. After exposing eclair, it was better to eat flan. The first time we knew it was flan's next generation called gingerbread, which was revealed by
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:
Today, we will summarize the knowledge points for passing data between two activities in Android, and refer to the fuzzy effect.
1 main program androdialogImport Android. App. activity;Import Android. content. intent;Import Android. OS.
Public class androidgoolemapdemo extends mapactivity {
/** Called when the activity is first created .*/
Private mapview mmapview;
Private mapcontroller mmapcontroller;
Private geopoint mgeopoint;
Public void oncreate (bundle savedinstancestate
The countdown is used in Android development. I checked some information, read the source code, write it out, and share it with you. If it is inappropriate, please correct it.
Write a class to inherit countdowntimer. As shown in the code below,
It is still the source code of JAVA games. As the saying goes, "source code is power ~~~
Continue to group the android game source code (15 more, mainly developed by andengine and libgdx. It is said that open-source game publishers are mainly
Android is a great solution, but the simulator is not very good. without replacing the old hardware, the efficiency problem is usually encountered when using the android simulator. Besides, you can debug it under logcat, it is never as intuitive as
Android APK file signature-keytool and jarsigner
1. Generate a keystoreLocate the position in the JDK binfile and enter the following name line:
Keytool-genkey-alias changebackgroundwid get. keystore-keyalg RSA-validity
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
/* Customize the book return time and alarm */Selfdefcalendar = calendar. getinstance (); // obtain the calendar instance, that is, initialize selfdefcalender.Selfdefcalendar. settimeinmillis (system. currenttimemillis (); // you can set the
There is a built-in mediaplayer music player in Android. When playing a video, it starts the thread automatically. Even if you click the back key or home, the song can still be played.
Now I am writing a small and small example.
Add a button
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
Database storage and sharepreferences for data storage
The database uses SQLite, while the latter stores the stored data into an XML file. This file is stored in/data/package name/shared_prefs.
I have a very small example.
Two edittexts, write data
The job is as follows: draw any line 2011-12-1 on the android screen. You can see it on the Internet. For more information, see. modify it.
Package Feng. f121.drawline; // The package name created by myself. Each person has a different
Alas, in order to make it easier after Android 2.2, it took nearly two months to complete the porting of the previous project on Android 1.5. Although the Development Board and system version of the new project have been changed, but the opencore
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