adb version

by kwty » Sun, 12 Apr 2009 04:57:38 GMT


Sponsored Links
 hi
i am using sdk 1.1 - mac os but i have a source code compatible only
with sdk m5-rc15 and when i want to install it on the eclipse there is
a msg said (Required minimum version of adb: 1.0.20.Current version is
1.0.18) so what i have to do???

thanks
--~--~---------~--~----~------------~-------~--~----~



adb version

by Ralf » Sun, 12 Apr 2009 10:14:58 GMT


 It means you have adb from the sdk 1.1 running in the background --
adb is also a background process. You need to kill the existing adb
before switching to the m5 one by doing one of the following:
- either reboot your mac
- run "adb kill-server" from a terminal
- eclipse > ddms perspective > devices view > menu > reset adb.

Or you could just adapt your source to the sdk 1.1

R/




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Is this a bug in TextView?

Geez, I know it's hard to believe, but stuff like this sticks out like
a thumb to me as a Copy & Paste error. From the source I've been
looking at for TextView (please correct me if I'm in the wrong place)
at:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/TextView.java;h=f55ca3fecfd93a3d95c1022bbe0694cf85b41919;hb=HEAD

This is in the setCompoundDrawables() function, after we've determined
that we indeed have a Drawable to set:

1371             if (dr == null) {
1371                 mDrawables = dr = new Drawables();
1372             }
1373

---------This is okay

1374             if (dr.mDrawableLeft != left && dr.mDrawableLeft !=
null) {
1375                 dr.mDrawableLeft.setCallback(null);
1376             }
1377             dr.mDrawableLeft = left;

---------But, look at the comparison here. I think it should be
if(dr.mDrawableTop != top && so on

1378             if (dr.mDrawableTop != left && dr.mDrawableTop !=
null) {
1379                 dr.mDrawableTop.setCallback(null);
1380             }
1381             dr.mDrawableTop = top;

--------- Same thing here: it should be if(dr.mDrawableRight != right
&& so on


1382             if (dr.mDrawableRight != left && dr.mDrawableRight !=
null) {
1383                 dr.mDrawableRight.setCallback(null);
1384             }
1385             dr.mDrawableRight = right;

------- Same here: the left should be bottom

1386             if (dr.mDrawableBottom != left && dr.mDrawableBottom !
= null) {
1387                 dr.mDrawableBottom.setCallback(null);
1388             }
1389             dr.mDrawableBottom = bottom;

Please let me know if I'm off base here, like out in the weeds on some
dead code branch. That would be very helpful to me.


-- 

2. Need help with PaintDrawable and TextView setCompoundDrawables()

This is related to my last post on a possible bug in TextView, but I
don't think that's my problem. I was reading the TextView source code
to try to get a handle on this bug I'm seeing.

I'm using a PaintDrawable that I get by defining it as described in
this article:

http://developer.android.com/intl/de/guide/topics/resources/available-resources.html

here's my definition file res/values/colors.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
        <color name="red_text_background">#FF0000</color>
        <color name="orange_text_background">#FFA000</color>
        <color name="normal_text_background">#FFFFFF</color>
        <drawable name="red_drawable">@color/red_text_background</drawable>
        <drawable name="orange_drawable">@color/orange_text_background</
drawable>
        <drawable name="normal_drawable">@color/normal_text_background</
drawable>
</resources>

I'm transitioning to the drawables from setting background colors.
That's why things are duplicated.

Here's how I'm trying to set a TextView to have some kind of drawable
that is separate from the text:

        private void setTextView(TextView tv, int val, int rlimit, int
ylimit) {
                final float scale = 
this.getResources().getDisplayMetrics().density;
                tv.setText(String.valueOf(val));
                int r;
                Drawable t;
                if(val > rlimit) {
                        r = R.drawable.red_drawable;
                        t = mRedDrawable;
                } else if (val > ylimit) {
                        r = R.drawable.orange_drawable;
                        t = mOrangeDrawable;
                } else {
                        r = R.drawable.normal_drawable;
                        t = mNormalDrawable;
                }
                t.setBounds(0, 0, (int)((HUH * scale) + 0.5f), (int)((HUH * 
scale) +
0.5f));
                // t.setBounds(0, 0, tv.getWidth(), (int)((DPADDING * scale) +
0.5f));
                // t.setBounds(0, 0, 1, tv.getHeight());

                Log.d(TAG, String.format("Intrisic height = %1$d, width = %2$d",
t.getIntrinsicHeight(), t.getIntrinsicWidth()));
                tv.setCompoundDrawablePadding((int)(DPADDING * scale + 0.5f));
                // tv.setCompoundDrawablesWithIntrinsicBounds(0, r, 0, 0);
                // tv.setCompoundDrawables(null, t, null, null);
                tv.setCompoundDrawablesWithIntrinsicBounds(null, t, null, null);
        }

No matter what I set the bounds to, or how I set the drawables (you
can see the different attempts in the commented out sections), I don't
see what I expect.

What I see is just as if I called setBackgroundDrawable() on the
TextView, plus added pixels of the same color, either on the top,
right, left or bottom.

Can someone explain what is wrong?

Thanks.

-- 

3. Can I get sued for using Android Caller ID?? -Please answer

4. Can I get sued for using Android Caller ID?? -Please answer

5. Developing Custom Manager

6. Unable to start service Intent

7. How can i launch another another android application from the current Application?