In Android, localhost cannot be used to represent the local address. In fact, localhost is mapped to 127.0.0.1 on the PC, and there are different localhost representations on Android:
10.0.2.2
That is to say, 10.0.2.2 represents the local
SDK and IDE installation:
Http://www.androidin.com/pub/Android_Docs/Android_Docs_Trans/intro/installing.html
The prerequisite for installing ADT is to install EMF GEF DTP WTP
In this way, "org. Eclipse. WST. SSE. UI" will no longer be
Add the following method to the activity class.
Import Android. View. keyevent;
Public Boolean onkeydown (INT kcode, keyevent kevent ){Switch (kcode ){Case keyevent. keycode_dpad_left :{Return true;}
Case keyevent. keycode_dpad_up :{Return
It is too slow to update the SDK for Android. After one day, my computer will get all versions ready (before 2.2). I will package them in the online disk. Even if necessary, I will download them;
After decompression:
The SDK file is stored
========================================================== =============================== Original blog, reprinted please declare the source of Electronic coffee (original id blue rock) ========================================================== ====
Public class WiFi extends activity {private textview mtextview01; private checkbox mcheckbox01;/* Create a wifimanager object */private wifimanager mwifimanager01;/** called when the activity is first created. * // @ override public void oncreate
1. Preface
Today, I am going to talk about the achatengine knowledge. Later, I will talk about how achartengine uses demos.
Why did you choose achartengine? Because the Android platform will inevitably encounter some chart processing, achartengine
To view the printed information in JNI native code, printf does not work. You need to use_ Android_log_print.
__android_log_print(ANDROID_LOG_INFO, "ProjectName", "I am : %d/n", n);
This function is similar to printf in usage and uses format
Nowadays, many Android applications use the bottom navigation bar function, which allows users to switch between different pages at will during use. Now I use the tabhost component to customize the function of a bottom navigation bar.
Let's take a
We know that dataconnectiontracker runs on com. android. while mobiledatastatetracker is running in the system_server process, the last line of the constructor of gsmdataconnectiontracker in the dataconnectiontracker derived class: Public
A few days ago, I received a task to add support for modules to n802 (the company's tablet products), requiring the code to be compatible with versions with or without modules. The System Properties string board. has_modem is used for
The reason why the toast message prompt box is automatically closed after a certain period of time is displayed is that there is a toast queue in the system. The system extracts (out queue) a toast from the queue in sequence and displays it. After a
Android provides the am command in shell to send intent. Its source code is in frameworks/base/cmds/AM. It is implemented by Java code. Execute the am command by running the shell script frameworks/base/cmds/AM, and then running the app_process
From: http://www.android123.com.cn/androidkaifa/918.html
Many Android Developers may think that learning only about the Java layer is not enough. Here, android123 uses the source code to help you understand the android framework layer.
First, the
========================================================== =============================== Original blog, reprinted please declare the source of Electronic coffee (original id blue rock) ========================================================== ====
========================================================== =============================== Original blog, reprinted please declare the source of Electronic coffee (original id blue rock) ========================================================== ====
Local Service Development
Service Development:
1. Define a service. Note that the onbind function does not need to be rewritten and null is directly returned;
2. Rewrite the onstartcommand function to perform operations in the background. Generally,
Configuration File: Frameworks/base/CORE/RES/values/dimens. xml
Modify entries:
0dp 0dp Will be displayed in the app launcher and elsewhere. --> 48dip 64dip 38dip 38dip 5dp shortdp 64dp 52dp 56dip 4dip
Asynctask Implement Asynchronous processing task: http://www.javaeye.com/topic/827513
We all knowAndroidProvides a simpler method for processing multiple tasks than threads.AsynctaskAsynchronous task class, relative to the threadAsynctaskThe
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