Hi everyone
Recently, everyone is very enthusiastic about learning Android. However, due to new knowledge, it is easy to forget some details and uncommon knowledge after the lecture.
In response to the requirements of a large family, I will sort
I. Handler definition:It mainly accepts data sent by sub-threads and uses this data with the master thread to update the UI.Explanation: When an applicationProgramAt startup, Android will first open a main thread (that is, the UI thread). The main
Webview is mainly used to develop Web applications. It is relatively simple. Declare a webview object in the layout file and call it in the activity.
Through the webview. loadurl ("Address") function you can open the corresponding link, such as
Because each applicationProgramThey all run in their own process space, and can run another service process from the application UI, and objects are often transferred between different processes. On the Android platform, a process generally cannot
Android ActivityProgram-- Activity carries the view, which is similar to the Controller in MVC.
I have to say that intent (intent) is used to implement activity and other components (including other activities and services. Broadcast, etc. It is a
I have been conducting Android compatibility tests recently. I started the tests after configuring device according to Android-cts-manual provided on the android official website.
First, configure the software environment: 1. Download the Android-2
Adapt to different Android phone screen sizes
240*320
320*480
480*800
480*854
540*960
800*1200
800*1280
Public static int adjustfontsize (INT screenwidth, int screenheight) { If (screenwidth return 10; }else if (screenwidth return 14;
Android sdk2.0.1The size of the built-in virtual machine is relatively small (not for the model, justPCA little more comfortable, of course, the bigger the better, I set it1050*450But the built-in Screen Saver is not wide enough,900*450Yes .), And
Add the following to the values/style. xml file:Code(If the file does not exist, create an XML file named style. xml)
Remove the background color border and set the background color in your layer.
Step 2 add Android: theme = "@
Android smart TV stick (also known as Android TV stick, Android smart player, Google TV stick, smart TV stick, Android hdmi TV stick, Android hd TV stick, etc ), it is a product running the Android operating system with an HDMI interface similar to
1. Create an SD card image file
1) Create an SD card image fileMksdcard 1024 m e: \ mysoft \ Android \ SD \ sdcard. img
Run the command ADB shell and enter ls to view the file list. This command will be explained in the following sections.2)
1. Gravity
Gravity is the center of gravity, which indicates the position of the stop.
Android: gravity refers to the element itself. The text of the element itself is displayed on the left side by changing the attribute settings.Android: layout_
AllArticleAll rights reserved by the site and original author are permitted to be reproduced only when the copyright information, original text links, and original text authors are retained. Do not delete or modify the original content for
ArticleDirectory
Goals
Initialization and zookeeper
Token set by product
Module-based fetch
Board level settings
Rules
To learn about a system, I often start with makefile or building system to understand the system
Method 1: (Java is not recommended for Android)
When I first started to use Android Thread Programming, I used to be like Java and tried to use the followingCodeSolve the problem
NewThread (NewRunnable (){Public VoidRun (){Myview. invalidate ();}
1. angle (2d Java)
Angle is a 2D game engine that is designed for the Android platform and is agile and suitable for rapid development. It is developed based on opengles technology. This engine uses JavaCodeWrite, And you can replace the
1. Whether the system prompts you to exit when you exit the activity. When you press the return key on your mobile phone to the last activity, the system also prompts you to exit.
2. Whether a desktop shortcut is created and prompted during
After the installation, the corresponding environment, we can start to create a cocos2d-x Android Project
Go to the cocs2d-x directory and open the create-android-project.bat in a text editor (if you double-click on Windows 7, some files may be
MonkeyrunnerTools
Preface:
Recently, I started to study Android automated testing methods, and made some simple arrangements for some of the tools, methods, and frameworks, this includes the android testing framework, CTS, Monkey, Monkeyrunner,
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