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 …
Tag: android
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
Sort a List of objects based in its Sublist method size
I’m trying to make my own “Facebook reaction bar” and I got into a problem, I need to sort a list of objects based in its sublist method size, let me explain! I have a ReactionModel which has a property “usernames” which is a List of Strings of usernames of those users that used …
Android Studio strings.xml: ‘NBSP’ suddenly appeared in my strings.xml files
I suddenly have the mention ‘NBSP’ in my strings.xml files, just before special characters (!, ?, ….) These ‘NBSP’ do not appear in my app when I run it. Also, when I do a copy/paste, they are not copied. I have hundreds of them in many languages. They are not found in Android St…
How to save data from RecyclerView EditText
I have RecyclerView with multiple EditText. I want to save data that user provided to the EditText, store it and retrieve it after opening an app again. I have an app where user tracks how many repetitions of certain exercise they did and obviously I want it to be saved somehow and to be retrieved later, but …
Is there any new way to open fb url directly in fb not browser?
I used this code and it was working but now it does not. I need any intent to open a url in Facebook directly. This post helped me, Open Facebook page from Android app? Answer Open facebook url Add query in manifest
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…
Accessing to TextView from class implementing Runnable – Android Studio
I have a class ExampleRunnable which is calling the method under certain restrictions to change value percentage and TextView’s which will display this after setting visibility one line aboce. I am trying to display this value till i wont stop this thread. My application is freezing because i cant acces…
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 …