Due to the recent busy project, the blog has never had time to update. Today, I have to update two articles consecutively.
The drag-and-drop scaling of this image is also used in my project. I will sort out the source code and give it to you. I hope
The previous project has been completed, and this week is basically okay. So I sorted out the previous projects and wanted to encapsulate some general components, in this way, similar projects do not need to be repeatedly invented, which also saves
In the past, ireader has also achieved the effect of bookshelves, but it is not easy to use using listview. Most of them are implemented using the gridview, and there is little information on the Internet. Some open-source e-books focus on reading,
The following example shows how to use a custom list adapter to display the list.
Copy codeThe Code is as follows: View Code
Import android. OS. Bundle;
Import android. app. ListActivity;
Import android. content. Context;
Import android. view. View;
Browser controls are available in every development environment, which provides a foothold for vest magic. webbrowser for windows, webview for android and ios. However, their engines are different. Compared with Microsoft's webbrowser, android and
Operate the image itself. Try not to use setImageBitmap, setImageResource, BitmapFactory. decodeResource to set a large image, because these methods are completed through the createBitmap on the java layer after the decode is completed, requiring
The Android 4.0 system defines a series of efficient navigations, including tags, drop-down lists, and up and back, this article describes how to use Mono for Android to implement these navigation methods.
Prepare the Android 4.0 ICS project
Create
Today, we can see the question "How icationicationmanager uses Bitmap for icons on the [Android interface]" in the eoe q & A. There are no good cases for searching in the Forum.
Close up a simple demo for your referenceToday, icationicationmanager
If the android application installation package APK is developed on a later android jar, it cannot be run on a later android SDK, therefore, we need to replace the developed application with an android jar package of a lower version to re-compile an
Json is a common data exchange format similar to XML, which has higher transmission efficiency than XML.
In terms of structure, all data can be divided into three types:
The first type is scalar, which is a separate string or number, such as the
What is a Service?
Service is an application component in the android system. It is similar to the Activity level, but it does not have a graphical interface and cannot run on its own. It can only run on the background, it can also interact with
The Service runs in the background for a period of time and does not interact with the application components. Each Service must be declared in manifest through . It can be started through contect. startservice and contect. bindserverice.
Like
After we develop a software, if there are too many software installed on the mobile phone, it will be very difficult to flip it. Therefore, there is a shortcut on the home page, it will be very good, the detailed code is as follows:
Copy codeThe
A high-performance webkit kernel browser is built in the Android mobile phone. The SDK is encapsulated as a WebView component.
The WebView class is a view class at the Java layer of the WebKit module. (ALL Android applications that require Web
Multithreading case -- Timer
In this case, the interface is displayed after the screen is started.
There is a text box on the screen to show the elapsed time, and there is also a "stop timing" button. Use case diagram.
A single-threaded program
1. Basic Environment preparation:
Install JDK 8.6 or later and Eclipse3.3 or later (MyEclipse is also supported). I have installed JDK and MyEclipse.
JDK1.6
My eclipse 8.6
2. Download the Android SDKUnfortunately, Android.com has been given to the
In Android, data is obtained through a sub-Thread to connect to the network, and the loading progress dialog box is displayed for the user's operations, which requires Thread and Handler to execute time-consuming code in the Thread, after completion,
The communication mechanism of the Binder is simple, but some problems have been encountered in the use process. Finally, we have solved the problem. Here we will summarize the problems and share them with you:
1. To use Binder for communication,
You can use the Intent. createChooser () method to create an Intent and pass in the desired Sting as the title.
Take the wallpaper selection box as an example. When you press the button in the blank area of the Launcher workspace, the wallpaper
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