Droid doesn't show up as target

by rexowner » Mon, 16 Nov 2009 12:47:19 GMT


Sponsored Links
 I must be missing something really basic here.

I have been successfully running Android applications using the
emulator for several weeks.

Finally, I got a new Motorola Droid to run on an actual device, but
while adb sees the
device, it doesn't show up as a run target under Eclipse.

Summary:

Using Eclipse 3.5.1 on XP, targeting Android 1.6.

Applications run on 1.6 emulator just fine.

Followed all the instructions at: 
 http://developer.android.com/guide/developing/device.html 
- Declared application "debuggable"
- USB Debugging turned on on Phone
- installed USB driver for adb
-> phone shows up when executing adb devices, can open up a shell on
the phone. so all seems fine...

Under Run Configurations: Android Application, all I can see is the
avds as potential
targets.

What do I do differently to target the Droid instead of an avd?

Thanks.

--



Droid doesn't show up as target

by niko20 » Wed, 18 Nov 2009 04:19:47 GMT


 Be sure to get the USB driver from motorola for working with the
Droid, I don't think the one on the URL you mention works with the
Droid. At least it didn't for me. Look for Motorola A855 driver or
something to that effect. (Google it).

Never mind, here you go

 http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM1000008806b00aRCRD 



-niko




--


Sponsored Links


Droid doesn't show up as target

by Lance Nanek » Wed, 18 Nov 2009 12:34:41 GMT


 I connected a Droid to a Windows laptop yesterday. Development wasn't
working until someone pointed out that I needed to update the USB
driver that comes with the SDK if I hadn't already. That was an option
in Eclipse under the window menu and then picking the Android SDK and
AVD Manager option.

I haven't tried the Motorola page mentioned, that might work too.





--



Droid doesn't show up as target

by ryan alford » Wed, 18 Nov 2009 22:54:48 GMT


 Have you restarted your pc yet?  I had the same problem until I restarted.




I must be missing something really basic here.

I have been successfully running Android applications using the
emulator for several weeks.

Finally, I got a new Motorola Droid to run on an actual device, but
while adb sees the
device, it doesn't show up as a run target under Eclipse.

Summary:

Using Eclipse 3.5.1 on XP, targeting Android 1.6.

Applications run on 1.6 emulator just fine.

Followed all the instructions at:
 http://developer.android.com/guide/developing/device.html 
- Declared application "debuggable"
- USB Debugging turned on on Phone
- installed USB driver for adb
-> phone shows up when executing adb devices, can open up a shell on
the phone. so all seems fine...

Under Run Configurations: Android Application, all I can see is the
avds as potential
targets.

What do I do differently to target the Droid instead of an avd?

Thanks.

--



Droid doesn't show up as target

by rexowner » Wed, 18 Nov 2009 22:57:09 GMT


 I solved this myself.  I was not entering a project name when I made a
new configuration
in the "Run Configurations" dialog.  I guess I am so used to Eclipse
doing everything
that I didn't think to put in this basic information.  I was
implicitly assuming Eclipse
would populate this field with the project from which I was opening
the dialog, which
was incorrect.

Haven't seen a lot of answers on this group.  I have tried to answer a
couple of others'
newbie questions, but it doesn't seem like the most information-rich
gorup.




--



Droid doesn't show up as target

by ryan alford » Wed, 18 Nov 2009 23:00:08 GMT


Other Threads

1. openGL ES animation rendering is coming out choppy

Hi All

I am an Android beginner working with openGL ES to try to make some
simple 3d animations. I only have one glDrawElements call per screen
refresh and I have it set to RENDERMODE_CONTINUOUSLY. Unfortunately,
for some reason, my animation is coming out very choppy with a frame
rate of around 2FPS. I am drawing about 20,000 triangles, but I would
think that is not too many considering some of the complex things you
can render. I would be happy to post my code if anyone has any
thoughts on why the animation might be so choppy? Thanks in advance

Avtar

-- 

2. Use MediaPlayer in background and control it after app restarts

Hello everyone,

I have an application with 2 buttons. Click button button_testWav will
play wav audio, and click button button_quit will call method
quit(View view) to exit the application (this is defined in layout XML
file). One interesting thing is after I click button_testWav, audio
starts playing. Then I press key "back" on my Droid X, audio still
plays in background.
I would like to know how to control MediaPlayer again after I launch
the application later, so that I won't have too many copies open?
Thanks!

Below is the test code:
package com.MediaPlayerTest;

import java.io.IOException;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MediaPlayerTest extends Activity
{
    private static final String TAG = "MediaPlayerTest";
    private static MediaPlayer mp;

    private void playMusic(String pathToFile)
    {
        mp.reset();
        try
        {
            mp.setDataSource(pathToFile);
        } catch (IllegalArgumentException e)
        {
            Log.d(TAG, "IllegalArgumentException");
            e.printStackTrace();
        } catch (IllegalStateException e)
        {
            Log.d(TAG, "IllegalStateException in setDataSource");
            e.printStackTrace();
        } catch (IOException e)
        {
            Log.d(TAG, "IOException  in setDataSource");
            e.printStackTrace();
        }
        try
        {
            mp.prepare();
        } catch (IllegalStateException e)
        {
            Log.d(TAG, "IllegalStateException in prepare");
            e.printStackTrace();
        } catch (IOException e)
        {
            Log.d(TAG, "IOException in prepare");
            Toast.makeText(this, "Couldn't open audio file.",
Toast.LENGTH_LONG).show();
            e.printStackTrace();
        }
        mp.start();
    }

    public void quit(View view)
    {
        mp.stop();
        mp.release();
        this.finish();
    }

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        Log.d(TAG, "onCreate");

        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        mp = new MediaPlayer();

        final Button button_testWav = (Button)
findViewById(R.id.button_testWav);
        button_testWav.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View v)
            {
                playMusic("/sdcard/res/test.wav");
            }
        });
    }
}

-- 

3. How to implement the ContentObserver

4. Uri.encode and 2.1+

5. (Closed)WTB : Motorola Milestone 2nd

6. [WTShare] UPnPlay + PS3 Media Server + RockPlayer == AWESOME!!

7. How to declare device as "hdpi" ev en when it's not鈥?脿 la Galaxy Tab