hiiiiii in this code i m used autocomplete text box to display phone no from
contect list and dialed no. this can help you....



phonetext = (AutoCompleteTextView) findViewById(R.id.PhoneText);
ContentResolver content = getContentResolver();
    Cursor cursor = content.query(Calls.CONTENT_URI,
            PROJECTION, Calls.NUMBER+" like ?", new String[] { "%...@%" },
Calls.DEFAULT_SORT_ORDER);

  CallsAdapter adapter = new CallsAdapter(this, cursor);
    phonetext.setAdapter(adapter);
 String phoneno = (String) getIntent().getCharSequenceExtra(
"org.adore.callstring");
phonetext.setText(phoneno);
logotab1 = (ImageView) findViewById(R.id.tab1ImageView);
eventsData = new EventDataSQLHelper(getBaseContext());
logotab1.setImageResource(R.drawable.logso);
SQLiteDatabase db = eventsData.getReadableDatabase();
cursor = db.query(EventDataSQLHelper.TABLE, null, null, null, null,
 null, "_id DESC");
 ContentResolver content = getContentResolver();
 Cursor cursor = content.query(Contacts.People.CONTENT_URI,
 PEOPLE_PROJECTION, null, null, Contacts.People.DEFAULT_SORT_ORDER);
tabactivity4.ContactListAdapter adapter = new
tabactivity4.ContactListAdapter(
 this, cursor);
phonetext.setAdapter(adapter);

With regrads
bhavesh


On Thu, Jun 17, 2010 at 10:14 PM, creativepragmatic <
[email protected]> wrote:

> I am trying to get autoText to work with AutoCompleteTextView. Since
> AutoCompleteTextView is a subclass of EditText, it should work but
> doesn't. Is this possible?
>
> Thanks in advance for any help,
>
> Orville
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
B!-!/-\\/!=$!-!

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

Reply via email to