Android: checking a button is enabled

I am having problems testing my app. I created an espresso test which is supposed to fail, since whenever I launch my app in the emulator, I get the expected behavior. There is my test: onView(…

TextView cannot be cast to EditText

First time posting a question to this site so I might make some mistakes! I’m new to programming and getting the following error when running an application in Android Studio: java.lang….

Why doesn’t Android Studio recognize Base64.encodeBase64?

I’m trying run the following code, however I cannot use encodeBase64(). I’ve already tried to import such libraries using Alt + Enter. How can I make it work?

Android Programmatically open Settings-> Security tab on Button Click

How can I open Android > Settings > Security tab from within my app? In my app, I have one simple button and I want to open the Security tab setting on button click listener event. I have tried …

Android Studio: create Java project with no Android dependencies

It’s possible to add pure Java module to existing Android project. But is it possible to create pure Java project with no Android dependencies?

package does not exist ; in Android studio 0.8

I’ve recently updated the android studio IDE to 0.8 to work with the new android L SDK. To start I imported a finished android project that receives no errors in the older version of android studio. …