After the latest update published in Android studio 2021.1.1 android emulator is not opening in macbook m1 chip/apple silicon chip. It’s showing not responding in android emulator and stuck on connecting to the emulator. In activity monitor of Macbook m1 we find this issue as “qemu -system-aarch64 (Not Responding).” The …
Read More »Use and Listen call back into both activity and fragment from the same fragment
Let’s say we have fragment which is used for login. So we need to use this fragment wherever login action is necessary. We also need to get a callback from that fragment from where it created We know that from an activity if we need to listen to call back …
Read More »Call dialog fragment from another fragment and return callback in the fragment from dialog frament
From the Fragment open the dialog fragment like below [crayon-673ed15b9a848356282884/] then to recive the callback from the dialog fragment in your host fragment use this code in your dialog fragment [crayon-673ed15b9a84d391183585/] Then you will receive in your fragment.
Read More »Show networkimageview inside circular imageview
You can use Picasso library with Circular imageview to show image from url add this 2 file to gradle compile ‘com.squareup.picasso:picasso:2.5.2’ compile ‘de.hdodenhof:circleimageview:2.1.0’ then add this line to the xml [crayon-673ed15b9b8ef939799974/] Finally add these lines in onCreate [crayon-673ed15b9b8f3711853282/] that’s it.. now you can able to see image from online …
Read More »How to change fab(floating action bar) color android
Floating action bar is an attractive implementation in android material design. Any one can do special activity with the help of this button. How to change floating action bar(fab) color as android developer: Method 1: Change floating action bar(fab) color in xml: To change floating action bar(fab) color just follow …
Read More »How to refresh activity on new notification click – Android developer
In some case we face this kind of issue.. In a specific activity we are active then new notification arrives.. In this case if user click on the notification we need to refresh the activity with new data from the notification. While using push notification service for example: firebase notification …
Read More »