Setting up android app from PC to phone [duplicate] - android

This question already has answers here:
How to deploy android application to a device?
(5 answers)
Closed 9 years ago.
I have build a app in my pc which I want to test in my phone but I have no idea how to send it to phone as app , please let me know the process I'm new to this.

Connect your device with PC using USB Cable and send your application to the Device. For this you require the driver for your device. You need to search for your suitable driver, install them and then you can use it.

just copy that app to memory card and run it in your phone.
If you develop that app with eclipse you also can run in eclipse over adb connect (google search)

It should be automatic when you connect your device and run the app.
You have to setup your device for USB debugging. It should give you an option once you connect it to the PC. Mount as media device or USB debugging.
Here is a video tutorial. http://youtu.be/AkWdpdO7p-4

Also, if you have a routed device, it's even easier to do with via wi-fi with the app like wifi Adb or similar.

Install ADB Driver of Device in PC.
On USB debugging in Device from settings.
Plug-in your Device.
Run your App.

Turn on USB DEBUGGING on your device.
Connect your phone with desktop/laptop via USB
Run your app, at this moment a dialog will appear and you have to choose connected device, choose device and run.
If it don't show log, then go to DDMS and select your device.

Related

Android app not running on mobile device

I am just beginner for android. And I just create'Hello World' app for initiate in Android Studio. But I am not able to run this on my mobile device. When I connecting this to device, it's connected but showing an error message "No USB device or running emulators detected".
I did everything what I can but no luck.
Sometimes it helps to switch the USB connection to one of the other modes available. (See your notification bar on the left when your phone is connected to your PC.)
You will need to enable developer options on your phone -
On Lollipop 5.1
Go to About Phone
Click 7 times on Build Number. Now Developer options are enabled
Go back and Click Developer options
Enable USB debugging under Debugging.
Android Studio 2.1.1: "no usb devices or running emulators detected"
Have you tried to kill and restart adb server through terminal. Also there might be a case that usb driver are not installed.
You just have to follow few steps:
Install PDA Net on your PC.
http://pdanet.co/
Make sure your USB cable is in properly working condition.
Make sure USB debugging is "ON" on your Android Device.
Now when you will connect your phone with PC, it will automatically install some drivers. Let it install. When PC is done with driver installation, it will show a pop-up on your phone. You have to allow your PC your access your phone through that pop-up on your phone.
Try it, I hope it will work!

Chrome remote debugging, the device is not showing up

I'm trying to debug a Website in Chrome on an Android device. For this I'm following the official remote debugging guide.
Things are working up to 6. Make sure that Discover USB devices is enabled., but then in point 7. Connect your Android device directly to your development machine using a USB cable., the device is not showing up. Also on the device, I do not get the the Allow USB Debugging permission prompt as described in point 8.
The device has USB Debugging enabled, and Windows recognises the device.
I'm able to connect to the device using Android Studio, and then use Chrome remote debugging. But it looks like overkill to install several GigaBytes just to be able to clic ont the Allow USB Debugging permission prompt on the device.
What can I do to launch remote debugging without installing Android Studio ?
If you turn on Developer options on your Android device, you should be able to toggle USB Debugging from there. Download the standalone ADB package or install Android Studio. Run adb server in the command line. Connect it and then the prompt to accept the device's RSA key fingerprint should appear and you should be good to go.
The docs do a better job of showing the step-by-step process https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
P.S. if you'd like to test this multiple times on the same two devices you can click Revoke USB debugging authorizations in the Developer options to revoke all previously connected devices' RSA keys.
For those landing here from Google: my problem was a bad cable shipped with the device (Samsung Galaxy A03). It only charged but did not transfer data. I bought a decent third-party cable and it started working.

How to Connect Samsung Galaxy GT-N8000 with android studio

I have samsung galaxy note 10.1 and model GT-N8000, I want to connect it to android studio and want to run my own made app. But my android studio not showing anything and even pc do not detect it , not even popping up notification to show me that some thing is connected. I check this device to other computers but got same thing.
So what could be a problem. I have done resetting , but nothing is helpful, Updated driver, installed the google driver for usb, installed the universal driver. But nothing is really helping. So at least pc should detect it but its not.
Any solution. ? Please help
Make sure, that you chose Connect as Camera or PTP on your phone.
Go to developer settings and activate Adb-debugging or USB-debugging.
Also check, whether you have installed the correct drivers. Try to reinstall the correct drivers.
And make sure that neither your USB cable nor your USB-drive is faulty. If so try to use another cable and different usb-drive.
You could also try to connect your phone wirelessly to Android Studio
Couple of things you can try -
Go to settings, developer options and turn USB Debugging on. If it's off, Android Studio will not detect your phone.
If you PC is not detecting your device, either your USB cable is faulty or your USB drive. Only way to know is connect your phone to another USB-Drive or connect it using another cable.

i want to use my mobile as an emulator but when i connect my mobile to pc and start the debugging usb im using 4.2.2

i want to use my mobile as an emulator but when i connect my mobile to pc and start the debugging usb and run the app it shows me output no emulator found and when I search the emultr my mobile is not showing in the list
im using android 4.2.2
Enable the USB debugging
Enable USB Tethering
You must have appropriate drivers installed on your System
Step by step how to enable usb debugging on your device:
Firstly, you shoudl enable Developer Options on your mobile phone. How to do that is changes with respect to your phone's model. Check this example link
Then, you should enable Usb Debugging on your device. Check this example link
Last step is downloading google_usb_driver for android as your devices driver from this link
Finally, you are able to use your device as emulator.
Good luck.
connect your mobile to pc.Enable the usb debugging tool in your mobile and install Adb Driver Installer (9.0 MB)
http://adbdriver.com/downloads/

Eclipse show unknown device

I am using HCL ME U1 for testing my android application. But when i am trying to run my app on my device, it show unknown device and failed to install on device.
I follow this question with accepted answer but didn't find any device in device manager.
First time, when i connect device to my computer it show "Device driver successfully installed".
I am using windows 7 32 bit OS.
I didn't find any android device in device manager.
When i use cmd to find out device then it show in list.
I also enable USB Debugging and Unknown source in my hcl tablet.
Please give me some hint or reference.
Thanks in Advance.
Instead of restarting the phone, go to task manager(windows) and kill the adb.exe process. After 10-15 secs, it will restart again by itself. It should detect your device then.
Once I encountered this issue and none of the matters could solve my question except a simple trick. I turned off the phone, ejected the SD card, cleaned it with sth and then put it back into the phone.
After turning on the phone, everything was alright. You have other options too:
Connecting your phone to pc while phone is connected to internet (to update its usb drive)
Updating your ADB driver from device manager (while phone is connected to pc)
Some USB cables don't have debug ability. Be sure of using a proper one.
I recently solved a similar problem in Ubuntu by updating my Android SDK. A year ago, I also remember I had great difficulty getting a different phone to connect to Windows. I remember that, despite receiving the "Device driver successfully installed" message, I had to manually install the usb driver from the SDK Tools Manager.
You might also try "adb devices" to see if your device shows up there. I would expect it to be in the Windows device manager of adb can see it. You mentioned there were no Android devices in Device Manager: check for other unkown devices it might show up as. I believe mine showed up as USB Mass Storage before updating the drivers. An alternate guide to doing so can be found here.

Categories

Resources