Skip to content

Tag: android

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.…

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

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