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:
Main. xml
Archfsearchresult. Java
Public class archfsearchresult extends activity {protected static final string tag = "archfsearchresult"; private scrollview svresult; private linearlayout llitem; private string [] arraystr; private int
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
Tabhost is used in many applications. Sometimes setting a view in the tab added by tabhost cannot meet the requirements, because it is quite difficult to add preferenceactivity in the view.
Previously, you needed to use tabhost to switch different
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
For previous. Net or Java developers, they are used to getting grid data from the backend (multiple rows and multiple columns of datatable). However, if they switch to Android development, they will inevitably not get used to it.
When Android calls
In Android development, we often need to pop up some dialogs on the android interface, such as asking users or asking users to choose. These functions are called the android dialog box. During the process of using Android, I summarized seven types
Phonegap and jquery mobile are used to develop Android Application configurations.
To meet work requirements, we use phonegap and jquery moblie to develop Android applications.
These technologies have never been used before. It can be said that they
Public void oncreate (bundle savedinstancestate) {// For details, see the strictmode document strictmode. setthreadpolicy (New strictmode. threadpolicy. builder (). detectdiskreads (). detectdiskwrites (). detectnetwork () // or. detectall () for
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 \
According to a message from the android developer website, Google updated the distribution statistics of the Android platform versions. As of January 1, May 17,Android 2.1System occupied37.2%Number of terminals, ranking first. It was not until April
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
1. A service is a reliable component with unbounded boundaries. Reliability means that a service is generally not shut down when it is started, even if the application process of the service is killed, it also runs continuously, unless the memory
Http://code.google.com/p/apps-for-android/source/browse/trunk/Samples/WebViewDemo/
I modified it and added a simple comment. In this example, not only JS operations are performed, but Android browsers are also briefly introduced,I will explain
When developing Android applications, you must follow the single-thread model principle: Android UI operations are not thread-safe and must be executed in the UI thread. In a single-threaded model, you must always remember the following two rules:
1.
Application Scenario: determine whether the current network is available
There are available networks, such:
There is no available network, such:
Steps:
1. Get the connectivitymanager object
Context context = activity. getapplicationcontext (); //
After the android project is developed, You have to package the android project file into an APK file and put it on the market so that others can share your application! Next, we will introduce how to package an APK.
1, GenerateKeystoreFile
In 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