Posted in Android Development

কোডক্যানিয়নের জন্য এন্ড্রয়েড অ্যাপ ডেভেলপমেন্ট

কোডক্যানিয়নের জন্য এন্ড্রয়েড অ্যাপ ডেভেলপমেন্ট এন্ড্রয়েড জগতে আমি নতুন, বেশ কিছু বছর থেকে পিএইচপি নিয়ে কাজ করি। মাত্র ২ বছর আগে গুরু “হাসান আবদুল্লাহ” ভাইয়ার…

Continue Reading... কোডক্যানিয়নের জন্য এন্ড্রয়েড অ্যাপ ডেভেলপমেন্ট
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 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)
Posted in Android Development

Remove all the previous activities from the back stack

intent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK ); Reference: https://stackoverflow.com/questions/12947916/android-remove-all-the-previous-activities-from-the-back-stack

Continue Reading... Remove all the previous activities from the back stack