Introduction
I am not too busy recently. I spent some time learning about android application development. After two weeks of study, I also wrote a lot of demo examples, which can be pushed to the demo set of basic controls and basic animation
1. Download NDK r6 and FFmpeg 0.8.1
Android NDK r6
FFmpeg 0.8.1
2. Extract
Extract the android-ndk-r6-linux-x86.tar.bz2 to the/home/pekall/opt directory and add the ndk path to the path environment variable
Decompress the ffmpeg-0.8.1.tar.gz to
As mentioned earlier, there are two ways to start a Service: startService and bindService. The former has already said how to use it. Therefore, this post is mainly about bind service. Here we will discuss only those services that are bound, and
(1) User-mode threads: (Linux)Because the kernel does not support multi-threaded processes, the kernel only has the concept of a single-threaded process, and the multi-threaded process is implemented through a function library connected to the
Android systems can be deployed in the following ways:
1. LinearLayout-linear Layout
Yes. All components on the page are laid in a linear layout,
Vertical:
Android: orientation = "vertical" indicates to form a vertical column;
Horizontal
Android NDK-based learning tour-resource releaseDuring the previous project, because of frequent interaction with the C engine, the entire application suddenly fails. Because I started learning Java, I don't have much idea about actively releasing
OpenCore is the core of the Android multimedia framework. It is used to collect and play audio and video on all Android platforms.OpenCore programmers can easily and quickly develop multimedia applications, such as audio and video collection,
Sqlite3 can be used in simulators. In most cases, sqlite3 is not available on a real machine. If sqlite3 can be implanted on a mobile phone, the debugging program will get twice the result with half the effort.The method is as follows: 1. Find a
I previously wrote about how to create, delete, and determine shortcuts. However, I found that the methods used to determine shortcuts are not always effective. I checked them online and found that all the problems were solved after version 2.2.
1. Start the Android init process
Start with Linux. Linux is loaded into the memory by bootloader and starts to run. After the Linux runtime environment is initialized, Mount ramdisk. img root file system image, run the init program, which is also
We can also create another Shard, DialogFragment. As the name implies, DialogFragment is a Fragment floating on the Activity. DialogFragment is useful when user feedback is required. Similar to ListFragment, The DialogFragment base class must be
Now, we can modify the project in the previous section. In this way, the option menu will pop up when you press the menu key. 1. Use the project in the previous section and add some code in MenusActivity. java. [Java]Public class MenusActivity
There is another important thing before chatting ,? That's right. It's a friend list. You don't know who you are talking to, right,
Hey hey, everything is simple and basic chat goals can be achieved earlier, so the code is very lazy (or rotten ?),
The Spinner is a drop-down box and a subclass of AdapterView. The display of AdapterView can be achieved through data binding. The data source can be an array or database record, and the data source and AdapterView can be a bridge through Adapter.
Some personalized colors are often used in Android development. However, the wide RBG Color comparison table often gives people a dazzling feel, let alone easily select one or two satisfactory colors, next I will summarize the more brilliant colors
To fix the frequency in a cell phone at a single-core frequency of xxx: Echo performance>/sys/devices/system/cpu/cpu0/cpufreq/scaling_governorEcho 0>/sys/devices/system/cpu/cpu1/onlineEcho 0>/proc/mtk_hotplug/enableEcho
Sometimes, our programs need to provide options for users to customize their own use styles. For example, you may allow users to automatically save logon information, set the page refresh time, and so on. On the Android platform, we can use the
In the past few days, the Basic Debugging of rfid is almost the same. It is a real building process from scratch, and it has a great sense of accomplishment. The following describes the jni of rfid..This jni development uses android ndk tools.In jni
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.