How to check output on mobile instead of Emulator - android

How to connect mobile device to eclipse to use it as a emulator.
http://developer.android.com/guide/developing/device.html i refer this link but not able to connect
please suggest any other setting remains

I have connected my htc device instead of emulator to run my application.
I did the following steps
1.download htc sync software
2.install it to the system.
3.when connected,it shows one dialog then choose htc sync.
3.finally ,choose run as configuration and change automatic to manual.

Some devices dont even require htc sync. For eg the old G1 does not require htc sync. But I guess newer phones would require it.

First check whether your USB cable can be detected in your system. If detected then install proper driver as mentioned in the following link. http://developer.android.com/guide/developing/device.html. If you are using Mac machine then no need of installing driver. connect the device right click the project , run-as select the target device. make sure that target device of your project shoul be same or lower than that of the actual device. u will get the name of the device. select the device. and you application will run directly in mobile.
Thanks
Deepak

Related

How to create app for nokia phones running android like for Nokia XL etc

I have created an android app. When I connect my Nokia XL (having android OS) with USB debugging enabled, my eclipse can't detect it, and runs the app on the emulator whereas I want it to be running on my cell phone. On the other hand, it works perfectly when any other android cell phone is connected.
Any help will be life saving for me. Thanks!
In windows you have to install the driver first. Please see here for more details.
Follow this steps, If your operating system is Windows.
Download ADB Driver Installer from adbdriver.com/downloads/ and unzip the package. Make sure you have enabled the developer options and USB debugging in your mobile, and connect to computer. Then, run ADBDriverInstaller.exe from the extracted folder. Select the device and click on Install. It worked perfectly for me. My device was then recognized. Hope it helps others with same problem.

Eclipse android device chooser doesn't show my phone

I'm using the android plugin for eclipse and when i try to run my program using adb but my device is not listed.
I check usb debugging mode. I clean cache, but not solved.
(usign windows 8/My phones Htc one x (4.1.1) and samsung s3 (4.1.1).)
I installed HTC Sync Manager then it works.
Maybe you need to enable the developpement USB debugging
On your phone, go to Settings->app settings->developing->enable first option
Using the command line, type adb devices in your SDK_FOLDER/platform-tools folder.
If your device is detected, then run eclipse as admin.
If your device is not detected, then try update the drivers (found in SDK_FOLDER/extras/google/usb_driver)
Did you download the USB driver for your device?
Specifically for Samsung S III.
If you want to run your application over an android device like HTC then first of all you have to download and then install HTC synchronization Manager form here HTC Synchronization Manager.
After that follow the below pictures steps.

Phone can't connect to Eclipse on debug mode

