Android开发笔记(七)- Data Storage & Content Provider组件
Android Architecture(MVC, MVP and MVVM)

Android Architecture(MVC, MVP and MVVM)

To make our Android application easy to extend, modify, refactor, test or even just read it, the architecture of the application is very important. For sure we can’t have a single class MainApplication or MainActivity and put everything inside, it will be a nightmare to just read the code and understand. There are three main architectures to use in Android to build our application and gives us power to do all operations we mentioned above: Model-View-Controller(MVC), Model-View-PResenter(MVP) and Model-View-VIewModel(MVVM). Let’s talk about them one by one.

Read More
Android开发笔记(六)- BroadcastReceiver组件

Android开发笔记(六)- BroadcastReceiver组件

在介绍了Activity组件Service组件之后,这篇文章将会介绍Android开发中的第三个重要组件:BroadcastRecevier。简单来说,BroadcastReceiver主要用于监听、接收来自Android系统或者其他应用程序的广播信息,是用于不同APP之间,以及APP和Android系统之间通信的重要工具。APP可以根据接收到的信息,采取不同的操作来进行响应。

Read More
Android开发笔记(五)- Service组件

Android开发笔记(五)- Service组件

Android开发笔记之基础篇(二)中,我们简单总结了Activity组件的特性和使用方法。在其之后的第二个重要组件就是Service(服务)。简单来说,如果说Activity是负责处理与用户交互的UI部分的内容,那么Service则是负责在后台处理一些长时间,大型的操作或计算的内容。今天我们就继续来看看Service组件的特性以及使用方法。

Read More
Android开发笔记之易混淆概念

Android开发笔记之易混淆概念

这篇文章中将会列出在Android开发中经常遇到并且容易混淆的概念,他们基本都是成对出现并且需要进行比较异同的。这其中不光设计安卓的知识,也有关于Java和Kotlin语言特性的一些基本概念。在面试时很多成对的概念会同时出现并被问到异同,这篇文章也会持续更新碰到的各种易混淆概念。

Read More
Dependency Injection

Dependency Injection

Dependency Injection is a huge topic in Android development and it’s very important because it can give us a clean, well-designed, easy-to-change environment no matter we develop new features or implement any testing. So here is some thoughts about DI and an useful framework which helps you do all dirty jobs behind the scene.

Read More