Pd = progressdialog. Show (this, "Please wait .. Refreshing ", MSG, true, false); PD. setcancelable (true); // click the return key to cancel the operation. If it is set to true and cannot be canceled, use false new thread () {public void run ()
I believe that many of my friends who have never done mobile development, like me, started the android tutorial from Master Gao hentang's book. However, I can see that the 5th plan and the subsequent steps are as follows:CodeThere is always a
The reason is the version of the compiler. Cause: by default, the Java 1.5 compiler overwrites the method of the parent class and uses @ override for description. However, 1.6 has been extended to the method of the interface; therefore, an error
I checked it and found that ADB logcat can be used on the Internet, but I didn't figure it out.
After checking the relevant information, eclipse can switch to debug to try. The view has a logcat box. Double-click to enlarge the display and export it
Startactivityforresult () directly calls onactivityresult ()Developers know that you can use startactivityforresult () and onactivityresult () Methods to pass or receive parameters.However, in the listener project, onactivityresult () is executed
Reply:
Shi Fei replied that he should not obtain this button in ontabchanged () at. In oncreate (), he should first find the button with findviewbyid, and then write setonclicklistener (New button.
Original article address:Http://qq361119908.iteye.com/blog/656281
In the past, there were two ways to map images: 1. We directly paste the graphic design in the UI. 2. For simple images such as Rectangles and slices, the API of the general system
Original article address:Http://blog.csdn.net/hopezhangbo/article/details/7384026
Use XML code on the activity node of manifest
Android: the use of windowsoftinputmode.
How the activity interacts with the keyboard. The setting of this attribute
Application entity class
Public class app {
Private int appid; // Application ID
Private string appname; // Application name
Private string appicon; // application icon
Public int getappid () {return this. appid ;}
Public void setappid () {This.
There are two common types of Android dialogs: popupwindow and alertdialog.
Popupwindow is a blocking pop-up box, which means that the program will wait until we exit the pop-up box, which means that before we exit the pop-up box, the program will
Add one to the Java code, listview. setcachecolorhint (0 );
Or addAndroid: Cachecolorhint = "#00000000" removes the drag background color of listview.
When customizing listview, when you do not useAndroid: Cachecolorhint = "#00000000" will show
Here we will introduce two methods: one is to remember each activity and then kill them one by one; the other is to use broadcast. This article comes from the network. If there are similarities, It is necessary. I wrote this post just to summarize
The effect is as follows:
Initial Interface
Input information
After "OK"
1. API documentation
1. Introduction
Used for data transmission between different activities
1. Important Methods
Clear (): Clear all stored data in this bundle
Recently, when I was working on a project, I had to use the gridview and single-choice or multi-choice functions. I searched a lot of resources online, but none of them were my desired results, so I designed a solution on my own. Do not say anything,
After the android source code environment was completed some time ago, we started to study the communication between threads and processes, because the task at hand is to continuously obtain device events, and then feedback the obtained events to
Recently I was studying an open-source project and found that the resource files defined by others have the following labels:
In this project, the above path tracing will be traced back to such a class file, so I am confused that the definition of
For those who want to learn how to develop eclipse + Java + Android, but cannot configure it smoothly According to books, it is indeed very depressing.
Because the android sdk url has been broken down, it takes a lot of effort to download the SDK.
The reason is that the webpage in the local document has the following two sections of js code that will load information online. Just comment it out.
Use the following Java code to comment in batches
/** Remove the JavaScript code that
In Android, shape is often used to define some Display Properties of the control. Today I have read some shapes and have a general understanding of shape. I would like to make a summary:
Create a new drawable folder in the android Project (this
The error message "android requires compiler compliance level 5.0 or 6.0. Found '1. 7' instead. Please use Android tools> fix Project Properties" is displayed.
Solution:
1.ProjectRight-click and choose>Android tools->Fix Project
2. If not,
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