I have tried connecting the USB debugger on Samsung Galaxy S2 and Samsung Galaxy Nexus. It still manages to fail on both devices. At the moment I am using Windows XP and I am running out of ideas.
Here is what I tried:
Installed SAMSUNG_USB_DRIVER_FOR_MOBILE_PHONES_1.4.8.0.exe
Searched and tried to install the drivers on Google drives.
Has anyone have this similar problem and could share a solution?
EDIT* Both devices Samsung Galaxy S2 and Samsung Galaxy Nexus are able to connect to the PC but not to the debugger. Drivers installed with different variances even done installing Samsung Kias.
I am adding a bounty tomorrow for 50 reps. I really need to test what I am doing on an actual phone.
You need to download Samsung Kies I know that the software description doesn't mention that it is the correct drivers for developers, but it in fact is.
An old issue used to be:
Use the USB2.0 ports on the back of the PC not the 1.0 front facing port.
I feel you have not installed sdk properly. Reinstall the http://dl.google.com/android/installer_r18-windows.exe, the open the adb and update all the things for the particular sdk you want.
Then verify that you have given the exact location of sdk in eclipse>window>preferences>android
Then restart eclipse.
Even you cant open it then set environment variables. For that add following ;E:\android-sdk-window\platform-tools; in PATH. Then restart windows.
After that try adb devices, adb kill-server command in Command prompt.
You will be able to see your device.
Is there any "ADB interface" devices in your PC's Devices Manager?
If you are using DDMS,Maybe there is a console(cmd.exe) window behind DDMS,you can get some log there.
Did you enable the debug mode on your device? This is not listed in the steps you followed.
Go to Settings -> Applications -> Development -> and set USB debugging.
You can use PdaNet software to connect your device for debugging. I was have the same issue and resolve with using this software. Use the following link to download this software:
http://junefabrics.com/android/download.php
I also have samsung Galaxy SII and i face the Same Problem before some days. But now i am able to get debug the app in My SII.
Please follow the steps and make sure that you follow it completely then only you cna able to get debug in your phone.
First select the Option to Install App from Unknown Sources.
You will find that option in Setting -> Applicatios -> Unknown sources. Select it as yes.
then Select the Option like USB Debugging.
You will find that option in Setting -> Development -> USB debugging. Select it as yes.
Now, Install latest Samsung Kias In your PC. Reboot Your PC, Eclipse and may be Phone also
Now, Try with connecting the Device.
Hope you will get debugging your app in to your phone.
If not then let me know which trouble you get.
Enjoy. :)
My phone has this:
Settings -> SD card & phone storage -> Mass storage only (USB connection mode is mass storage only)
Make sure that this option is NOT checked. If it is u can enable USB debugging and unknown sources and it still wont work.
If you just need to connect to the device for install and debugging you can manually select the driver to use when you plug it in.
Don't let windows search for it, choose I will pick the driver from a list, then select android composite ADB interface. It may warn you that this driver doesn't match, but it works!
I also had many problems to get samsumg galaxy S2 work on my pc. If I remember correctly finally I ended up installing Samsung Kias and installed some drivers through there. Then restarted the computer and never launched kias from then on. My phone is still not visible form command line adb devices, but now I can develop in Eclipse and deploy on the device without any problems.
From time to time I lose connection to the device (E.g. if another device was plugged in). Then I need to restart Eclipse and my device becomes visible again.
Some friends of mine also shared that some other mobile device usb drivers were conflicting with the samsung drivers (it was ZTE if I am not wrong). They uninstalled the ZTE drivers and then got the Samsuung running ok too. Try consider uninstalling all other usb drivers before you try the Galaxy S2.
Have you installed exactly the right SDK version for the phone you're using?
Given that you can access the phone on the PC via KIES, I assume that you have all the correct USB drivers installed.
Ensure that debugging is enabled on your phone. This can be done from the Settings preferences.
Install the Android SDK. Add %ANDROID SDK_INSTALL_PATH%/platform-tools to your path.
If everything is working up to this point, plug in your phone and execute the following from the command line.
adb devices
and you should see your device listed.
Install the Android Developer Tools plugin in Eclipse.
Create/Import your project.
Right click your project and from the context menu, select Debug As --> Android Application
I have had exactly the same problem as you, I even gave up on developing for 2 months because of this. I have just started again and really needed to get this working.
I tried all of the above and pretty much every combination of the above and still failed.
I have just got it working by not doing anything different apart from when I uninstall the old USB driver (add remove progs), the next time I installed AGAIN, I used the SAMSUNG USB Driver for Mobile Phones V1.3.450.0 (an older version than ones suggested on other help forums, I just got it by accident somewhere and thought I'd try it). The next time I plugged the phone in, it did all the usual finding CDC etc. that it always did when it failed...but then.... it asked for the ADB Driver, WOW! I got excited. I just selected Install Automatically and away it went.
I still already had the PDANet thing running and that popped up saying a connection is available. I've not used it though because it wouldn't install on my phone anyway.
FYI, I have these settings on the phone:
USB debugging ON (obviously)
Allow Mock Locations OFF
Unknown Sources ON
I hope this helps.
Dan.
This may not help at all since you have probably tried it already but I had huge issues on two different windows 7 machines getting my s2 to connect for debugging.
I ended up getting one working by plugging in the s2 USB connection, un-installing the drivers for it in the device manager, unplugging the USB connection, un-installing Kies, downloading the most up to date version of Kies, installing that and plugging it back in.
The other one was even more painful, it was a while ago now but I did the same as the above but removed eclipse and the Android SDK as well, installed the latest version of Kies first, the eclipse, then the sdk and made sure all of that was done before I plugged the phone in.
I faced same issue which you faced..
I solved this by this way.
1) Right click on my computer and select Manage
2) Then select Device manager..
3) connect your phone (galaxy s2 in my case)
4) I found one device with named "unknown" in sub option I foung my phone name i9100
5) Then right click on that and select update driver software
6) you will see then this..
Tadaa....Done :)
Hope this will help you also..

