Create the first AndroidProgram, Helloandroid, we will first see these files:
Here is the program: androidbooktestbutton
Next, let's talk about it. After the introduction, these are my own understandings. If any hero finds that I have made a
Step 1: first in the main. build the dialing interface in the XML file (we recommend that you use a tool to drag it, because it is faster and you do not need to define something in other files) Main. XML Step 2: strings under values. XML file
First, we will introduce how to store data using files. Activity provides the openfileoutput () method that can be used to output data to files, the specific implementation process is the same as saving data to a file in the j2se environment. // The
Android Startup Mode
The specific parameters are not explained in detail, just for a record.
First nandflash Startup Mode
Set the bootargs and bootcmd parameters:
Set bootargs console = ttysac2, 115200 noinitrd root =/dev/mtdblock3 init =/init
1. Make preparations.
Linux --- pear OS 6,
JDK---JDK1.7.0,
Eclipse --- adt-bundle-linux-x86_64-20130729.
2.
Install linux
Here I chose pear OS 6,
Pear OS 6 is a Ubuntu-based Linux system developed by French.
Because of the appearance, I chose this
Linerlayout is a row (column) that can only place the linear layout of one control. Therefore, when many controls need to be listed, you can use this pull.
Code:
Main. xml
Code in string. xml Hello world,
I like Java and Android.
Write down this article to commemorate yourself.
Not much nonsense:
Configuration steps:
(My development tools are shared with my classmates. If I have resources, I will use them more)
For Java Development, you must first
1. Create a common android Project
2. Add two configurations in androidmanifest. xml
Introduce test-related Class Libraries
Configuration unit test frame Startup Device
3. Write test code
package cn.xy.test;import
Android APK decompilation has two methods (in fact, one), one can get java files (Java class in the project ), A resource file (such as XML files and images ).1. Get the Java file.
Two tools are required: dex2jar And JG-Gui.
(1) convert the DEX file
1. Use proguard to prevent DecompilationA lot of programs are decompiled, And it is basically impossible to understand them. It is common to use proguard to prevent the decompilation. I won't dare to release the program. The average person tells you
1. Environment Setup 1. Download the android SDK and adt2, open eclipse, click Install new software under help, and click Add to install ADT on the pop-up interface, you can create a path with the location ADT (note: the path should not contain a
1. Introduction to the android graphic frameworkThe android graphic framework can be divided into two parts: the upper-layer view system used for application graphic UI display and the bottom-layer graphics driver used for graphic rendering.
The
Reprinted from: http://developer.51cto.com/art/201001/180265.htm
Since the Android mobile phone operating system is one of the most attractive advantages, it is an open-source operating system, and its writing method is simple and flexible, it can
1. Introduction to the android IPC Mechanism
1. Introduction to Android processes/threads
In the Android system, an application usually contains multiple components (such as activity and service). These components can be in the same process or in
About Android hal
1. Introduction to Hal
The existing Hal architecture was proposed by Patrick Brady (Google) in his 2008 Google Io speech, for example:
Android Hal is designed to protect the intellectual property rights of some hardware providers,
Since android3.0 (API level11), the android 2D display pipeline has been designed to support Hard acceleration. Hard acceleration uses GPU to perform all the painting operations on the view canvas.
The easiest way to enable Hard acceleration is to
The android Multimedia Framework provides the ability to retrieve and play back audio, video, and various types of images, so you can easily integrate them into your applications. you can play audio or video from files stored in resources, files in
(Welcome to join the android technology exchange QQ group: 209796692)
Receive camera intent results
Once you build and execute an image or video camera intent, your application must be configured to receive intent results. this section describes how
The android Multimedia Framework supports obtaining and encoding multiple audio formats, so you can easily merge the audio into your application. If the device supports this, you can use mediarecorder APIs for recording.
This chapter shows you how
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