Android - Memory Leakage Solution Skillfully

Memory leak Memory leaks. When a resource object is referenced for a long time (such as Context), the garbage collector can't recycle it. Of course, the memory occupied by the object can't be used, which results in memory leaks. Memory overflow, when the object's memory occupancy has exceeded the allocated memory space size, then unpr ...

Posted on Sat, 06 Apr 2019 01:18:29 -0400 by FlashHeart

Those things about broadcasting in Android development

I remember when I was a child, everything in the village would be notified through the loudspeaker of the village radio station, which is still the case today. Broadcasting is a simple and effective way to communicate something. Similar broadcast mechanisms exist in Android systems and are more flexible to use. The following is a step-by-step ...

Posted on Fri, 05 Apr 2019 19:33:30 -0400 by Kifebear

Android uses Favicon to make sharing more compelling

Sharing is an important source of user data generated by app, and also an important way for app publicity to pull new ones, so it is an indispensable module for a slightly mature app sharing. It is believed that people who have little contact with over-sharing all know that sharing external apps is very simple, as long as access to Weixin, Wei ...

Posted on Fri, 05 Apr 2019 13:36:30 -0400 by tomsace

Copy Set of MongoDB

Overview of Replication Set Functions The replica set is a group of MongoD processes used by MongoDB to maintain the same data set. The replica set provides the basis for all production deployments: data redundancy and high availability. The high availability of MongoDB is achieved by automatic failover. This section describes the implementat ...

Posted on Thu, 04 Apr 2019 21:42:30 -0400 by errorCode30

Image View realizes image clipping and display

Image View realizes image clipping and display First, set the button and an Image View in the layout layout <Button android:id="@+id/selectimagebtn" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Select pictures" /> <Button android:id="@+id/cutima ...

Posted on Thu, 04 Apr 2019 18:54:29 -0400 by winsonlee

Practice of Angular 2 Service: Implementing Simple Music Playing Service

Introduction: If Component is the body of ng2 application, then Service is the blood that flows between components and brings vitality to them. One of the best choices for inter-component communication is to use services, which are widely used in ng1, while ng2 maintains all the features of services, including its global singleton and dependenc ...

Posted on Wed, 03 Apr 2019 16:12:30 -0400 by irandoct

Android Event Distribution Mechanism

When we press, move and lift on the screen of the mobile phone, a gesture will be formed. The series of actions will be transmitted to the View of our operation through the sequence of Activity - > Window - > View. For example, if you slide the ViewPager, the ViewPager will slide the page; if you click the button, the button will change, ...

Posted on Tue, 02 Apr 2019 20:54:30 -0400 by English Fire

android third party login

Developing Android to Realize Tripartite Login of Microblog(1) This article describes three ways to realize the tripartite login of microblog. In fact, they are three ways. But there is only one slight difference between them, that is, the method names invoked before entering the authorization page are different. 1. SSO single sig ...

Posted on Tue, 02 Apr 2019 17:03:29 -0400 by dg

java writes interfaces for mobile terminals

As a back-end language, Java is powerful in the web. Everyone knows all kinds of network applications that can be done by java. So in this era of mobile priority, how to continue to play the powerful role of java? Java is usually used as an app server to provide data and business logic for the app client, so we use java to write the interface, ...

Posted on Tue, 02 Apr 2019 01:06:29 -0400 by shana

2. Introduction and Practice of React Native Flex Layout

I haven't written a blog for a long time. I have been recording some problems with my impression notes. In 2017, I want to write my blog again. Also hope to make some friends through this platform. There is no specific introduction to the basic grammar, mainly to illustrate some differences with the standard CSS Flex and a practical examp ...

Posted on Mon, 01 Apr 2019 17:12:29 -0400 by paul2463