why eclipse can not detect android device?

Eclipse can't detect my android device but it can run with the emulator. i have no problem with the android device setting since it work well in my old laptop.
any idea?
When you start the Device sometimes adb doesn't recognize it because it has already started. So, in that case you just need to reset adb from DDMS->Devices
Go to android-sdk/platform-tools/ via command promt...
write command.. adb devices (It will show the list of attached devices)
If its not display device number then look at the drivers of device on your system. And if display then just restart eclipse..
Check that the android:minSdkVersion is lower or equal to the Version running on the phone. If it is higher it wont show on "Android Device Chooser"
Also, after installing the usb drivers you may need to set your Android device to developer mode and enable USB debugging on your device before it will be seen by adb or eclipse. From http://developer.android.com/tools/device.html
2.Enable USB debugging on your device. ◦On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
In my case, i ran adb-devices and it did show my device and it was unauthorized on the PC I was using.
I went to developer tools and disabled and then enabled USB debugging. It then prompted me for authorization for that computer, and then it worked fine.
Hope this helps someone.
Try connecting using the command prompt ./adb connect 192.168.xxx.xxx:5555
If you are running Linux you will have to add your device to the /etc/udev/rules.d/51-android.rules file.
Have a look here: http://developer.android.com/tools/device.html . Its a document on using hardware devices.
haven't you enable 'debug mode' in your Android device?
If not, then please enable it first. Then follow the steps in this article.
This example use Lenovo P770 as a device.
http://www.mywordismyopinion.com/2014/02/experience-using-smartphone-lenovo-p770.html
-hope this is helpful, :).
just install any driver are any compatibility software provided by your device provider like Samsung provide kies,Htc provide Sync etc..
Either check check your sysytem or antivirus not block it.

Android: no running Device

I want to run my Android Project iwrote with emulators on my Android Device. The Device is Connected on an USB-Port. When I start the "Android Device Chooser" nothing happens. No running device in the "Choose a running Android Device"-Table is displayed.
I tried to reboot the system(PC and Smartphone) while connecting. I tried every USB mode. I tried another Device( G1 and HTC Desire). Unknown Source is always true.
I tried another Eclipse-Version(64 and 32 bit), tried another SDK(64 and 32 bit) and reinstalled the android sdk.
I still can't see any device. Everything worked fine on my old 32 bit system. Now i have to work with my 64 bit lenovo. (both windows 7)
somebody got another idea?
Thank you.
Fabian
See this link for detailed info: http://developer.android.com/guide/developing/device.html#setting-up
In short, you have to:
Mark your app as debuggable (in Manifest)
Allow USB debug on your device (Settings->Application)
And, if developing in Windows, download drivers.
Try command line "adb devices" to see if your phone is detected ok. Except limited number of phones supported by Android by default, manufacturer-supplied setup needs to be used to start usb mode. In my case, Vodafone 845, setup was contained in phone storage. So after phone was detected as normal usb storage, I located that utility and simply ran it. Then it started to be detected as android phone.
The easiest way to this dilema i found here. If you are on windows,
Make sure you have install the google usb driver
Ensure USB Debugging is enabled.
download the adbdriver setup from http://adbdriver.com/downloads/
just follow the wizard and install, automatically it should see your device or you try restarting android studio.
Enable USB Debugging :
Setting - About Phone - Tap Build Number 5 times.
Then go to : Setting - Developer Options - Turn On Usb Debugging.
Download and install Wondershare Mobile Go / Snappea. That program will download and install your android device.
If this popup appears, click allow.

Categories

Resources