As the new object introduced after Android 3.0, Actionbar can be said to be a convenient and fast navigation artifact. It can serve as the title of the activity, highlighting some key actions of the activity (such as "search", "create", "share", etc.
Recent projects need to use a similar mobile phone battery charging progress animation effect, before the properties of the animation, is a picture + timer to complete the way, has been learning animation this piece, plus a review of the custom view
I'm a piece of cake. Currently saw two kinds of pop-up box implementation, the first is the most common Popupwindow, the second is the activity of the way is a few days ago. Feel very domineering oh. Unexpectedly, activity can also be a pseudo
The micro-trust platform is very hot after opening, many third-party applications want to try, after all, can use the micro-letter to build up the relationship chain to expand their application is very good, can save a lot of social expenses, I
combination Mode definition :
Compose objects into the structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
Group objects into a tree structure to represent a
Four ways to implement timers in Android
The first way to make use of timer and TimerTask
1. Inheritance Relationship
Java.util.Timer
Basic methods
Schedule
For example:
Timer.schedule (task, delay,period);
Delay is long,period long:
In front of the Popupwindow implementation display imitation Tencent News bottom pop-up menu useful to animation animation effect to realize the menu display and hide, this article to introduce the next bar.
1.Animation Animation type
The Android
Get the picture from a photo or photo album, crop it, and then display the picture on the ImageView. Of course can also upload to the server (most of the project is uploaded to the server), referring to the online data and combined with the
Android.permission.MODIFY_PHONE_STATE permission restrictions have been changed to system permissions
The normal application has been unable to call
So the articles found on the Internet to use Android.permission.MODIFY_PHONE_STATE have been
In Android, the storage of data is divided into two ways:
1, directly in the form of files stored in the directory
2, in the JSON format stored in the database
There are two different ways to store data in a file:
1. txt file generation
2.
1, start the virtual machine
2, my Android SDK in the "E:\android\android development environment \android Sdk\platform-tools" To install apk copy to this root directory (and adb.exe the same folder).
2, click on the lower left corner of the
Edit (shrink, doodle, etc.) the picture and save it to a picture of the specified format and size.
Post Code First:
Copy Code code as follows:
Bitmap bmp = Bitmap.createbitmap (config.argb_8888);
Canvas Canvas = new Canvas (BMP);
First look at the general way to hide the status bar:
Method One:
@Override
protected void onCreate (Bundle savedinstancestate) {
super.oncreate (savedinstancestate);
Remove TITLE
requestwindowfeature (window.feature_no_title);
Remove the
1. Android Memory leak concept
Many people think that Java programs, because there is garbage collection mechanism, there should be no memory leaks. In fact, if we do not use an object in a program, but because there is still a reference to it, the
First, the preface
About the xposed framework believe that everyone should be familiar with, he is a well-known framework of the Android Hook technology, there is a framework is cydiasubstrate, but this framework is charged, and personally feel not
Android UI Update
People who have done Android development have been confronted with the problem that as the requirements change, some of the portal interfaces will be subject to changes in UI, content, and jump interface, and there are several
1. Introduction
In fact, this effect was written a few days ago, but has not updated the blog, was thinking of the sesame Radar also do a good job to blog, and then today saw the micro-letter of the public number has a friend of the Sesame division
In a recently written Android, you need to request data from a Web server, have a login activity, log in to Mainactivity, and the middle login and mainactivity all need to request PHP Jsonapi, So to maintain the session in the network request,
Get the highest privileges in code first the phone is root, no root please don't look down.
The first is to write a static method
Copy Code code as follows:
public static Boolean isRoot (String pkgcodepath) {
Process process = NULL;
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.