Support for multiple monitors

by OwenMartin » Mon, 18 Jan 2010 04:26:58 GMT

Sponsored Links

I was just wondering if Android had support for multiple monitors,
i.e. a displayport monitor and a standard vga/dvi/hdmi monitor?

Many thanks,


Other Threads

1. IllegalArgumentException: column '_id' does not exist from SimpleCursorAdapter

Hello,  I am using a simple list and I am getting this exception.  I
get the error with the _ID in or out of the projection. when calling
SimpleCursorAdaptor.  The DB seems to be working, at least the insert.
Anyone seen this problem?

 private static final String[] PROJECTION = new String[] {


  protected void onCreate(Bundle icicle) {
        Log.e(TAG, "OnCreate");

        Intent intent = getIntent();
        if (intent.getData() == null) {

        // Inform the list we provide context menus for items


        // Perform a managed query. The Activity will handle closing
and re-querying the cursor
        // when needed.

        //Uri uri = getIntent().getData();
        //Cursor cursor = managedQuery(uri, PROJECTION, null, null,
        Cursor cursor = managedQuery(Meds.CONTENT_URI, PROJECTION,
null, null, null);

        Log.e(TAG, "OnCreate cursor.getCount = " + cursor.getCount());
        /* Used to map meds entries from the database to views
        SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
String[] { MPhrDef.Meds.sPRODUCT }, //from
                                                              new int
[] { });      //to
        Log.e(TAG, "!!OnCreate cursor = " +adapter.convertToString


 public static final String TITLE = "title";
            public static final String _ID = "_ID";
            public static final String sMEDS_FK = "MEDS_FK";
            public static final String sSTATUS="STATUS";
            public static final String sSOURCE = "SOURCE";
            public static final String sPRODUCT = "PRODUCT";
            public static final String sDIRECTIONS = "DIRECTIONS";
            public static final String sFULLFILLHISTORY = "FULLFILLHISTORY";
            public static final String sCREATION_DATE = "CREATION_DATE";
            public static final String sMODIFIED_DATE = "MODIFIED_DATE";

        public String MEDCOLSTR = _ID + " INTEGER PRIMARY KEY,"
             + sMEDS_FK + " INTEGER ,"
             + sSTATUS + " TEXT,"
             + sSOURCE + " TEXT,"
             + sPRODUCT + " TEXT,"
             + sDIRECTIONS + " TEXT,"
             + sFULLFILLHISTORY+ " TEXT,"
             + sCREATION_DATE + " TEXT,"
             + sMODIFIED_DATE + " TEXT";


   public Uri insert(Uri uri, ContentValues initialValues) {
        Log.e(TAG, "insert ContentValues = " +initialValues);
        // Validate the requested uri
        if (sUriMatcher.match(uri) != MEDS) {
            throw new IllegalArgumentException("Unknown URI " + uri);

        //setup to insert a row into db
        ContentValues values;
        if (initialValues != null) {
            values = new ContentValues(initialValues);
        } else {
            values = new ContentValues();

        Long now = Long.valueOf(System.currentTimeMillis());

        // Make sure that the fields are all set.  IF not set them

        if (values.containsKey(Meds.sMODIFIED_DATE) == false) {
            values.put(Meds.sMODIFIED_DATE, now);

        if (values.containsKey(Meds.sSOURCE) == false) {
            values.put(Meds.sSOURCE, now);

        if (values.containsKey(Meds.sCREATION_DATE) == false) {
            values.put(Meds.sSOURCE, now);
        Log.e(TAG, "_ID = " + values.getAsInteger(Meds._ID));
        SQLiteDatabase db;
        if(mOpenHelper != null){
           db = mOpenHelper.getWritableDatabase();
                Log.e(TAG, "ERROR:insert mOpenHelper = NULL");
                return null;
        //insert the entire row into DB
        long rowId = db.insert(MEDS_TABLE_NAME, Meds.MED, values);


2. Clickable Linear Layout

Hi, I've got a Linear Layout that I'm trying to make clickable... I've
got the click functionality working just fine, but I was hoping for
the background color to change when it has focus (like an item in a
ListView). Can anyone help me do this? Below is the xml of the

<LinearLayout android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_width="fill_parent"
android:clickable="true" android:focusable="true"
android:paddingBottom="5dip" android:paddingTop="5dip" android:id="@
+id/ll_ge_stars" android:focusableInTouchMode="true">
              <TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Star Rating:"
android:textSize="25dip" android:layout_gravity="center_vertical"></
              <LinearLayout android:layout_height="wrap_content"
android:orientation="horizontal" android:gravity="right"
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star1"></ImageView>
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star2"></ImageView>
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star3"></ImageView>
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star4"></ImageView>
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star5"></ImageView>


3. USB Driver

4. Android applications - commercial

5. Can I use my PC's serial port to communicate with my bluetooth reference board

6. facebook mobile does not display (raw code displayed)

7. how long from publish to visibility in market on my phone?