IDK why but after just coping the entier mainactivty.java file from this video IDK why my seek bar and timetable are not showing any progress there is an exception I have 2 audio files but the video show has only one so I have doubled all the methods also the onClick and a dialog which is different from it Ma…
Tag: android
How to startActivity within RecyclerView CustomAdapter
I want to add startActivity() to my onClick listeners in my CustomAdapter class. CustomAdapter.java: The problem is I’m getting the following error in my IDE: Initially , I thought this was happening because my CustomAdapter class was static. So, I made it non-static. But, the problem still persists. Pl…
Displaying Error if no item from a AutoCompleteTextView is selected
I want to show an error message if no item is selected from the AutoCompleteTextView. Here is my XML Java Code It is not working What am I doing wrong? Answer If I set an error on customerSpinnerLayout then it works Everything is the same as above you just have to change the condition It works for me. Best of
How can I set current date (Today’s date) same as selected date in Material Date Picker Android
How can I set current date (Today’s date) to my local date. My timezone is GMT+07:00. I can just set only setSelection() date but can’t set current date. (Sorry for my any grammatical mistake and thank you in advance) Calendar image Answer I could be wrong, but I think you don’t need to worr…
Gradle (Java) cannot find symbol for class in subdirectory of package
It’s been some years since I have programmed Java and I am having trouble with resolving a build issue with not finding a symbol for a class in the same package directory structure. The following class is attempting to reference Manager. Note the package declarations for both classes. I am importing com…
Remove extra space on button and remove rounded corner in Android Studio
I’m trying to make 4 buttons in a grid layout, but I don’t know how to remove the extra space on top and bottom on each button. I also don’t know how to remove the rounded corner. I tried to use cornerRadius but it does nothing. Here’s the screenshot of the layout.As you can see, there…
How to achieve circular UI in tab view android java
I am working on a project for a client and they gave me the UI where I have to implement a certain tab like layout and I was wondering how to achieve this kind of tab on android. I have attached the image below. Any help would be much appreciated. The snapshot of what I want to achieve Answer If
Drawing a graph in Paint with Android graphics
I’m trying to plot a graph on a View using a canvas. So far so good it plots correctly as show in the next image: Desired Output once you tap on the screen the expected result should clear the screen and plot a new graph but instead draws on top of it resulting in this: Actual Output How do I
Flutter & Android: Your build is currently configured to use Java 17.0.2 and Gradle 7.0.2
I got this on my android part of Flutter. Please kindly tell the solution to this. I would really appreciate your answer. Answer Gradle 7.0.2 support java version 16, in your project Java is setted for version 17, so solution is to upgrade gradle version or downgrade Java version.
android LocationRequest is private
I want to get driver current location in uber clone. When I write this code: I get the error: Cannot resolve method ‘create’ in ‘LocationRequest’ And when I write I get this error: ‘LocationRequest()’ has private access in ‘android.location.LocationRequest’ num …