Hello,
Spinner spIdentification1=(Spinner) findViewById(R.id.spinner1);
Cursor cursorIdentification= *this*.dbH1.getReadableDatabase().query(
"MasterIdentifierType",*new* String[] { "IdentifierTypeUid _id",
"ExternalID","ObjectName", "Description", "ListOrder","CreatedDate",
"CreatedByUid", "ModifiedDate","ModifiedByUid" }, //define cursor data
*null*, *null*, *null*, *null*, *null*);
SimpleCursorAdapter adpIdenti== *new* SimpleCursorAdapter(*context*
,android.R.layout.*simple_spinner_item*, cursorIdentification, *new*String[] {
"Description" }, *new* *int*[] { android.R.id.*text1* }); //creating
adapter
adpIdenti.setDropDownViewResource(android.R.layout.*
simple_spinner_dropdown_item*);
spIdentification1.setAdapter(adpIdenti);
i want to add one extra element into simplecursoradapter as blank or
"select .." but i am not able to add it
i want fist element null or blank or "select ...":
Thanks in adavance.
Regards,
Pranita Patil
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en