Posts

Sun Sep 30 05:02:41 PDT 2018

Image
Video Output: Source code link is added below. Here we have a class called MultiSelectionSpinner . In this class we have following methods. public void setItems(String[] items) Used to set adapter items using array of strings to this spinner. public void setItems(List items) Used to set adapter items using list of strings to this spinner. public void setSelection(String[] selection) Used to set selected items on this adapter using array of strings to this spinner. public void setSelection(List selection) Used to set selected items on this adapter using list of strings to this spinner. public void setSelection(int index) Used to set single selected item using position to this spinner. public void setSelection(int[] selectedIndices) Used to set selected items using array of integers to this spinner. public List ...

Sun Sep 30 04:02:41 PDT 2018

Image
Video Output: Source code link is added below. Here we have a class called MultiSelectionSpinner . In this class we have following methods. public void setItems(String[] items) Used to set adapter items using array of strings to this spinner. public void setItems(List items) Used to set adapter items using list of strings to this spinner. public void setSelection(String[] selection) Used to set selected items on this adapter using array of strings to this spinner. public void setSelection(List selection) Used to set selected items on this adapter using list of strings to this spinner. public void setSelection(int index) Used to set single selected item using position to this spinner. public void setSelection(int[] selectedIndices) Used to set selected items using array of integers to this spinner. public List ...

Sun Sep 30 03:02:48 PDT 2018

Image
Video Output: Source code link is added below. Here we have a class called MultiSelectionSpinner . In this class we have following methods. public void setItems(String[] items) Used to set adapter items using array of strings to this spinner. public void setItems(List items) Used to set adapter items using list of strings to this spinner. public void setSelection(String[] selection) Used to set selected items on this adapter using array of strings to this spinner. public void setSelection(List selection) Used to set selected items on this adapter using list of strings to this spinner. public void setSelection(int index) Used to set single selected item using position to this spinner. public void setSelection(int[] selectedIndices) Used to set selected items using array of integers to this spinner. public List ...

Sun Sep 30 02:02:48 PDT 2018

Image
Hi Guys, Maybe you all are expert in terms of using RecyclerView in android. This blog is simple example for using filter option with RecyclerView adapter. As for now you will instantiate RecyclerView and set the adapter to RecyclerView as following way. RecyclerView list = (RecyclerView) findViewById(R.id.list); list.setLayoutManager(new LinearLayoutManager(this)); list.setHasFixedSize(true); ArrayList&ltNumber> numbers = new ArrayList<>(); String ONEs[] = {"ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE", "TEN"}; String TENs[] = {"ZERO", "TEN", "TWENTY", "THIRTY", "FOURTY", "FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY", "HUNDRED"}; String HUNDREDS[] = {"ZERO", "HUNDRED", "TWO HUN...

Sun Sep 30 01:02:47 PDT 2018

Image
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost. You can send notification messages to drive user re-engagement and retention. To write your Firebase Cloud Messaging Android client app, use the FirebaseMessaging API and Android Studio 1.4 or higher with Gradle. FCM clients require devices running Android 4.0 or higher that also have the Google Play Store app installed, or an emulator running Android 4.0 with Google APIs. Note that you are not limited to deploying your Android apps through Google Play Store. Set up Firebase and the FCM SDK * If you haven't already, add Firebase to your Android project . * In Android Studio, add the FCM dependency to your app-level build.gradle file: implementation 'com.google.firebase:firebase-messaging:17.1.0' Create a Service that extends FirebaseMessagingService. Here is the full code of FCMService.kt class FCMService : Fi...

Sun Sep 30 00:02:25 PDT 2018

Image
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost. You can send notification messages to drive user re-engagement and retention. To write your Firebase Cloud Messaging Android client app, use the FirebaseMessaging API and Android Studio 1.4 or higher with Gradle. FCM clients require devices running Android 4.0 or higher that also have the Google Play Store app installed, or an emulator running Android 4.0 with Google APIs. Note that you are not limited to deploying your Android apps through Google Play Store. Set up Firebase and the FCM SDK * If you haven't already, add Firebase to your Android project . * In Android Studio, add the FCM dependency to your app-level build.gradle file: implementation 'com.google.firebase:firebase-messaging:17.1.0' Create a Service that extends FirebaseMessagingService. Here is the full code of FCMService.kt class FCMService : Fi...

Sat Sep 29 23:02:44 PDT 2018

Spring Framework Overview version 5.1.0.RELEASE Table of Contents 1. What We Mean by "Spring" 2. History of Spring and the Spring Framework 3. Design Philosophy 4. Feedback and Contributions 5. Getting Started version 5.1.0.RELEASE Table of Contents 1. What We Mean by "Spring" 2. History of Spring and the Spring Framework 3. Design Philosophy 4. Feedback and Contributions 5. Getting Started Table of Contents Spring makes it easy to create Java enterprise applications. It provides everything you need to embrace the Java language in an enterprise environment, with support for Groovy and Kotlin as alternative languages on the JVM, and with the flexibility to create many kinds of architectures depending on an application's needs. As of Spring Framework 5.0, Spring requires JDK 8+ (Java SE 8+) and provides out-of-the-box support for JDK 9 already. ...