Posted in Android Development

file was loaded in the wrong encoding android studio windows

Reference Link: https://stackoverflow.com/questions/53249677/android-studio-shows-wrong-file-contents/54509482#54509482 Thanks to the Answer of Asim, I found deleting folder caches fixed the problem for my case (all gradle files in Android…

Continue Reading... file was loaded in the wrong encoding android studio windows
Posted in Android Development Glide

Glide With Drawable

Reference Link: https://stackoverflow.com/questions/33594735/is-it-possible-to-use-glide-to-download-image-to-load-into-a-textview Sample Code: Glide.with(myFragmentOrActivity).load(imageUrl) .into(new CustomTarget(100,100) { @Override public void onResourceReady(@NonNull Drawable resource, @Nullable Transition

Continue Reading... Glide With Drawable
Posted in admob Android Development

Admob Native advanced (Example)

All Admob Example : https://github.com/googleads/googleads-mobile-android-examples Admob Official Doc: https://developers.google.com/admob/android/native/ Github Link: https://github.com/googleads/googleads-mobile-android-examples/tree/master/java/admob/NativeAdvancedExample/   you tube video: https://youtu.be/wENWbEKRfaM   FEED LAYOUT ADD======================================== <?xml version=”1.0″ encoding=”utf-8″?> <com.google.android.gms.ads.formats.UnifiedNativeAdView…

Continue Reading... Admob Native advanced (Example)
Posted in Uncategorized

set Expiration to file (wordpress speed up)

Reference Link: https://stackoverflow.com/questions/4141643/how-do-i-set-expiration-on-css-js-and-images Edit .htaccess file : <FilesMatch “\.(jpg|jpeg|png|gif|swf|css|js)$”> Header set Cache-Control “max-age=604800, public” </FilesMatch> Leverage browser caching for the following cacheable resources    

Continue Reading... set Expiration to file (wordpress speed up)
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