When you open eclipse, you will be prompted, which means that the android SDK Tools version is 20 or later. Click "OK" to open the android SDK Manager Update. After the android SDK Tools version is 19, you can update the package to 20. When the
TheProgramYou can test the resolution of a personal mobile phone device, which DPI level is used for development reference.
Main. xml
String. xml
Hello world, androiddpi! androiddpi enter the screen size of the device: OK
If you read the layout aboveCodeIf it doesn't feel any difficulty for this, I will paste the result graph first. I first read the result and wrote it myself. There are three linearlayout in the nest. This is a bit like Div + CSS... not complicated.
First, add an application (if the application already exists, delete it first ):Compile your andorid application, and then you need to useADBThe tool loads the .apk file to the/data/APP/directory of the simulator. The usage is described below.
The typeface class is used in the android SDK to define the font. You can set the font type by using the common font type name, such as setting the default:Paint MP =
NewPaint ();
MP. settypeface (typeface. default_bold)
Common Font types include:
*
In practice, it is possible to evaluate such a function for the application. Generally, such a function will jump to the Android Market for users to comment. (Data on your server is always less trustworthy, right)
So how do I enter the Evaluation
Call the following code: (the first call is displayed, and the second call is hidden, so repeated). This indicates activity
Inputmethodmanager Imm = (inputmethodmanager) This. getsystemservice (context. input_method_service); Imm. togglesoftinput (0
In Android, you can play a video in three ways:
1. Use its own player. Specify action as action_view, data as Uri, and type as its MIME type.
2. Use videoview for playback. In the layout file, use videoview and mediacontroller to control it.
3. Use
Disclaimer: The book "Secrets of Android Application Development", which records the logs of the book, references the relevant code and summary, and has no commercial use, it is completely a record of self-learning, and many problems will inevitably
[Reprint] http://geyubin.iteye.com/blog/1297637
Based on the original instructions in the original document, the translation is revised to facilitate reading and understanding.
Attributes:
Android: windowsoftinputmode
How the activity interacts with
The Java and native data types are mentioned earlier. Here we will start to use them:
Step 1: Create a project
Part 2: Writing Java methods:
public class NativeMethod {static { System.loadLibrary("com_nedu_jni_jnidemo5-jni"); } public
When I use M1s, I feel that the last name of the contact in the prompt function is good. It is quite good to use. I made a simple function similar to this. The Code is as follows:
Package COM. FND. ui; import Java. util. arraylist; import Java. util.
Android progress bar 1. Implementation Effect
2. layout code
Write a my_browser.xml file to store the webview.
Progress bar Layout
Then write a broser. xml file to store the progress bar
Webchromeclient
Override onprogresschanged
Today, I mainly studied Android tabwidget, but at first I was not satisfied with the adjustment of height and text center.
If the image display effect is not added, it may not feel good.
It feels so bad. Then process the tabwidget.
The process is
1. DescriptionAndroid provides an intent mechanism to assist in interaction and communication between applications or within applications.Intent has two basic usage methods: explicit intent, which specifies the receiver when constructing the intent
Once upon a time, since the launch of Android, geek toys have been taken care of, rather than interface design and user interaction design. This allows Android Developers to naturally accept this bad title, however, I once thought that this was just
Android Development Environment installation and configuration Manual
This document describes how to build an android development platform step by step.1. Download Software
N jdk 1.5 + to http://java.sun.com/javase/downloads/index.jsp download
N
Some editable views will be used during Android development, or some functions that need to be automatically updated as data changes. Most of these views require data synchronization to update the display of views. In addition, the data type is
Thank you !!!
Reprinted Please note: http://blog.csdn.net/richway2010/article/details/6600835
[Bloggers: Dear bloggers, netizens, and everyone else! Welcome to this blog. You are welcome to have more exchanges, give more comments, learn from each
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.