I’m trying to pass an object from the class “Transfer” (java) to the class “Limit” (Kotlin), if I try to get the values that come through the “Bundle” using data.name, the compiler does not give an error, but when I enter in the activity of this problem, how can I g…
Tag: android
onClick method not working in android studio
I made a side navigation drawer and it works fine but whenever I click any option in navigation drawer nothing happens.It’s like it is not taking any input. Onclicking any option I want to redirect user to a new activity but unfortunately it doesn’t happens. XML code is as follows Java code is as …
ACTION_MANAGE_UNKNOWN_APP_SOURCES: startActivityForResult() or startActivity()?
I’m following these tree examples where is showed how request permission to install an app from an unknown source: How to manage installation from Unknown Sources in Android Oreo? How to use PackageManager canRequestPackageInstalls in Android Oreo? Android 8 unknown source app installation When i tested…
Why does url with space gives me MalformedURLException? [closed]
I work with GoogleBook API, when i type one word on EditText, URL link works well for example: I type prince and the app doesn’t crash, but when i type the prince it crashes and give me …
Is there a way in firebase android to fetch data within a range?
I have a database in firebase realtime database.My DB look like this : I want to fetch data within a date range. That is if user select 03-09-2020 as start date and 05-09-2020 as end date,what i want is to display all values of TotalTax field (in this case 3 values 500,500 and 100). How can i achieve this? Ho…
Cannot find symbol: method findViewByID(int) [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 2 y…
Android Studio: Failed to initialize editor
I’m new with Android Studio technology. I’ve just launched a new empty project from scratch on Windows 10 machine. At first in my activity_main.xml file I could see an error “editor is unavaible until next gradle synch”. After clicking on “Synch Project with Gradle Files” t…
Android RecyclerView First and Last Item click works after Double click on First load
I have a recycerview. it has item click event in onCreateViewHolder method and an imageview click event on onBindViewHolder method. Surprisingly while recyclerview loads for the first time first and last item click works after second click then after it works on every click if it is not scrolled.Again when i …
Android service not working when app is closed
I’m having trouble with an android service that I’m doing. The service is about to get the location of the user every 5 minutes. All seems to go well except when i kill the app, the service won’t do nothing. In the code you will ses its checking every 60 seconds I think, but this will change…
How to ask for the permission to become Default Video Player in Android?
I am developing a video player app and I want my app to Prompt for the permission to be the default Video Player to be the default handler of video play. I know it has to be something like the default handler: source: Android Docs But I don’t know the Action I have to give to the Intent as action.