Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

check app in phone?

how we can chek our app on phone?

You can connect it via ADB (Android Debug Bridge), if you have linux or Mac in the command line go to your Android folder/ SDK/platform tools plug in your device via usb and then type in: sudo ./adb start-server (this will start an ADB server) and the sudo ./adb devices (this will list the connected devices) if yours apper then in the android studio you can run the app like you normally run it with emulator. It should appear at the running devices. Note that: if you use a phone with KitKat or above when you start the server on the phone a window will open the get permission to connect, click ok, and then it connects.

1 Answer

Your question is far too limited to explain what you are trying to do, or even what you're asking. In the future try to give some information that will help the community better understand your problem, what you've tried so far, and potentially give logs/screen shots of where an error is reported where appropriate. This way we can be informed enough to give an answer.

I'm going to take my best guess that you're not asking how to download an app from Google Play and that you're referring to putting an APK file on your physical mobile device whilst developing in Android Studio.

Theres a few ways, the easiest is to use Android Studio to deploy to your phone instead of the emulator. If your phone doesn't appear in Android Studio, you'll most likely need the correct drivers for it.

If all that fails and you are just after putting the APK on your device, then you can just find the compiled APK and either use the ADB command line tool (adb push ./localfile.apk /path/remotefile.apk) then executing it on the device, or simply put it on your device through a file transfer of some kind (e.g. over USB). In all circumstances you'll need developer tools enabled on your device.

Again, it would have been helpful to hear what your problem is in more than a few words with correct punctuation and spelling; have some respect.

See the documentation: https://developer.android.com/tools/building/building-studio.html