Posts

Showing posts from May, 2018

MVC, MVP and MVVM Design Pattern in Android

Image
MVC, MVP, and MVVM are three popular design patterns in software development. Let’s have a look on Model View Controller (MVC), Model View Presenter (MVP) and Model View View-model (MVVM) one by one.

Lots of Android libraries that make their life easier. And enable proper architecture for Android apps at the same time. For instance:

Android DataBinding – allows transfer of certain application logic into XML;
Dagger 2 – that implements the ‘Dependency Injection’ technique;
Android Annotations – library making Android components implementation as simple as possible, while not cutting down their features;
RxAndroid – highly functional coding approach, one that if fully apprehended may optimize lots of tasks;
Firebase – mobile and web application platform that helps to develop high-quality apps;


Model View Controller (MVC)


MVC design pattern divides an application into three major aspects: Model, View, and Controller.
The tools offered by Android, with layouts, Activities, and data structures,…

Android Jetpack Overview

Image
Android Jetpack is a set of components, tools and guidance to make great Android apps. In addition, your app can run on various versions of the platform because Android Jetpack components are built to provide their functionality independent of any specific version, providing backwards Jetpack is a set of libraries, tools and architectural guidance to help make it quick and easy to build great Android apps. It provides common infrastructure code so you can focus on what makes your app unique.Jetpack should help limit your reliance on boilerplate copypasta, with an eye towards rapid development and unit testing. It's even optimized for Kotlin, if you've started moving over into the new language. Google has also increased how quickly the Android Studio emulator launches, thanks to new snapshots which store the full state of the emulator while it isn't in use. All this combines together to let you develop apps faster.
Android Jetpack comes with five new components: WorkManager a…

Kotlin and Android

Image
Kotlin is now an official language on Android. It's expressive, concise, and powerful. Best of all, it's interoperable with our existing Android languages and runtime.




To use Kotlin in Android Studio prior to version 3.0 you have to manually install the Kotlin plugin. To do so, start Android Studio and open Plugins from the Configure menu. In the opened dialog, search for Kotlin, select the corresponding plugin and press Install.

Kotlin for Android Development:
Kotlin is a great fit for developing Android applications, bringing all of the advantages of a modern language to the Android platform without introducing any new restrictions.

Compatibility: Kotlin is fully compatible with JDK 6, ensuring that Kotlin applications can run on older Android devices with no issues. The Kotlin tooling is fully supported in Android Studio and compatible with the Android build system.

Performance: A Kotlin application runs as fast as an equivalent Java one, thanks to very similar bytecode struct…