Skip to content

Tag: android

How to set delay in android?

I want to set a delay between the command between changing background. I tried using a thread timer and tried using run and catch. But it isn’t working. I tried this But it is only getting changed to black. Answer Try this code:

Android ProGuard settings for Facebook

I finally found out why my app crashes built for release. ProGuard was indeed stripping code from my application but i prevented this by manually adding the classes with the keep command in the proguard-android.txt (found in the sdk). For Facebook I used: But I think I’m still missing something. The app…

Get index of enum from string?

I have a string value, I also have an array of strings and an enum containing the range also. To get the index of the string in the array, from the value supplied I write this: How do I do this for an enum? Can I use ordinal? Or do i have to make my own method? The method might

spannable on android for textView

I’m setting twitter data in my Android application. I want to make the font bold and italic using Spannable but it does not work, giving an error. How can I do it? Answer I want to make the font bold and ıtalic with spannable for this u will need to make o.content text as SpannableString then set it to …