How can I install an Eclipse Android project onto deviceanywhere to test on different devices?
Thanks
Chris
You have to upload your apk to a webserver somewhere, then browse to it from the device anywhere device, download the apk, and install it. Make sure the device has "install from unknown sources" allowed in the settings.
Have a look on virtual usb. According to DeviceAnywhere blog you can do that.
And re AT&T - even without unknown sources option you can still install application using usb debugging mode.
Related
I am doing some applications using Android + Eclipse to run on tablets. I have had too much trouble with the tablet emulator, so I would like to try my code (apps) on a real tablet. How can I do this? I have a Samsung Galaxy Tab 3. Do I need to install the adt-bundle on it?
I'd appreciate any input.
http://developer.android.com/tools/device.html
You just need a usb cable to connect your device to your pc.Go to the above link for more info
check this it may help you Run on a Real Device
Here is a copy paste, but check the link it's really good and well explained :
If you have a real Android-powered device, here's how you can install and run your app:
1-Plug in your device to your development machine with a USB cable. If you're developing on Windows, you might need to install the appropriate USB driver for your device. For help installing drivers, see the OEM USB Drivers document.
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.
To run the app from Eclipse:
1-Open one of your project's files and click Run from the toolbar.
2-In the Run as window that appears, select Android Application and click OK.
Eclipse installs the app on your connected device and starts it.
Or to run your app from a command line:
1-Change directories to the root of your Android project and execute:
ant debug
2- Make sure the Android SDK platform-tools/ directory is included in your PATH environment variable, then execute:
adb install bin/MyFirstApp-debug.apk
3-On your device, locate MyFirstActivity and open it.
I recently bought a tablet from a company, in order to test my Unity3d games in a real android device. The problem is, the company did not provide the android USB windows drive to be installed and if Im not wrong it is necessary to make the debugging process work (please correct me if Im wrong). After some calls and emails for the technical support of this company, they provided me with files, which they are saying it`s what I need.
I have no idea of what to do with these files. Actually I`m thinking they are being dishonest with me and just gave me some random files. So if someone here could just check these files and see if they are actually drive files, or something else.
Just to be clear, I trying to get this drive because, when plug my tablet in my computer (with debugging mode enabled), and check in the Devices and Printers, I see a device called android, with no drive installation and information. Unity3d also can`t find any eligible android devices plugged on my computer.
I also already tried to install manually this “drive” they gave me using the UpdateDrive option, search for a drive in a computer folder.
If these are real drive files, could someone explain me how to install it on my windows 8?
Here is the link :
https://www.dropbox.com/sh/rqwzahpswk91lc9/WV5gvcPawx
Thanks.
Try to open the SDK manager and select "Google USB Driver" to install.
I run at the same problem with a prototype device, the company give the drivers to me and even I can install it, the SDK don't recignize the device in debug mode.
http://developer.android.com/sdk/win-usb.html
EDIT:
Even the Google says that the "Google USB Drivers" is for Nexus devices, it solved my problem with a Honeywell device.
EDIT2:
Can you post the file extensions if this doesn't work?
There is a .inf file?
If yes, you can install it just opening the 'Device Manager' in System properties (Win + Pause/Break) -> Select the usb device, double click on it -> Select update the driver -> select to install from disk -> select the .inf file.
If you can plug into a Linux then do lsusb in a linux terminal. Take that code and search the Internet. Might be the tablet you bought uses a common chipset and you can install the android driver from another vendor. You need the drivers based on the manufacturer. E.g. to debug with Android for samsung then install their Kies, for Motorola then their android drivers. Note, "Android drivers" is in addition to the regular usb driver than lets the phone show up as a disk drive.
Can I write an app in a .apk file and install it on my device by just transferring it and then open it on my phone? Can I avoid the frustrating complexity of Eclipse and ADT?
Background:
I decided today I wanted to learn developing Android apps. I downloaded the ADT bundle and then spent half the day trying to connect my device so I could run a premade Hello World app on it. After much failure I am frustrated and just want to start writing code.
This is something I have tried to avoid whenever I develop an Android app. The easiest way to do so is just to email it to yourself or to put it up on a website using an FTP client. From there, you can just download the
apk
and then install it. You do, however, have to turn on "Installation from unknown sources" so that you can download apps from places other than the Google Play store.
If you email the .apk to yourself and enable Install from unknown sources then you should just be able to tap on it as an attachment in the email, install it and run it.
Similarly, you could install a file manager app, transfer the .apk and open it from there.
Personally, I find IDEs can be a very resource hungry, slow and unnecessary when I'd much rather use Sublime Text for editing and gradle and adb on the command line to build, install and debug apps - which is infact what I do, so you may want to give it a go.
It sounds like you might just be having issues connecting a device. You can and should first get that working outside of Eclipse. You don't mention which host OS you're using, but you'll need to do the following. If you get stuck on any step, just ask.
Install the Android SDK.
Add the tools to your path.
If on Windows, install the USB driver for your device.
Connect your device with a USB cable.
Enable USB debugging on your device.
Open a command or terminal window.
Run adb start-server; adb devices.
Verify that your device is listed.
If your device is listed, then you've successfully connected your device and can use ADB commands to directly install APKs via USB.
As an alternative to Eclipse/ADT, you can try the new(ish) Android Studio, which is built on IntelliJ Idea.
There's no getting around the Android SDK and all of its tooling if you want to develop an Android app, but Android Studio can potentially do a better job of hiding those things from you.
#Tom Leese's answer is the way to go to install an APK on your phone, but you can't really avoid the tools in the long run. Eventually you'll have to debug, which will require you to get ADB working.
Try develop with AIDE.
AIDE is an integrated development environment (IDE) for developing real Android apps directly on your Android device
If I write an application using the Android SDK or NDK, can I simply copy the APK produced onto any Android phone (with the right version of the OS running) and run it? Or do I need to root the phone before apps not bought through a marketplace can run?
The context is that I have the choice of a Galaxy S2 as an upgrade to my iPhone4 and I'd like to start writing my own stuff. I can find plenty of instructions and examples of compiling and running apps in the emulator, but nowhere explicitly states I can run the apps I compile on the S2. I'm worried that apps may need to be signed or authenticated before they can run on it (and other phones) and I'd rather not mess about with the phone too much.
You can download it and run it without root.
You can debug directly on a device even from your development environment.
Android development tools environment (ADT) in eclipse (as well as others) and the correct ADB USB drivers for your phone gives you that nice option. Much faster than using the android emulator too.
In settings you have to allow debug (a simple checkbox), that is all.
No you don't need to root. Just install drivers and SDK. Using eclipse you can directly run on device and debug too
it's also faster than working on emulator
If you get Galaxy S2, then you can install Samsung's own free app, "Kies Air". This allows you to transfer files over wifi from your PC to anywhere that you can see in the phone's file explorer. If you transfer an apk this way, then when you click on it in the phone's file explorer, it will install the app. The app can be signed with a debug key, or a release key.
You don't need root. In order to instal on android phones you simply install the app on the phone through eclipse ADT tool or just through the ADT terminal. Just remember to set the phone to development mode by going into settings -> programs, then allow installing from unknown sources.
Alternatively if you want to install the *.apk on you device download an app from market. Follow this link for guides on both this approach and the SDK/debug approach: http://www.talkandroid.com/guides/beginner/install-apk-files-on-android/
I have made a program on eclipse. But how can I get the program from eclipse to my phone? I have a cable because it probably wont make a QR code like appinventor does huh. How do i install my app on there?
You need to set up your machine and phone for running and debugging from eclipse. It involves getting the phone's usb driver on your machine, and setting up the phone for usb debugging.
Read this Using Hardware Devices | Android Developer Guide
You can simply export the apk file and copy it to your phone. Email it to yourself, bluetooth transfer, upload to a server then download on your phone.... come on.
You just have to allow the device to accept nonsigned apps and USB debugging (change this in your device's app configuration). Then, if you have the drivers (you can install them within your AVD), you can just run the app from Eclipse in your phone.
In Windows you will need drivers to install for the particular device that you have. And if you are on Linux, there is a rules.txt file in which you have to make entries with the device UID. Check this link.