how to run eclipse indigo run sony mobile zr device (C5502) - android

How to run a program on your phone sony zr ،Personal computer with the Eclipse runtime , but knows it 's shown as offline while the phone is placed in debug mode

This is maybe because you did not verified your PC on your phone.
First, unplug you device, open Developer Options, make sure "Android debugging" is turned on. Then select "Revoke USB debugging authorizations" and confirm.
Now plug your device in again, make sure its display is turned on. Now you should get a message that you must authorize your PC to get access on your phone.
That should work now.
You can also enable Wireless Android Debugging. Then you open a terminal/command line in your "sdk/platform-tools" and type "adb connect YOUR_IP" (or ./adb connect YOUR_IP under linux). Replace YOUR_IP with your phones IP which you can find on your phone settings under "About Phone" -> "Status".
In addition to that all: Why do you still work with eclipse? Switch to android studio, that's the new standard!
Good luck and happy coding!

Related

Android USB debugging - computer can not find phone

I was using Android Studio, was debugging on my phone via USB. Now the PC can not find my phone any more. The phone is charging, but the PC can't find it.
I have windows 10. USB debugging is enabled. I tried restarting both the PC and the phone. I tried lots of other things, like USBDeview, PDAnet and so on.
Any ideas what to do or how to find out what's wrong?
Thanks.
Regards,
Serban
In your terminal call "adb kill-server". It should cause a restart of adb.
Just do it that for Xamarin. And did it before for Android Studio.
You need to:
-- Install drivers for your phone and your SO.
-- Install Google USB Drivers (open Android SDK Manager).
-- Connect your phone by USB and wait until your computer recognize it.
When you will try to run or debug your app you can choice the device (virtual or physical) where you can do it.
Note: If you don´t run any app before, maybe you will need to install a few API (by Android SDK Manager), for compiling the app.
This is a hack that worked for me . Once your device is connected to the PC click on the notification in your android device that says
Connected as a media device it will take you to the USB Computer connection screen and select the Connect as option as Camera(PTP).
I hope that it helps.

Cordova: Samsung S3 not recognized via USB on Mac

