For some reason even after following some parts of the guide, I wasn’t able to insert a new entry to my database. retrival is okay. I don’t really want to do the respitory and viewmodel boilerplates as mentioned in the guide I have put the relevant dependencies in build.gradle already. I am using …
Tag: android
Fragment cannot be converted to Fragment nextFragment
I am very new to android/java dev so bear with me a bit here. I am using and a button to load a Then on TestFragment.java I have So when the button btn_test is pressed, it goes to TestFragment.java, which then loads the fragment_test.xml layout – as far as I can tell. However, I want my TestFragment to …
Android Studio Retrofit Call Failure
I’m trying to use Retrofit in my app via Java. I’m using this worldtime API. You can call this URL in your browser to see the response : http://worldtimeapi.org/api/timezone/Europe/Istanbul (response comes too late, just refresh your browser) I added this line to my AndroidManifest.xml I added the…
How to ask for permissions in an onClick event from a button inside a dialog fragment
As soon as my app opens up for the first time, a dialog fragment should come up (in the MainActivity), explaining why some permissions are needed, and there is an Accept button at the end. I have set an onClick listener to this button, where I want to show the default popup to ask for the permissions. To do t…
how to pass multiple value to firebase on click of listview
I want to store data in firebase on click of items in listview. My List View activity is as below. Can anyone please help. I’am new to android studio Or is there any other method to choose dynamically printed items and store in firebase databse.Like using checkbox or something… any kind of help is…
Line breaks is not being followed on printing in Kotlin
I am getting this format from a json string: When I print it, the line breaks (“n”) is not inserted. I get the Json string like so: and use this reply as so: Answer Try the following function to process the line breaks and see if helps you in fixing the issue:
> Could not find com.google.android.exoplayer:exoplayer-core:r2.4.2
I am facing this exoplayer not found error in video android studio application after I updated my project dependencies. I don’t know how to update old Exoplayer link to https://mvnrepository.com/artifact/com.google.android.exoplayer/exoplayer Can anyone tell how to remove this error and update to latest…
Room database RawQuery() is not work on “IN” and “NOT IN” clause
I have my one table like UserTable. // Now in My MainActivity.class file, I have use following code: My query is running in normal database, but when I was pass array of user ids then, in @RawQuery() method of dao class is not supported for “IN” clause used in where condition “WHERE userId I…
Adding multiple markers to google maps API from volley repose in android Java
I am new to Google Maps API for android but I would like to create a view in my android app to show the locations of some providers form the database. So far I have done the following: With this I have been able to add the markers but they are all grouped together into a whole page map of
I cant run the email intent code on my phone
enter image description here the email intent code is completely run in the android mobile model provided by android studio but when I run the code in my personal phone its not work… please answer ?? Answer Don’t forget to set the type of intent so it will trigger email clients