Skip to content

Tag: android

how to create a timer minutes by pressing the button? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 9 months ago. Improve this question how to create a timer for 2 minutes by pressing the button? I want to create a button that …

How to change color buttons of navigation

all the words I wrote in the picture i need change color buttons of navigation warning color buttons not android:statusBarColor Answer From API 27 you can use this code: in the first line, you set the navigation bar background color and in second-line, you set the navigation bar icon color to light or dark

Android and SQLite: “nested” getReadableDatabase

In my Android app I use the following code to access db: method1 and method2 can be called independently from outside the class. In addition, there are situations where method1 must call method2. In method2 I need a db instance, so I should call SQLiteDatabase db = helper.getReadableDatabase();. This is ok if…

Do a task with interval in a loop

I already saw many question here but nothing worked for me. I wanted to set the text in a text view after every 1 second. This is what I tried: This does the task immediately and only the last number is seen. Then this: in this the screen shows blank white and after 90 seconds, I see the last number.

Unable start activity, FATAL EXCEPTION: main [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 10 …