Error message My setting value and code. AndroidManifest.xml MapActivity.java APP is crashing after calling enterPictureInPictureMode(params); It works in an activity with simple buttons, but not work in the MapActivity, which is composed with complicated elements. Answer Finally, I found out the problem! Ano…
Tag: android
(Dynamic layout) Button listener in my view update multiple textview instead of 1
I’m trying android for 2 weeks and I run into some problem. I have a list of burger that I fetch from my database, I made a view with that. The app needs to increment and decrement the quantity that the user wants so that he can pass an order. enter image description here My problem is that when I
How to print data from csv file onto secondactivity?
I’m creating an app which has a csvfile stored in its Raw resource folder and when I click on a button in main Activity , it should print the data of the csvfile in second Activity. But when I launch …
What is TAG in log.d(TAG, message)?
I want to log a Catch exception in the log cat but i don’t know the tags of log.d. Can someone help me? in all examples is see this log.d(TAG, message) but I don’t know what goes in this TAG, please help me. I tried this for example log.d(Error, “Error: ” + e) but it didn’t work.…
How to check recyclerview is empty or not using dataSnapshot.hasChildren()
I am using firebasedatabase to show my data into recyclerview. I want to show simple toast when my recyclerview is empty and i am using dataSnapshot.hasChildren() for checking the database haschildren or not. here is code when data is available the dataSnapshot.hasChildren() giving true value but when no data…
how to create a folder and file in internal storage using kotlin
I’m trying to create a file and folder on my internal storage in manifest i have these permissions. i got this i tried so many other thing from javatpoint to official java and kotlin tutorials. but none worked Answer ok got it,not specifying proper path. then to check this, navigate to Android -> dat…
Why click on optionsMenu item doesn’t work?
I have a problem when clicking on an item from an options menu. I’ve read how to create a menu on the website https://developer.android.com/guide/topics/ui/menus and I seem to do it right, but it still doesn’t work. The menu exists, it is visible, but nothing happens when I perform the click. Also…
Add delay to a loop in android without stalling the UI Thread
I have been looking all over the Android Studio Docs and StackOverflow, but I can not seem to find a way to do the equivalent of what is done in IOS here: Adding Delay In A For Loop Without Blocking UI in Android. I have tried to use a Handler, but instead of running the code like: The code seems
Android Web View looks weird on Tablet but fine on emulator in Android Studio
I made a WebView and the site looks completely fine on the Emulator but when I install the APK on my Samsung Galaxy Tab A it looks really messed up. This is what it’s supposed to look like: and this …
SQLite does not update the date value
I am trying to update the date value in the database which is hold as a text, however I stucked here, it takes the user correctly, but does not update the current date; The part that I try to update the date, the app is closed suddenly; Answer Seems like SYNTAX (May be Quotes) issue costs you. You can try