When I first set up a development environment, I wrote down several issues that may cause problems for reference.
Required program:
Eclipse, Java IDE,: http://www.eclipse.org/downloads/
JDK:
Recently, I am working on Tablet development. I think the activity is as good as the web page. The Local interface is fixed, and the Local interface can be dynamically switched. The effect is as follows:
This effect consists of three
Make a web service with whatever you want. Assume that the obtained web service address is as follows:
Http: // 192.168.0.100/Android/webservice1.asmx
In this web service, a sum function is provided, and its implementation is as follows:Publicint
Using listview and arrayadapter layout is the simplest of listview layout. First, we will create a component to display data, such as main. xml
The activity code is as follows:
Package cn.com. android. GRID; import android. app.
I have shared a lot about the android layout before. Thanks to the author of these articles. Let's take a look back:
Introduction to linearlayout and absolutelayout in Android
Introduction to relativelayout and framelayout of Android
Android Application adaptive multi-resolution Solution1. Create multiple layout folders (the same is true for drawable ).
Create multiple layout folders under the res directory, and the folder name is layout-800x480. To adapt to that resolution,
1. Custom package production knowledge
Generally, custom Rom (not beautifying or making mod) is used to customize the content of the system/APP folder in the memory of the mobile phone. The installed software will not appear here, in the \ data \
Like the standard Linux development process, an important basic task of Android platform development is to compile and port its kernel. This article, in conjunction with Android development documents and my practical experience, briefly introduces
Recent research on Linphone-android, compiling in Ubuntu Environment
1. Download source code
Http://www.linphone.org/eng/download/git.htmlWe recommend that you use the following command:Git clone git: // git.linphone.org/linphone-android.git --
Introduction to Android contacts
Learn to work with the android contacts database. basic knowledge of accessing SQLite in Android along with using cursors is expected. see the android SQLite and cursor article for more information. google changed
1. Before using the android Google map API, you must check whether the Google map application is installed in the system. The detection method is as follows:
protected boolean checkGoogleMap(){lean isInstallGMap = false; Listpacks =
Lock the screen direction XML Code when the activity is running
Full Screen Activity
To make an activity run in full screen mode, you can add the following code implementation in its oncreate () method: Java code // set the full screen mode
Simpleadapter, as a dataset, mainly fills the listview and gridview containers with data and summarizes several filling methods. The principle is very simple. You can directly look at the code and
1. Single Row display of listview(Simple_list_item_1
The Android system comes with two controls: the gridview and the gallery, which are displayed on the gridview mesh and browsed by gallery. The two controls can be combined to truly achieve the gallery browsing image effect.
In this example, two
ApplicationClass
Application is a system component of the android framework like activity and service. When the android program starts, the system creates an application object to store some information about the system.
The Android system
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