Android
Program Call the local Google Map, pass the start and end positions, and generate a Roadmap
The android program calls GoogleMap on the local machine, transmits the start and end positions, and generates a RoadmapThe android program calls
Frequently used:
1. PX (pixels) pixels: Generally, hvga represents 320x480 pixels, which is usually used.
2. Dip or DP (device independent pixels) Independent pixels: This is related to the hardware of the device. This is generally recommended to
Aidl is the android interface definition language. There are too many posts on the Internet to introduce the concept. This article only describes the usage of aidl. Because aidl is used in a recently developed player project. Aidl is used for
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
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.
The Dalvik Virtual Machine supports garbage collection, but this does not mean you don't have to worry about memory management. Pay special attention to the memory usage of mobile devices. The memory space of mobile phones and tablets is limited.
In
I. Introduction to bindservice
Bindservice is a binding service that executes the logical process in the service.
The service starts using the context. startservice () method and stops using the context. stopservice () method. You can also stop
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 (); //
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
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
First look:
It is actually an application of the displaymetrics class. The Code is as follows:
Package YC. Android. Resolution;Import Android. App. activity;Import Android. OS. Bundle;Import Android. util. displaymetrics;Import Android. View.
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