In my app I’m developing in android studio, I’m making a button to redirect from one activity to another but it does not give me anything even though I do not have any errors in the code. Answer Check your id’s on your xml layout, also check there is no onClick XML property being used that c…
Tag: android
Media player returns error and no sound plays
I have been testing my basic media player created for an app start up sound. The media is pulled from a URL contained within my firebase database. The media player works on an earlier emulators but not on any real device. The error code is MediaPlayer start called in state 0 (Error -38, 0). I’ve read th…
can’t get instagram profile picture full size
a few days ago i was able to fetch inta profile pic in my android app by remove vp/ from the pic URL and change the resolution from s150x150 to s720x720 for exp ,and it worked fine but now i still get “invalid url signature” , so i think instagram has added signature to their url ,I usually remove…
Multiple sourcesets configurations
I have two productFlavors Now, I created a different source set for ble where I added few extra Java classes. So I have two sets of directories now: app/src/main/java/… app/src/ble/java/… In the ble set, I have a Java class called BLEUtil.java I want to call a method that is in BLEUtil.java from m…
How to use strings on java (Android)
I’m working on a project where I’ve defined several strings to use on my project. I want to use a string to be displayed as my subtitle of the page on the toolbar. The reason I’m using strings is because I want my app to be translation supported. Here is how I use subtitles on the toolbar of…
How to count the number of documents under a collection in Firestore?
I am trying to get CollectionReference count that exists on the Cloud Firestore, I have tried to get it with: But unfortunately, I’m getting: Is there is another way to get the count of another way to fix the IllegalStateException? Answer Edit: October 20th, 2022 Starting from now, counting the document…
android.support.v4.content.FileProvider not found
I am trying to upgrade a working old app to support Android API 26, and one of the thing I need to use is android.support.v4.content.FileProvider – but it was not found. Due to the early Android build, the gradle file seems simple. Is it as simple as adding a dependency? I have look around and some sugg…
Dagger Component has conflicting scopes
I am using Dagger and I have an app component with @Singleton scope and also a subcomponent with @Singleton scope. Now when I compile it I get this error: [io.droid.nowtellapp.dagger.SignInMvpComponet] io.droid.nowtellapp.dagger.SignInMvpComponet has conflicting scopes: io.droid.nowtellapp.dagger.ApplicationC…
NavigationView header image
I need to change NavigationView header image from fragment, but i am getting error. Someone can tell me what i am doing wrong?. Thank you for helping))) java.lang.NullPointerException: Attempt to invoke virtual method ‘android.view.View android.support.design.widget.NavigationView.getHeaderView(int)R…
How to implement a circular color picker in Android? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question How can I build a color picker as given in the image using android? when a…