Android device VID/PIDs

by kurt » Fri, 23 Apr 2010 08:03:48 GMT


Sponsored Links
 Hi all,
Perhaps this is a misplaced question better suited for some other
forum, but I'm going to take my chances anyhow: Any idea where I can
find a credible and comprehensive list of VID/PIDs for Android
devices?

Any advice is welcome. Thanks!

--



Other Threads

1. how to re-draw the listview ?

Hi all,

here is my question:

1. I created a new ListAdapter and a new layout xml for the list item
as followings:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="64dip"
    >
     <TextView android:id="@+id/line1" android:visibility="visible"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:layout_width="wrap_content"
        android:paddingLeft="4dip"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignWithParentIfMissing="true"
        android:layout_toRightOf="@id/testicon"
        android:ellipsize="marquee"
        android:singleLine="true" />

    <CheckBox android:id="@+id/checkbox1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="4dip"
        android:text=""
        android:layout_alignParentRight="true"
        android:visibility="invisible"/>

 </RelativeLayout>

2. as you may noticed that I set the CheckBox as "invisible" as the
initial state

3. in my list activity, I want to show the CheckBox for all list items
---- it may be triggered by a button click or some other events, so
what I want to do is:  just refresh the list, make the checkbox get
shown.

4. so I changed the visibility in BaseAdapter::getView(int position,
View convertView, ViewGroup parent):
CheckBox itemChkBx = ( CheckBox ) mActivityContext.findViewById
( R.id.checkbox1 );
itemChkBx.setVisibility(View.VISIBLE);

but I have to scroll the list to make the checkbox get shown.
I also tried the getListView().invalidateViews() method, but it
doesn't stable,
so do we have a method to force the list view re-draw everything?

Regards,
James

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

2. using touch screen to draw a straight line

Hi Folks,

Want to draw a line when I touch screen at two points.
I can see OnTouch been invoked but after than everything breaks looks,
the application crashes

I am using drawLine in Canvas.
Please let me know what I am doing wrong

Thanks a ton

----------------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:id="@+id/layout_id"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
</LinearLayout>
--------------




package <>.DrawPoints;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.TextView;

public class DrawPoints extends Activity implements OnTouchListener{
        static int i = 0;
        static float static_x = 0;
        static float static_y = 0;
        static float static_x1 = 0;
        static float static_y1 = 0;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        View topLayout = this.findViewById(R.id.layout_id);
        // register for events for the view, previously
        topLayout.setOnTouchListener((OnTouchListener) this);

}
  // the following callback is called when touch event on screen
happens
        @Override
        public boolean onTouch(View v, MotionEvent event) {
                String tag = null;

                if(i == 0) {
                static_x = event.getX();
                static_y = event.getY();
                i = 1;
                } else
                {
                        static_x1 = event.getX();
                        static_y1 = event.getY();

                }
           // want to draw a line at this stage after figuring out two screen
touches have been performed ??
               if(i == 1) {
               Paint p = new Paint();
               p.setColor(Color.WHITE);
           p.setStyle(Paint.Style.STROKE);
          Canvas canvas = new Canvas();
           canvas.drawColor(Color.BLUE);

           canvas.drawLine(static_x, static_y, static_x1, static_y1,
p);
                i = 0;
        }

               return false;
        }


     }



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

3. " pvplayer.log & Segmentation Fault"

4. Updating TextView Values

5. How to turn on the title back after it is turned off

6. onscreen keypad interactions

7. Usage of SecurityManager in Androids Permission-Syste