Android (JAVA)

Learn Android code free

SharedPreferences in Android Studio

SharedPreferences | Android Studio | Java SharedPreferences is one of the types of saving data in Android Devices. You can save String, int, boolean, long, float, and Set<String>  types of data in SharedPreferences. In SharedPreferences data is saved in the key-value form. If you have a relatively small collection of key-values that you’d like to save, then you should use the SharedPreferences APIs. You can Add, Edit/Modify and Remove data from the SharedPreferences easily.To […]

SharedPreferences in Android Studio Read More »

Android Bottom Sheet in Java

This tutorial is about: How to create bottom sheet using Fragment How to handle bottom sheet item/option clicks Step 1: Create a new project OR Open your project Step 2: Add following library in build.gradle(Module:app)              implementation ‘com.android.support:design:27.1.1’ Step 3: Create a fragment name it as “BootomSheetEx”. Step 4: Code build.gradle(Module:app) BootomSheetEx.java fragment_bootom_sheet_ex.xml activity_main.xml MainActivity.java Step 5:

Android Bottom Sheet in Java Read More »