ADB stopping at (waiting for devices)

the only reason for this is that your PC is not recognizing Phone.which is a driver problem. You have to understand a few things before starting with the solution. you may know this too. when you are in your recovery adb gets into something like recovery mode(just framing some terms myself) in bootloader, it takes … Read more

Dialog throwing “Unable to add window — token null is not for an application” with getApplication() as context

My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if I use: However, I am leery of using “this” as a context due to the potential for memory leaks when Activity is destroyed and recreated even during something simple like a screen rotation. From a … Read more

How to convert int to Integer

R.drawable.bg1 is an int … but i want to convert into Integer because Hashmap takes an Integer… and when draw the multiple objects in seconds , it creates a Integer Object runtime which affects the performence of the code…

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)