I have a basic Hello World Cordova application working on an Android emulator (Nexus 4) on my Mac. I wanted to try deploying to a Samsung Galaxy S3 that I have (model SCH-R530M) but when I try running adb devices and empty list is returned.
I have already tried unplugging the device, killing adb using adb kill-server, running adb using adb start-server, and then plugging the device back in and it is still not being recognized.
The only other problem I can find is that my USB cable might be a "charge only" cable, but I don't know how I would go about determining if it is.
Does anyone have a potential fix for this issue?
Is it in developer mode?
Does it allow USB debugging?
https://developer.android.com/tools/device.html
These are the instructions for your device:
https://muffinresearch.co.uk/samsung-galaxy-s3-where-are-the-developer-options/
Go to Settings → More → About Device
Scroll down to Build Number
Tap it repeatedly (It'll show a message telling you how many more times you need to tap it to enable developer mode).
See the Developer options menu under Settings → More
Then make sure 'usb debugging' is selected in the developer options.
I would try a different USB cables too. I had to try a couple before it would register the device.
Kies can also sometimes kickstart it.
http://www.samsung.com/uk/support/usefulsoftware/KIES/

adb can't detect Sony Xperia s although I installed driver

I want to use my Xperia S for debugging, so I followed the OEM USB Drivers instructions step by step but still not work, I didn't find "Android Composite ADB Interface" to update driver as it explained. and when I call adb devices my device didn't appear in the list.
I found out that you must put your phone in Mass Storage mode, as default is MTP mode. As simple as that ##! And I spent hours trying all sorts of things reading posts.
Settings / Xperia / USB Connectivity / USB Connection Mode and select MASS Storage, not MTP. I did uncheck Install PC Companion. It work right away. No need to Update drivers, no need to change the android_winusb.inf. You may need to kill adb.exe before trying again adb devices.
That was it for me :)
A couple of things to check:
Is USB debugging turned on (Settings->Developer options->USB debugging)?
Is it recognised as an ADB device? Check on Device Manager, mine is down as a Sony sa0103 ADB Interface Driver. If not, right click on it and re install drivers.
Were you ever able to connect to your Xperia S with adb? If not, you should try installing Sony PC Companion:
http://www.sonymobile.com/us/tools/pc-companion/
It should automatically detect your device and install the appropriate drivers.
Installing the PC companion fixed it for me too, it changed my drivers (on windows 7 x64). I tried lots of things before, including switch to mass storage (that might have helped also).
I have and Inew v3 phone and flashed a Sony Xperia E2115 Rom.
I'm using Android Studio to learning Android.
I use my phone to running the apps I do. But one day my phone wasn't detected on any pc I tried. With Windows 7, Ubuntu, ...
Looking for an answer, I finally found an answer:
Settings > Apps > All > MTP extension service > Clear data/cache > Force Stop > Restart the phone
The solution was to update the drivers using PC Companion. Before that I tested the following things:
1)I have the system running on Windows 8 and the problem has nothing to do with Mass Storage or MTP mode.
In the Control Panel> Device Manager> Other devices, I found that the
android driver was not found.
I tried the manual installation of drivers which did not work. I
checked the command line tool git bash to check if the android
device was connected using the command adb devices. It did not show any device.
2) After the update of the device software, PC companion showed the device is up to date. I did not completely update the device where PC Companion asked for the upgrade and phone contacts have to be backed up.
3) Now when I checked the Device manager again, it shows the drivers are correctly installed.
4) adb devices in git bash show the device number and name
adb debugging works then
I have A Sony Xperia Tipo. The drivers somehow did not work for me.
Have a look at
http://preetprasannan.wordpress.com/2013/07/13/install-adb-drivers-for-android-if-oem-drivers-not-working-not-present/
Of course you need to enable the USB Debugging in the Developer options in the Settings menu.
Open USB debugging, and May be your usb driver is not correct ,You can use wandoujia to install the driver on your windows, here is the download page: http://www.wandoujia.com/ It can help you find the driver. Have a try
I had the same problem and no matter what i did and how much I've searched the web for a solution, nothing helped! (all this of course on windows 8)
but the thing is..
i tried this procedure on windows 7, connected the device(both Sony Xperia S and Samsung Galaxy Tab 10.1) then in the device manger i updated the driver then the andriod ADB interface appeared.
hope this helps!
I had terrible problems with my Xperia U and dis-ability of my PC (even the PC companion software) to see it. I tried many solutions posted on the web, nothing worked.
Finally I just switched the microUSB cable to another one I had and suddenly it works. I even uninstalled PC companion and other Sony bloatware and it is still working!
So not sure what that original microUSB cable is for (I bought my Xperia U as a second hand stuff, so not sure if in original package there are more micro USB cables), but for me it worked just for charging of the phone, no file transfer.
Go to Settings -> Xperia Connectivity -> Usb Connectivity -> Usb connection mode -> Check MTP mode.
Click Revoke USB debugging authorization in Developer option.
And try sudo adb devices.
I tried loads of things with no joy. Then I did a software update through the PC and it re-installed the drivers. Now it's working again, so try this if all else fails.
For Meizu MX5:
Connect to PC > Pull down notifications menu > Click Touch for other USB options > Choose Built-in CD-ROM > The device opens on windows > Go to F:\USB Reference Manual\EN\ADB_Reference_Manual.txt and follow the instructions.
For windows this is what the file says:
Create or modify the file C:\User\<Your username>\.android\adb_usb.ini. Add a line (with the content "0x2a45") to this file.
It worked for me.
Setting the USB mode isn't good enough. USB debugging must be enabled to allow adb to connect to the phone. This probably states the obvious but for me it took a while reading through these comments and wondering why adb doesn't connect. make sure your developer mode is active on the phone and "Developer Options" -> "USB debugging" is enabled.
Sony Xperia Z3:
Enable Settings > Developer options > USB debugging -> True
Enable Settings > Device Connection > USB Connectivity -> True
Attach Phone, Dialog "USB for transfer appears"
opt: [Select "Mass Storage Mode (MSC)"]
opt: [Click through "Xperia Companion Setup"]
opt: [Software Update]
Reboot Device and PC
Download and unpack http://developer.sonymobile.com/downloads/drivers/xperia-z3-driver/
Select "Mass Storage Mode (MTP)"
Windows > Device Manager > Right Click on Unrecognized Device D6603 > Install new Driver: Selecto location for the unpacked xperia-z3-driver
As nothing worked for me...
Enable Settings > Developer options > USB debugging -> True
Enable Settings > Device Connection > USB Connectivity -> True
Attach Phone, Dialog "USB for transfer appears"
opt: [Select "Mass Storage Mode (MSC)"]
opt: [Click through "Xperia Companion Setup"]
opt: [Software Update] Reboot Device and PC
Maybe also then installed wrong driver.
Here is how to install the correct driver. Well, have to admit, I am new to the Sony World, and I think others might be more into it how many duplicate device types there exist.
Windows:
Now at least I found it on device manager listed under "Other devices" - for my Xperia Tablet Z it was SGP311 of course. Just unplug and plug back in, if you are not sure, which device it is. Go back to the sony drivers page:
https://developer.sonymobile.com/downloads/drivers/
Or google for *Sony driver #MyDeviceId#"
Download and unzip the driver.
Now right click on the device in device manager and select "update drivers". Select drivers from local storage (automatic update was not working for me!)
Now give the folder, you just extracted/unzipped.
Now it worked for me and the device is no longer listed under "other devices". Make sure to authorize your computer for debugging on the sony device.
Just unlock the Sony Xperia and you will have to accept the prompt to pair with the computer.
In my case I just had to change USB ports. For some reason this would only work on a USB 3.0 port.

