Support for multiple monitors

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


Sponsored Links
 Hi,

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,

Owen



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?
thanks

 private static final String[] PROJECTION = new String[] {
        Meds._ID,
        //Meds.sSOURCE,
        Meds.sPRODUCT,
        //Meds.sDIRECTIONS,
        //Meds.sFULLFILLHISTORY,

    };

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

        Intent intent = getIntent();
        if (intent.getData() == null) {
            intent.setData(Meds.CONTENT_URI);
        }

        // Inform the list we provide context menus for items
        getListView().setOnCreateContextMenuListener(this);

        setContentView(R.layout.medlist);

        // 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,
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,
 
R.layout.mphrlist_item,
                                                                      cursor,
                                                              new
String[] { MPhrDef.Meds.sPRODUCT }, //from
                                                              new int
[] { android.R.id.text1 });      //to
        Log.e(TAG, "!!OnCreate cursor = " +adapter.convertToString
(cursor));


        setListAdapter(adapter);

    }//onCreate
--
 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";

------
ContentProvider

   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();
        }else{
                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...

<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"></
TextView>
              <LinearLayout android:layout_height="wrap_content"
android:orientation="horizontal" android:gravity="right"
android:layout_width="fill_parent">
                            <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star1"></ImageView>
                            <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star2"></ImageView>
                            <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star3"></ImageView>
                            <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star4"></ImageView>
                            <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/
rate_star_big_off" android:id="@+id/iv_ge_star5"></ImageView>
              </LinearLayout>
</LinearLayout>

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

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?