Set Android SDK home
After installing the plug-in, you also need to configure the following before using eclipse to create an android project. You need to set the main directory of the android SDK. Click "Windows> Preferences", as shown in Figure 2-
Many people encounter the following exceptions when using startactivity:Caused by: Android. util. androidruntimeexception: Calling startactivity () from outside of an activity context requires the flag_activity_new_task flag. Is this really what you
AndroidSystem SupportSQLiteDatabase, which makes our use very convenient. HoweverUse androidSystem AccessSQLiteSometimesAndroid. database. SQLite. sqliteexception:Database is lockedException, such
This exception is basically caused by two
In the Android system, every application is composed of activities and services. Generally, services run in independent processes, and activities may run in the same process, it may also run in different processes. So how does the activity or
1. Android decompilation 1) download two tools dex2jar, jar2java 2 modify apksuffix to .zip, and decompress classes. dex 3) Use dex2jar. bat open classes. dex obtains the classes. dex. dex2jar. jar 4) use jar2java to open the jar package above and
For Android embedded development, you can see the following content:
Reference: http://blog.csdn.net/zkycdy/article/details/8296384
I. First, you must understand the android porting and driver core development on the ARM platform. Of course, it can
Although many netizens have already written articles about compiling and running android2.3 in ubuntu11.04, they have to do everything themselves to better understand the steps, A long time ago, I wanted to compile the android source code myself,
These days are quite troublesome. For RTSP server, we need to port live555 to Android. The common practice is to write an android program. MK, put it under the android source code tree, mm, you can, but I have always had a bunch of errors, and I
I. First, let's talk about the SAVE and restore functions of canvas. This is a very attractive part of canvas.
The ondraw method will pass in a canvas object, which is the canvas you use to draw the visual interface of the control.
In the ondraw
1. Install JDK
Download the latest JDK version as follows:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Here I downloaded: Java SE Development Kit 6u24 for Windows x64, multi-language, that is, this file:
Basic Implementation of guestlistener
Http://topic.csdn.net/u/20110316/16/a26f9883-12ea-472c-92f6-e64949381a3b.html
The last sentence is useful when the entire article is so long.
Viewflipper writes an image to XML, which is rarely used in
Method 1: In the ondescloud method, exit the system. Can this be used?
@ Override
Protected void ondestroy (){
Super. ondestroy ();
System. Exit (0 );
// Or the following method
// Android. OS. process. killprocess (Android. OS. process. mypid ());
Java Syntax:Correct use of Java. Lang. String and Java. util. Vector1. Specify the final of the class as much as possible. The Java compiler will look for opportunities to inline (Inline) All final Methods2. Try to reuse objects. Use stringbuffer
When developing Android mobile clients, multithreading is often used for operations. We usually place time-consuming operations in separate threads for execution, avoid occupying the main thread and bring a poor user experience. However, the main
1. Chinese garbled display solution:Settings-> Editor-> appearance-> select theme-> select override default fonts by: select a font that supports Chinese fonts in name, such as, Serif, sansserif and so on, and set the size. Generally, you can set it
In today's project, convert the returned URI type to file. Write it as a method:
Private file uri2file (URI) {file = NULL; string [] proj = {mediastore. images. media. data}; cursor actualimagecursor = getactivity (). managedquery (Uri, proj,
Android GDI basic framework
The concepts and Code involved in Android are the most complex, that is, the Code related to GDI. But in essence, in terms of abstraction, so many codes and frameworks do one thing: the operation and management of the
There are also a lot of articles on this aspect on the Internet. The basic idea is to solve this problem through thread + cache. Some optimizations are proposed below:
1. Use a thread pool
2. Memory Cache + File Cache
3. In the memory cache,
Directly:
By, the search toolbar has the following functions:
1. Implement speech recognition and obtain keywords
2. When edittext has text input, the file deletion button should be displayed at the end of the component, that is, the X symbol.
3.
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