I. How to generate an odex file using APK:
Compile build/tools/dexpreopt/dexopt-wrapper on open-source git. Use dexopt-wrapper.
Put dexopt-wrapper in the/data/local directory, run the Linux Command Line using the ADB shell, and run the CD
I made some changes based on the Code on the Internet, and kept records for learning.
As follows:
The main code is as follows:
Package COM. andyidea. tabdemo; import android. app. tabactivity; import android. content. intent; import android. OS.
During development, especially for framework-related development, you sometimes need to re-compile the resource file. however, if you have no experience before, you may encounter problems such as failed compilation or successful compilation, no
Please refer to how to obtain the android source code firstArticle, get the latest Android main line code through repo (or take the tag named android-SDK-1.5_r1 ).
1. Prepare the Host OS compiling environmentIn the process of obtaining the android
1. Package the file in Android system. IMG to PC
Bash-3.2 # MountRootfs on/type rootfs (RW)/Dev/PTS on/dev/PTS type devpts (RW)/Proc on/proc type proc (RW)/Sys on/sys type sysfs (RW)/Dev/block/mtdblock0 on/system type yaffs2 (RW, nodev, noatime,
Sometimes we want to add new resources in the standard framework. What should we do?
The solution is to try it.
Through the eclipse contact, we can think of whether it is simply to put the string in each folder of Res. Let's try it out first,
From: http://liangruijun.blog.51cto.com/3061169/805484
Enjoy 20 android game source codes. Hope you will like them!Http://www.apkbus.com/android-21834-1-1.htmlAndroid crazy soccer game source codeHttp://www.apkbus.com/android-20986-1-1.htmlAndroid
This demo is the first Android-based development.
The main functions include reading the contact name and number, displaying the lisetview, obtaining listview data, concurrent text messages, or dialing.
Package com. Android. Hello;
Import Android.
In the previous chapter, we implemented the drawer + scroll function, but a problem left over is that the rolling event conflicts with the touch event of the component. Next, let's take a look at the cause of the conflict.
Public
When we need to implement a touch event, we usually think of the ontouchevent method, which can get the coordinates of the touch point, and the component also has this function, use this function, you can move, scale, and change the background image
Recently, a drawer-like function needs to be implemented in the project, and the component of the drawer content can implement the slide function. This function is implemented here:
First, design the layout Code. The Code is as follows:
In Android Local Video Player Development-FFMPEG decoding audio in a video file (1), we extract audio from the video file. This chapter uses openslElasticsearch is used to play decoded audio data. For more information about opensl elasticsearch,
Reprinted please indicate the source! After all, it's my painstaking efforts!
Link: http://blog.csdn.net/zgyulongfei/article/details/7440254
The purpose of this blog is to help friends who have failed to successfully transplant x264 to Android. It
The main content of this chapter is to search for the local video on the mobile phone and add it to the listview list. Each table item contains the thumbnail of the video, the video playback time, and the video title, in searching for a local video (
Previously, the project needed to convert songs, but it was slow to implement through java. Recently, I had time to view MP3 decoding on the Internet and find libmad, which could implement mp3 decoding, so compile it into a database to test the
1. When writing an XML layout, the [accessibility] missing contentdescription attribute on image warning is always displayed.
Solution:
To:
2. When writing a layout in Android, we sometimes need to encapsulate a class into a component for use.
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