Preface
This chapter is the developer Guide (Dev Guide)/Developing/Tools/android, version Android2.3 r1, translated from "Mobile cloud _ 文bin", welcome to its blog: "http://blog.csdn.net/caowenbin ", thanks again for "Mobile cloud _ Wenbin "! We
The frame layout (FrameLayout) is used to display the screen as a whole each time, and starts from the upper left corner. However, this method has a problem called the display order, that is, the first display layer must be at the bottom layer, and
1. To solve this problem, you must first understand what is implicit (hidden) intent and what is explicit (explicit) intent.
Explicit Intent explicitly specifies the Acitivity to be started, such as the following Java code:Intent intent = new Intent
I just joined google + yesterday. A friend who needs an invitation code left a mailbox. I will send it to you!
1. Create an android project and enter the properties of the project, as shown in.
2. Click Finish, as shown in.
3. You do not need to
In the past two days, an interface similar to this is created.
The bubble dialog box here needs to be automatically filled based on the number of characters, so you need to use the tool that comes with android to draw the nine cells.Steps:1. Open
Today, when reading the source code, we found that one android Project A is A sub-project of another android Project B, and class and method in B can be used. I have never tried it. below is my practice record.
1. Create A sub-project named
In Android:
1. the memory of a process can be composed of two departments: java memory application and C memory application. The sum of the two memories must be less than 16 Mb. Otherwise, the OOM is familiar to everyone, this is the first OOM.
Note: we have been developing games on the j2's platform for a long time. I want to switch to android this time. I think it's okay to think about it. So I wrote this article.
Let's talk about the source code.
Package Sur. Face.
Suppose there is an ActivityGroup A, which contains two sub-activities B and C, jump to another Activity D in C, and then execute some operations in D, refresh the D interface when you finish and return D again. How can this problem be achieved?In C,
From the previous lessons, we can see that ListView is used to display a long list and occupy the entire screen (ListActivity ). However, sometimes you may need other similar views, so that you do not have to fill the entire screen. In this case,
The AnalogClock view displays a simulated clock with one hour hand and one minute hand. It is opposite to the DigitalClock view, which can display a digital analog clock. The two views can only display the system time, but cannot display the time of
There are three ways to push messages from the server to the Android client: polling. The application should connect to the server and check whether new messages arrive, you must implement communication with the server, such as Message Queuing. In
In our work, every boss of us wants us to do our job well, and the sooner the better, what should we do? Infinite repeat of common code blocks is one of the most effective ways to save time in our work. The following code is more likely to happen
1. Connect to the USB cable for charging. Press the power-off key and choose restart. The phone restarts for a long time, and the pop-up screen is obvious after startup.
A: The reason is that the time for USB scanning device timed out. Update the
GetLocalVisibleRect: return a filled Rect object. It feels like the Rect size of this View, left and top get 0.
GetGlobalVisibleRect: obtains a view area of the global coordinate system and returns a filled Rect object. This Rect is based on the
You can use AnimationListener to monitor the running process of Animation.
[Java]AnimationSet as = new AnimationSet (true );RotateAnimation al = new RotateAnimation (0,-720, Animation. RELATIVE_TO_PARENT, 0.5f, Animation. RELATIVE_TO_PARENT, 0.5f
A common application scenario:
On the loginactivity login page, click login and send it to the background service CmdSocketService to process the login service,
And get the login status (feedback on successful failures)
LoginActivity uses the
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