Android doesn't have to write annoying toast every time, just call this packaged class and you can use it!
Copy Code code as follows:
Package com.zhanggeng.contact.tools;
/*** Toasttool can make your use Toast more easy;** @author
Copy Code code as follows:
New Timepickerdialog (Mainactivity.this, New Timepickerdialog.ontimesetlistener () {
@Override
public void Ontimeset (timepicker view, int hourofday, int minute) {
C.settimeinmillis (System.currenttimemillis ());
Android architecture
1. Application Application layer: Programs running in a virtual machine written in the Java language
The user directly uses the function, its basic application such as: telephone, contact, short message, mail and so on, but
Development environment
Installing JDK and JRE
Download the installation files and install:
Jdk-8u11-windows-i586.exeJre-8u11-windows-i586.exeUsing the adt-bundle provided by Google, it can be extracted directly to local use, using the following
In fact, I think the main or developers for the application of the optimization is not enough, too many overdraw and layout aspects of the problem, the Android developers themselves in order to fit the screen resolution and solve some other
The status of the base is similar to the charging state, and many bases provide charging function (seat charge).The base state also uses sticky intent broadcasts. You can query whether the device is plugged into the cradle or the base.
Determine
In the Android program, typically, a menu of three vertical dots is displayed in the Actionbar when there are too many entries, but it is not shown when the real machine is tested, and the problem is found when the data is found and tested: If the
Today to talk about Android directory implementation, as you can see in the novel Directory, Android provides the Expandablelistview control to achieve the two level list display effect, now to tell you the use of this control, the following is the
Today, one hours, wrote a GPS acquisition location code of a small example, including a reference to some of the code on the Web, and some changes to the code, I hope to help. The specific code is as follows: to practical adnroid platform GPS
The original Android title bar color comparison monotonous, is a black lump, now assume your software needs to add the title bar alone, so not only beautiful but also can be added to the progress bar, how to achieve:
method One , in your activity,
For a long time not to write the Android code hands are born, find their own before the program found to run, and no special error prompted to see a useful error caused by: Android.os.NetworkOnMainThreadException, check the reason in 4.0 after the
Typically, when you develop an Android project, you can use the Mediarecorder and Audiorecord tools to implement the recording function, Mediarecorder directly to the microphone data to the file, and can be directly encoded (such as AMR, MP3, etc.),
The previous article introduced the activity as well as the use of intent, this article introduces the service. If the activity is compared to the foreground program, then the service is the background program, the service's entire lifecycle will
This paper briefly introduces the basic use of Surfaceview in Android, this article will introduce the Surfaceview and multithread mix and match. Surfaceview is a multi-threaded application that is designed to prevent animation from flashing. The
The previous article has introduced the Android interface of the introduction of the technology, I believe that everyone after reading and follow the practice, the common layout and view will have a certain understanding, and then no longer
Currently, Android has not recommended creating notification instances in the following ways:
Notification Notification = new Notification (R.drawable.ic_launcher, "This is ticker text", System.currenttimemillis ()) ;
It is best to use the
Handler is a technology that must be mastered in Android development, but many people are stuck in the use phase. It is simple to use, and in two steps, the main thread overrides Handler's Handlemessage () method to send a message on the worker
First, Introduction:
Picasso is an open-source Android graphics cache for the square company. can implement picture downloading and caching function.
Ii. Characteristics of Picasso
Picasso is an Android image load caching framework that has the
This article introduces an example of Android to achieve image shadow effect, set canvas color, image tilt effect, picture shadow effect method, using Canvas.save (Canvas.matrix_save_flag), to achieve. Because the actual size of the picture is
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