Android to determine if the app is running in the foreground (@hi Head ghost hi)
App development often encounter this demand, need to check the current app is not visible, for example, if it is visible to maintain a long socket connection, if the cut to the background is not visible, disconnect the connection. Android did not allow the app to listen to the Home key event, so we did not do the same thing as iOS by listening to the Home key event.
Android Studio Getting Started Guide (@ Android)
As an Android developer, you should be very familiar with Android studio, if you don't understand now, it doesn't matter, then from now on, let's Learn more about Andoid studio.
Integer.valueof (String) method Confusion (@ Chen Qishu _v)
One of the StackOverflow asked a question: "I'm dizzy by the code below, why do they return different values?" ”
System.out.println(Integer.valueOf("127")==Integer.valueOf("127"));System.out.println(Integer.valueOf("128")==Integer.valueOf("128"));System.out.println(Integer.parseInt("128")==Integer.valueOf("128"));
A deeper understanding of the context (@ mu-net Android Learning Group)
Context plays a very important role in the development of Android applications, For example, to start an activity needs to use the Context.startactivity method, to convert an XML file into a View object also needs to use the context object, so to speak, out of this class, Android development is unable to move, for such a class, we know how much to him.
Facebook's Android Debugging Tool Stetho Introduction (@hi Big Head Ghost hi)
Stetho is a powerful Android debugging tool from Facebook that allows you to view app layouts, Web requests, sqlite,preference, and everything in chrome Developer tools, No need to use ADB on your own, or root your device. The way you use it is simple, after you've configured it, enter Chrome://inspect in the Chrome address bar (haha, as with webview remote debugging).
Rxjava four-using responsive programming in Android (@hi head ghost hi)
In the first-in-one article, I've probably introduced how Rxjava is used. I'll show you how to use Rxjava in Android. Rxandroid is an extension of Rxjava for Android platforms. It contains tools that simplify the development of Android. First, Androidschedulers provides a scheduler for the threading system of Android. Need to run some code in the UI thread? Very simple, only need to use Androidschedulers.mainthread ().
APP indexing for Google search (ladder required) (@ Beijing GDG)
Google uses app indexing to index apps as if they were indexed for the site. A deep link to your Android app appears in Google search results, where users can quickly experience your native mobile app and get to specific content within the app.
Android Performance Optimization series (@ hu me)
Google recently released an Android performance-optimized online course on Udacity, which now has three chapters on how to optimize performance from rendering, computing and memory, and three of power consumption. These are the refinements and additions to the Android performance optimization paradigm that Google has previously published on YouTube.