Category "android"

How to run react native on WSL with android emulator on Windows

I have a react native expo project on WSL2 and I need to run it on an android emulator on Windows, and I am also willing to run the project using yarn start. Ho

Cannot pass filepath to MediaRecorder in Android 11

I am passing filepath to MediaRecorder for creating video file. File(filePath).exists() returns false, but MediaRecorder fails with IOException, java.io.FileNot

TimePickerDialog in spinner mode

In my project, I use TimepickerDialog to show the time in a TextView. My Timepickerdialog is shown as a clock, but I want it shown as a spinner. How can I do th

Firebase Cloud Messaging : not receiving message in android 12

I am trying to send push notification to android 12 device using Firebase messaging service. When i try to send FCM from nodeJs, onMessageReceived is not called

Android Notification MediaStyle Ignores Ongoing Flag

I am attempting to employ a MediaStyle notification in an audio Android application as discussed in the audio app documentation as well as in the media style do

ViewPager2 crash

I am using Advance Navigation Component with BottomNavigationView. In one tab I have ViewPager2. When I clicked on the tab for the first time, it worked fine. A

How to globally change language in Android app

I have such code, and its work fine, but it change language only in context which was applied. I need to run this code in all activities. How can i change langu

Android Programming - Navigation Drawer Multiple Instances of Same Fragment

I am trying to make a weather app where each location that the user adds, it will be shown in the Navigation Drawer. I would like to have multiple items in the

How to remove the access rights to a linked google account after the deletion of an account at firebase?

I just implemented the possibility to delete the personal account at Firebase of an Android application. I then discovered that the application is still listed

java.net.ProtocolException: expected * bytes but received * #4302

@post() @multipart Call<FileUploadResult[]> upload File(@nonnull @part MultipartBody.Part... files); MultipartBody.Part body = MultipartBody.Part.create

Can I hide certain files and folders in the Project Explorer of my Android studio?

There are many files or folders that should be included in the project for a specific case, such as when building, but are not editable by the user. In the a

What is the use case for @Binds vs @Provides annotation in Dagger2

I am not certain on the purpose for Dagger2's @Bind annotation. From what i have read online im still not clear but here is an example: @Module public abstr

WebView is not loading page in Android 9.0?

public abstract class MainActivity extends AppCompatActivity { private static WebView web; private WebView mWebView; private java.lang

Flutter: How to use RefreshIndicator with SliverAppBar

I'm trying to add RefreshIndicator to CustomScrollView. Is it possible to do? Here is the code sample: CustomScrollView( slivers: <Widget>[ SliverAp

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate; error

I tried everything, but the error not getting solved Here is my code: public String[] getWeekDays() { LocalDate today = LocalDate.now(); LocalDate mo

WhatsApp Status Save In Android 11 or above

Please guide me how to access whatsapp status folder in android 11? I have seen status saver apps in play store that doesn't ask for any special permission but

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate; error

I tried everything, but the error not getting solved Here is my code: public String[] getWeekDays() { LocalDate today = LocalDate.now(); LocalDate mo

Bottom Navigation bar moves up with keyboard

I am using scroll view in a fragment but the screen does not scroll up when the keyboard is shown as it should be. Here is the scenario: I have mainActivity wh

Could not find com.beloo.widget:ChipsLayoutManager:0.3.7

I am using repositories mavenCentral() because jcenter() is deprecated. I want to implement com.beloo.widget:ChipsLayoutManager:0.3.7. But this is uploaded on j

I cannot concatenate a variable + string + variable this line of code gives me a error "None of the following functions can called with the argument s

I'm a newcomer in this, and I'm learning kotlin in android studio, and I'm stacked in this error, "None of the following functions can be called with the argume