Posted in Android Development Firebase

Firebase Cloud Messaging (notifications)

library link: https://github.com/karanatwal/FirePush Reference link: https://stackoverflow.com/questions/37576705/firebase-java-server-to-send-push-notification-to-all-devices/42455788 official link: https://firebase.google.com/docs/cloud-messaging/send-message App Level Build.Gradle : implementation ‘com.google.firebase:firebase-analytics:17.2.0’ implementation ‘com.google.firebase:firebase-messaging:20.0.0’ step 1: create a service class that extends…

Continue Reading... Firebase Cloud Messaging (notifications)
Posted in Android Development

send data using Interface(bottom sheet to activity)

reference link: best: https://stackoverflow.com/questions/46106607/pass-or-listen-data-from-bottomsheetdialogfragment-to-fragment?rq=1 reference link:https://androidwave.com/bottom-sheet-dialog-fragment-in-android/         1.First create an interface public static class ShowBottomSheetDialog extends BottomSheetDialogFragment { //stp 1 public interface…

Continue Reading... send data using Interface(bottom sheet to activity)
Posted in Android Development

ViewPager with FragmentPagerAdapter (single fragment multiple content)

full Reference link: https://github.com/codepath/android_guides/wiki/ViewPager-with-FragmentPagerAdapter Define Fragments public class FirstFragment extends Fragment { // Store instance variables private String title; private int page; // newInstance constructor…

Continue Reading... ViewPager with FragmentPagerAdapter (single fragment multiple content)
Posted in Android Development

viewpager fragments not shown after the first-time

Reference: https://stackoverflow.com/questions/31607361/viewpager-fragments-not-shown-after-the-first-time viewpager fragments not shown after the first-time: solution ————————————————————————————————————————————- You have to use¬†ChildFragmentManager¬†like below. @Override public void onAttach(Activity activity) { super.onAttach(activity); pagerAdapter =…

Continue Reading... viewpager fragments not shown after the first-time
Posted in Android Development Firebase

Firebase Error Exceptions

1.e instanceof FirebaseNetworkException– 2. FirebaseAuthUserCollisionException–already registed with email 3. FirebaseAuthEmailException–password reset end email problem 4. FirebaseAuthInvalidCredentialsException–wrong / invalid email and password 5. FirebaseAuthInvalidUserException– user is…

Continue Reading... Firebase Error Exceptions
Posted in mysql

How To Find Duplicate Values in MySQL

http://www.mysqltutorial.org/mysql-find-duplicate-values/ SELECT mem_name, COUNT(mem_name) FROM mem_password GROUP BY mem_name HAVING COUNT(mem_name) > 1       ***************************************************************************************************************** compare row number and value form two different…

Continue Reading... How To Find Duplicate Values in MySQL
Posted in mysql

Insert – Subquery returns more then 1 row

Insert – Subquery returns more then 1 row Reference: https://www.tek-tips.com/viewthread.cfm?qid=1557007   INSERT INTO mem_password ( `mem_name` , `password`, `hash_password`) SELECT mem_name , ‘No password’,’f8cf7801bd44f47bdf08e4ab122ab5bc’ FROM…

Continue Reading... Insert – Subquery returns more then 1 row
Posted in mysql

find id which are not available in other mysql table

find id which are not available in other mysql table   Select from one table where not in another Mysql: Select rows from a table…

Continue Reading... find id which are not available in other mysql table
Posted in Android Development

Reset Firebase Auth Password

FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); // Get auth credentials from the user for re-authentication. The example below shows // email and password credentials but there are…

Continue Reading... Reset Firebase Auth Password
Posted in Android Development

Error: null, Cannot fit requested classes in a single dex file (# methods: 98549 > 65536)

Error: null, Cannot fit requested classes in a single dex file (# methods: 98549 > 65536) Solution: app.gradle file add defaultConfig { applicationId “com.m27lab.messmanager.app” minSdkVersion…

Continue Reading... Error: null, Cannot fit requested classes in a single dex file (# methods: 98549 > 65536)