Debugging
1. FirstProgramUpload to the simulator. Suppose we use ADB to push Hello/data/hello to upload the program to the/data directory of the simulator. Make sure that you have the executable permission for hello.
2. Run gdbserver: hello on
Keyword: how to install the APK file to the android simulator and Android sdcard
Install the APK file to the android Simulator
The execution file used by the Android mobile phone is in APK format, similar to the EXE file on the Windows platform.
a previous project requires an effect: For a listactivity, the menus popped up by different items are different. As shown in, we need to bring up menus with different titles by pressing different items: For A Long press event, you can use the
Previously, pagination was implemented using gridview and activitygroup. because tabhost is not easy to use, there is another reason for poor level. if you want to help, rewrite view to solve any problem.
I will not explain much about the use of
Sina Weibo has been very tangled, and Auth authentication is a sign of blood. Previously, the project was used by others. Recently I want to know more about it, so that I can use it better in the future.
Be sure to keep the following
There are a lot of examples of Web soft application, I also learn from others to modify the next, recommended a Web site: http://www.iteye.com/topic/685986
I have never understood this before. Today I carefully record it and use it later.
Hashmap
Radiobutton is very common in our app development. I don't need to mention it.
Although the Android system provides us with radiobutton, it has a "different" effect for our applications, because Android is too rigid and too stone-heavy. you can
In the previous section, we talked about the ball movement. This section describes the particle system, and we can get a large number from the name. to put it simply, the particle system is called a particle system with many small balls to be moved
In the first article, I introduced the application of viewpager and disabled slide to the next page.
This article will process it and simulate the functions in Sina, vierpager paging.
In the message column of Sina Weibo, this is the case (check the
Java has divided object references into four levels since jdk1.2, so that the program can control the object lifecycle more flexibly. The four levels are from high to low: strong reference, soft reference, weak reference, and virtual reference.
Here
First, let's talk about how to connect your mobile phone to your computer:
If you have a wireless network router at home, you can directly intervene your mobile phone in the wireless network. If you only have a mobile phone and a laptop, you can
Let's talk about the principle. As you know, android can monitor databases. However, I personally feel that this monitoring is not powerful. No matter how the monitoring is implemented, the final result returned is whether the database has changed
In Android, many permissions are defined for some system-related operations, such as phone calls, text messages, and file writing, to ensure security. To ensure application security and stability, we can customize some permission mechanisms to
In Android, menus can be divided into options menu (generated by the menu key) and context menu (generated by pressing the screen for a long time)
The following is an example;
1, Options menu (generated by the menu key ),
@Overridepublic boolean
1. Call the system music player
private void playAudio(String audioPath){Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(audioPath), "audio/mp3");
It is easy to use in recent projects. The following is a summary:
There are two ways to set the branch standby mode for Android
The first is simply implemented by setting the windowmanager attribute:
Set in activity oncreat () method
Getwindow ().
There are two ways to handle dialog box events:
There are two methods for event listening in the dialog box:
1. Listen to the dialog event;
To listen to the back key event, you only need to implement the dialoginterface. onkeylistener interface.
The
Android applications frequently process images. Especially when a program loads a large number of images and high-resolution images, oom exceptions are most likely to occur. Below are some of my memory loading methods.
Method 1:
public Bitmap
Use broadcast intent to control the built-in music player in Android
Zhengzhiren
Http://blog.csdn.net/ZhengZhiRen/archive/2011/01/13/6134730.aspx
The music player that comes with Android can only be regarded as an application on the system and
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