need to configure the next JDK, click on the Open SDK Settings, fill in the address of the JDK7 just installed/library/java/javavirtualmachines/jdk1.7.0_71.jdk/contents/homeClick OK and you will be prompted to reload the project laterBelow to run the next try (I use the real machine debugging)Connect your phone to your computer first, and remember to turn on debug modeThen click on this little green icon: (or the run–> Run ' app ' in the menu bar)Then the following interface appears, allowing y
Android news client notes accumulation, Android news Client
If there is a third-party framework for a project, it will be much simpler. Now the news client has used many frameworks and many knowledge points. Here, we will record them.
(1) custom Request for Android Volley
This class simplifies the transmission of ne
Old Deng's andorid Study Notes-Android 4.0 Development Environment setup, andorid-android
The android version is already 4. xx and 5.0 is coming soon. There are many articles about the basic environment.
I have made a simple arrangement here, so I don't have to write such articles on my own.
[Android Notes] HandlerThread source code analysis, Android handlerthreadSometimes we need to create some resident sub-threads in the application to execute some computing tasks from time to time. At this time, we can consider using HandlerThread, which has the role of creating subthreads with message loops.I. HanderThread usage exampleFirst, familiarize yourself
(r.id.finishactivity);//Find this buttonButton.setonclicklistener (NewOnclicklistener () {//Add a Click event to this button@Override Public voidOnClick (View v) {finish ();//when the button is clicked, destroy the activity } }); } @Overrideprotected voidOnDestroy () {//TODO auto-generated Method Stub Super. OnDestroy (); System.out.println ("The OnDestroy method is called"); }}XML version= "1.0" encoding= "Utf-8"?>LinearLayoutxmlns:android= "Http://schemas.android.com/
[Android Notes] hard disk cache tools, Android tools
DiskLruCache (https://github.com/JakeWharton/DiskLruCache) should be familiar to everyone. (For details, refer to here) It is an open-source library written by jakewharton and provides a hard disk cache solution.However, the API of this database is relatively simple and sometimes cannot meet our needs. For exam
node named noteslist, and its action is Android. Intent. Action. Main,
Category is specified as Android. intent. category. launcher, which indicates that this activity is used as the entry activity. After the system finds it, it will create this activity instance for running, if not found, it will not be started (you can change the main name to try ).
NoteslistDetails
From the activity (see Figure 1) w
), a Click event cannot be triggered on a previous system on Android3.0, whether it is a view animation or a property animation, and the old location can still trigger a click event. Although the view is already visually absent, the click event in the original location continues to take effect after the view is moved back to its original location. Starting at 3.0, the Click event Trigger position of the property animation is the position after the move, but the view animation is still in its ori
: Data corresponding to actions and actions. Typical action type: MAIN (Activity Portal), View,pick,edit, etc., while the data for the action type is represented as a URI.Intentfilter: Used to describe which intent an activity (or intent Receiver) can manipulate.3.ServiceService is a stealth worker in an Android application that is a long life cycle, without a user interface and running in the background program.Context.startservice () to start a serv
Android learning notes-Dialog explanation, android-dialog
1. Use of the dialog box
1.1AlertDialog display
Simple dialog box and listener settings: focus on three buttons (that is, three words ):
PositiveButton (confirmation button); NeutralButton (ignore button)
AlertDialog. Builder bud1 = new Builder (mContext );Bud1.setTitle ("prompt message ");Bud1.se
Android personal learning notes-use myeclipse to quickly create a webservice and call it in Android
Web service is a platform-independent, low-coupling, self-contained, programmable web-based application that can use open XML (a subset of standard General Markup Language) standards are used to describe, publish, discover, coordinate, and configure these applicati
Android font drawing, distance calculation notes, and android draw
Please indicate the source for reprinting. If any error occurs, please point out
Android FontMetrics is defined in the Paint class and has five attributes respectively. To understand this attribute, you can draw a pen and draw a picture with me. Then, w
In actual development, we sometimes need to store or back up more complex data. These data are characterized by many content, large structure, such as SMS Backup. We know that sharedpreferences and files (text files) can be very inefficient in storing such data. If you have learned Javaweb's friends, the first thing you may think of is a database. Of course the database is a solution, so is there any other solution? Today we're talking about how data is stored in
Android study notes 23. Service component entry (1). What is Service ?, Android. serviceWhat is Service?I. Service1. Service IntroductionThe Service is one of the four Android components. Similar to the Activity component, the Service represents executable programs and has its own life cycle, the only difference is tha
[Android Notes] use DialogFragment to host dialog and Android dialogfragment
CommonAlertDialogIt is destroyed when switching between the horizontal and vertical screens. If there is data on the dialog, it will also be lost. The solution is to useDialogFragment.UsedialogFragmentGenerally, two methods are required:
OnCreateView (LayoutInflater, ViewGroup, Bundl
[Android Notes] Getting started with ormlite and getting started with Android ormlite
Ps: the purpose of writing this article is to try a new markdown editor haha
Introduction
ORMLite provides a lightweight Object Relational Mapping between Java classes and SQL databases. there are certainly more mature ORMs which provide this functionality including Hibernat
The 14th lesson of the corresponding Joshui teacherOne, log log outputlog.v (tag,message); Verbose mode, print the most specific logLOG.D (Tag,message); Debug-level logsLOG.I (Tag,message); Log at info levelLOG.W (Tag,message); Warn-level logsLOG.E (Tag,message); Log at error leveltag is used to mark the source of the log message with represented. Message is the contents of this log.Two, Unit test Step1: Add the following configuration information to the Androidmanifest.xml: step2 write unit tes
Android third-party Logon (personal notes), android third-party
I am writing a login today. It took me half a day to get it done, and then I wrote my own notes, hoping to help more people... Thank you for your advice.
Authorized logon. What the official saying is not very clear, which leads to some pitfalls.
Register
:
The meaning of each field I'm not going to talk about it here, I don't understand. The previous several "Android development notes of the custom Combination control" has been said, write well just in the constructor loaded in
Public SwitchView (context, AttributeSet attrs) {
Super (context, attrs);
Get the custom attribute
TypedArray ta = context.obtainstyledattributes (a
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.