How to run android app using eclipse

I am using the OS as Windows 7. In which I want to run my Android app through the Eclipse.
so I connect my android device to my laptop through USB connector. In my device shown as " USB connected ", but when I click the run configuration to select the device, the device id never shown/displayed. and I was tried in the CMD prompt mode, by Killing and start ADB server, but it never worked. Could you anyone provide the solution.
First make sure that USB debugging is enabled. To do that go to your phone and find "Developer Options", for me it is Settings->System->Developer Options. If the device doesn't show up in Eclipse after that, make sure the ADB is running, and that it can recognize your device.
If a device doesn't appear in the list when you use a command like "adb list", probably there is some issue with device drivers.
But if you think device drivers are installed .. just try restarting the device..
Enable USB debugging in your phone settings: Apps -> Development -> USB Debugging.

Device not detected in Eclipse when connected with USB cable

I want to run my Android project on a device.
My device is not detected in Eclipse when I connect it with a USB cable.
I restarted Eclipse and I have checked that USB debugging is on, on the device.
Can anybody tell me what the problem is and how to resolve it?
Before starting, Make sure that USB DEBUGGING IS ENABLED in your phone settings !!!
1) BASIC STEP - Plug in device via USB, then go to device page in Android developers blog. There you can find necessary information regarding adding USB vendor ids. Add your device specific ids, and restart eclipse if needed.
2)If you were able to see the device connected(using command: 'adb devices'
) earlier, but not anymore, then just try restarting ADB. (you can use the commands: 'adb kill-server' followed by 'adb start-server'. adb commands need to be executed from platform tools folder in the Android SDK, if you havent exported it).
3)If neither of them works out and you are on windows machine,
then check the installed usb drivers are correct. If not install proper drivers
Please find more information on how to install/update drivers in http://developer.android.com/tools/extras/oem-usb.html
If this also is not working, try installing Universal ADB windows driver https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH
4)You may also try increasing the timeout time
Go to preferences-> android->DDMS in eclipse, then try increasing 'ADB connection timeout(ms)' value
Update based on newer answers:
5)Run > Run Configurations > Target. Please make sure, the option "Always prompt to pick device" is enabled.
Special case: Windows 8 and Nexus 10 (from this question: ADB No Devices Found)
Windows 8 wouldn't recognize my Nexus 10 device. Fixed by Setting the
transfer mode to Camera (PTP) through the settings dialogue on the
device.
Settings > Storage > Menu > USB Computer connection to "Camera (PTP)"
I solve this problem by updating PC portable device drivers:
Go to : Settings -> Applications -> Development to enable USB debugging
Plug in device USB
Desktop "My Computer" right click -> "Manager"
Choose "Device Manager"
Portable Device
right click on your device -> "Update Driver software" -> Search automatically (wait about 3-5min, )
Done
Restarting the adb server, Eclipse, and device did the trick for me.
C:\Android\android-sdk\platform-tools>adb kill-server
C:\Android\android-sdk\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
I had the same problem as mentioned on this question.
I had similar problem, drivers was okey, but Eclipse did show me the device in Run > Run Configurations > Target tab. But I checked the option "Always prompt to pick device". And then running the application from Eclipse the prompt window finally showed my device.
After a long and frustrating search, finally I made my Micromax Funbook p362 to connect with eclipse and made it to suit for development.
*Installed Moborobo (All in one Android smart phone management tool).
*Perform stop -server / start -server using ADB.
*Reboot the device.
*Restart the eclipse.
*Device got detected.(Eclipse - list of adb devices)
In addition to the steps provided by #asfsafgsf (above), make sure to re-enable your phone's developer modes/functions. For my Motorola Atrix:
settings>applications>Unknown Sources: allow 3rd party apps
settings>applications>Development: to enable USB debugging, mock locations, and disable phone sleep
A note on developer modes
USB Debugging is the main mode you will need for running apps through eclipse when your phone is connected via usb (obviously). Disable phone sleep is also handy for self-explanatory reasons.
Allowing 3rd party app sources allows you to beta test your app on a larger-scale. With this, you can host your own apk and instruct your beta-testers to download it (prior to releasing it to the Google Play storefront). More specifically, 3rd party support allows the installation of android package files that don't contain a google approved signature (required for play store hosting). With 3rd party apps enabled, a handset will be able to run packages regardless of their source. You should also be able to receive an APK via bluetooth and install it in this mode.
You can also list all currently connected devices by running the following command:
adb devices
Go to http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver and follow the steps on the android website but on browsing for the USB folder don't use the directory specified -> ((sdk)\extras\google\usb_driver). (sdk) just means your sdk location.
Your phone should have the correct driver and it can be accessed when you plug it in and go to the CD Driver in My Computer, in my case it's G:\drivers\adb_driver. Use this directory instead and it should work. (It may be differ with devices).
One possible reason is to check Android SDK Manager and install Google USB Driver in Extras folder if you have not installed it.
Following the steps here: http://developer.android.com/sdk/oem-usb.html#InstallingDriver allowed Eclipse to display the device.
Do following steps to detect your device in eclipse : -
On Mobile Side:- For Connect USB sync, your Android device needs to have USB Debugging enabled.
To enable Android USB Debugging Mode do following steps :-
Android 2.x - 3.x devices:
Go to Settings > Application > Development > USB Debugging.
Android 4.x devices:
Go to Settings > Developer Options > USB Debugging.
For devices running Android 4.2.2 or later, you may need to unlock Developer Options before it is available within the Menu:
Go to Android home screen.
Pull down the notification bar.
Tap "Settings"
Tap "About Device"
Tap on the "Build Number" button about 7 times.
Developer Mode should now be unlocked and available in Settings >
More > Developer Options or in Settings > Developer Options
On PC side
Connect your device to the PC with USB cable.
Download Google USB Driver
Extract/Unzip “latest_usb_driver_windows.zip” file on your computer
(using 7-zip free software, preferably)
Open device manager on your PC
Windows 7 & 8 users → search for
Device Manager from Start (or Start screen) and click to open.
Windows XP users → Google it
You will see list of all devices attached to your computer in the
device manager. Just find your device (it’ll most probably
be in the Other devices list with a yellow exclamation mark by the
name of ADB devices), then Right-click on it and select Update
Driver Software.
Select “Browse my computer for driver software” in the next window
Now click the “Browse…” button and select the “usb_driver” folder
that we extracted in Step 3 from “latest_usb_driver_windows.zip”
file.
Do NOT select the zip file, select the folder where the
contents of the zip file are extracted. And keep the Include
subfolders box checked
During the installation (as a security check) Windows may ask your
permission to install the drivers, click “Install”
Once the installation is complete you’ll see a refreshed list of
devices on the Device manager screen showing your phone’s driver
installed successfully.
Now in eclipse do following steps to install your app in your device:-
Go to Run > Run Configurations > Target tab.
Check option "Always prompt to pick device". And then running the
application from Eclipse,the prompt window finally showed
your device.
Please check whether your device is shown in the Eclipse device tab in Window > Open Perspective. If its not shown there then you need to install drivers for the the device. Once the device is visible in the Devices tab then change the launch settings for manual target. Once you launch your app then it will allow you to choose from the real device or the virtual devices
If you have the following problem
Then you can so following to fix it
Note : You should enable USB debugging on your android device(It will be in developer option in System settings)
I had this problem. With my galaxy S2. So came here for advice, but couldn't find anything specific. Then I found this 'Kies' software on the Samsung site, under the section for my exact model of phone, under downloads, after clicking software.
It installed the right USB drivers as part of the process of installing Kies and so my phone instantly then became visible on eclipse.
The Kies version for Galaxy S2 (GT I1900) = http://www.samsung.com/uk/support/model/GT-I9100LKAXEU-downloads#
There are other versions of Kies for other android models of course.
(new) device not showing, Check List:
Developer Option ON
USB debugging ON
Try changing to USB Storage/MTP/PTP
if it installs Window driver and fails, there's your problem (verify in Windows Device Manager) fix it.
ok this is an old thread -
but I spent nearly two days and did not get anywhere
Here is what solved my problem
I had USB debugging enabled ( finding developer options itself was a pain - I think the 7 times tap from google is childish and just plain stupid - rant over )
However HTC syn manager , eclipse ADT and windows computer management were all unable to identify my device
My problem was my phone was set to ONLY USB Charge - this was the problem
In 'USB Computer connection' >> Choose the option USB Storage
Once you do this - PC will install drivers and your device will get detected by Eclipse as well as in 'Computer Management' under ''Android USB devices '
Now I still dont know a way to access ''USB Computer connection' but at that time I did get the option to change and t worked
For those ( like me earlier ) who dont know how to identify if 'Computer Management' shows their device look for 'Android USB devices '
If its present - then your device is being detected by your PC
Hope this helps some others
shankar
On a kitkat Google Nexus 7, I tired everything here, and did not succeed. The device did previously connect properly to this computer.
Then I hit settings - developer-options - Revoke USB debugging authorisations
and confirmed that I really did want to revoke them.
I unplugged and plugged the USB. The tablet beeped and asked if wanted to authorise the computer for debugging. I said "Yes" and everything worked again.
For me the problem is with Defective USB Cable. I have tried those above all answers. Nothing gives me any fix. But finally i came to know the problem is because of my usb cable while changing the usb cable. While connecting through the usb cable the phone is charging but the drivers are not installed. Some usb cable don't have the option for that. So while buying check it and buy.
Best approach is install PDA net(software) on both system as well as in android device. This software automatically installs global driver for all phones, provides easy connectivity to android device.
Follow these links to download
For system
http://pdanet.co/
For android device
https://play.google.com/store/apps/details?id=com.pdanet&hl=en
Here is my checklist in windows (not the device itself) when my device is not shown:
Make sure "USB debugging is turned in setting>Developer options.
Check status bar on your device. It tells you if your phone is connected as Media Device (MTP) or Send images (PTP). My device is only listed when PTP is selected.
Turn of windows firewall.
Turn of any proxy programs ran on whole windows ports.
And finally stop adb.exe from windows task manager and wait some seconds to restart automatically.

Categories

Resources