Kotlin Coroutines and Room

Kotlin Coroutines and Room

Oct. 4, 2019 by

Kotlin Coroutines: A brief intro. Coroutines are a neat new feature of the Kotlin language that allow us to write asynchronous code in a more idiomatic way. — This also means you can write asynchronous code the same way you

DayNight — Adding a dark theme to your app

DayNight — Adding a dark theme to your app

Sep. 18, 2019 by

The DayNight functionality in AppCompat allows your app to easily switch between a dark ⚫ and light ⚪ theme. This has many benefits for your users, from saving power on OLED displays, to increasing usability for people with reduced-vision, and

AntionBar or Toolbar

AntionBar or Toolbar

Aug. 22, 2019 by

Toolbar back arrow icon not align with Title The navigation button is vertically aligned within the Toolbar’s minimum height, if set. So if you set minHeight attribute the same as your toolbar height (layout_height ), the back arrow will be centered vertically. <com.google.android.material.appbar.AppBarLayout

Keep these things in mind for making library

Keep these things in mind for making library

Jul. 17, 2019 by

Implementation Vs Api in Android  Dependencies appearing in the api configurations will be transitively exposed to consumers of the library, and as such will appear on the compile classpath of consumers. Dependencies found in the implementation configuration will, on the other hand, not be

Android Studio

Android Studio

May. 10, 2019 by

Clear cache Cache directory Path : C:\Users\<username>\.AndroidStudio3.4\system\caches Delete cache folder

Become a masters in Array

Become a masters in Array

Feb. 15, 2019 by

This class contains various methods for manipulating arrays (such as sorting and searching). This class also contains a static factory that allows arrays to be viewed as lists. How to search for a string in an arraylist May be easier

Generics in Java

Generics in Java

Jan. 31, 2019 by

The Java Generics programming is introduced in J2SE 5 to deal with type-safe objects. Before generics, we can store any type of objects in collection i.e. non-generic. Now generics, forces the java programmer to store specific type of objects. Advantage of Java

Useful Codes

Useful Codes

Jan. 16, 2019 by

Browse sample code to learn how to build different components for your applications. This section covers useful codes for Java Android Programming. Every example program includes the description of the program, Java Android code, explanation as well as output of

RxJava2

RxJava2

Jan. 14, 2019 by

Converting callback async calls to RxJava APIs usually offer one of these two options when dealing with expensive operations: A synchronous blocking method call (expected to be called from a background thread) An asynchronous non-blocking method call that uses callbacks (and/or listeners, broadcast receivers, etc)