Developing native applications with Android ndk (2)

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

Install the APK file to the android simulator and Android sdcard

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.

Android onitemlongclick + oncreatecontextmenu implements long-pressed listitem to bring up different menus

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

Android tabhost solves the following white lines

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

Android Sina Weibo oauth Certification

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

Android listview soft reference softreference asynchronously loads Images

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

Android User-Defined radiobutton (single-choice button) icon can be customized.

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

Android game development-Particle System Application

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

Android viewpager sliding pagination and screen blocking (simulation of Sina)

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

Android development optimization-using soft references and weak references

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

Android wify Development

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

Perfect solution for Android monitoring contact data changes

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

Android obtains information about the system.

Obtain the MAC address: public String getLocalMacAddress() { WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifi.getConnectionInfo(); return info.getMacAddress(); } Or: private

Android broadcast permission

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

Menu in Android

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

Android calling system player

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");

The screen of Android is not on standby

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 ().

Android dialog event monitoring

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 image loading Optimization

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

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

Total Pages: 2774 1 .... 1844 1845 1846 1847 1848 .... 2774 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.