Sunday, January 13, 2013

Android Device Install Location

                                             ANDROID DEBUGGING DEVICE INSTALL LOCATION
If you set up your environment for the android development and if you have a android device and its usb cable, then you are very lucky because you will be 10 times faster then from debuggin on machine. Firstly you shoudl open your eclipse ide and you should plug your usb to your android device then to your computer usb port. If your android device was not detected by the computer automatically, you can solve this problem from automatic driver update and install that you can open devices and printers section for the windows 7 and click to the undefined android device as right then click device installation settings and then you can continue, i encounter one time that was device can not be defined and can not load the driver automatically so i opened the Windows Update section that the automatic update was disabled. And the driver update was there waiting for my command then i downloaded and the device was ready that was defined by the computer.

Lets go with the debugging by machine. If you run the android program from your ide, ide will automatically find your machine even if your emulater was opened. Now you can load your program to your machine to debug in real device.

Sometimes for some devices that has small storage in its own you may encounter this error

Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

This error occurres because ,the storage is not enough. If you open your android programs root file that is AndroidManifest file that is on the root of your project, you can see;

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.istanbuldenizotobusleri"
    android:versionCode="1"
    android:versionName="1.0"
    android:installLocation="preferExternal" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="8" />
The red one in the code solves the problem that we encounter. There are also some options that you can select such as "auto","internalOnly","preferExternal".

!! So If there is not an external storage you will get a error like the above

Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE

As you can see above you can insert your external storage to solve the problem.

2 comments: