Bluetooth profile support in cupcake

by bmannix » Thu, 26 Feb 2009 11:18:29 GMT


Sponsored Links
 The roadmap for cupcake states that it now supports the Bluetooth A2DP
& AVRCP profiles.  Since the Bluetooth API was ripped out of 1.0 does
that mean that these are the only profiles supported?  Or are there
any other profiles currently supported?


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



Bluetooth profile support in cupcake

by Amir » Thu, 12 Mar 2009 10:19:19 GMT


 Have you heard anything about this?




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


Sponsored Links


Bluetooth profile support in cupcake

by Nick Pelly » Fri, 13 Mar 2009 01:26:04 GMT


  http://source.android.com/projects/bluetooth-faq 





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



Other Threads

1. ListActivity SelectedItem

Hi,
I guess it's a newbie question (which i am... :)

I would like to know what list item is selected in different
procedures, and not only when it is being clicked (onListItemClick
method).
for example, during onPrepareOptionsMenu invocation.
How can this be achieved?

Thanks,
Shai

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

2. How to set LIstener on ListView

Hi all,
I want to set Listener on on the listView but the listview is set by
BaseAdapter class .
and i want set listener on each listview .
please help me .
Here is my code
And i want to set Listener on ListView Which is set by adapter.

public class List8 extends ListActivity {

    PhotoAdapter mAdapter;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        // Use a custom layout file
        setContentView(R.layout.list_8);

        // Tell the list view which view to display when the list is
empty
        getListView().setEmptyView(findViewById(R.id.empty));

        // Set up our adapter
        mAdapter = new PhotoAdapter(this);
        setListAdapter(mAdapter);

        // Wire up the clear button to remove all photos
        Button clear = (Button) findViewById(R.id.clear);
        clear.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                mAdapter.clearPhotos();
            } });

        // Wire up the add button to add a new photo
        Button add = (Button) findViewById(R.id.add);
        add.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                mAdapter.addPhotos();
            } });
    }

    /**
     * A simple adapter which maintains an ArrayList of photo resource
Ids.
     * Each photo is displayed as an image. This adapter supports
clearing the
     * list of photos and adding a new photo.
     *
     */
    public class PhotoAdapter extends BaseAdapter {

        private Integer[] mPhotoPool = {
                R.drawable.sample_thumb_0, R.drawable.sample_thumb_1,
R.drawable.sample_thumb_2,
                R.drawable.sample_thumb_3, R.drawable.sample_thumb_4,
R.drawable.sample_thumb_5,
                R.drawable.sample_thumb_6, R.drawable.sample_thumb_7};

        private ArrayList<Integer> mPhotos = new ArrayList<Integer>();

        public PhotoAdapter(Context c) {
            mContext = c;
        }

        public int getCount() {
            return mPhotos.size();
        }

        public Object getItem(int position) {
            return position;
        }

        public long getItemId(int position) {
            return position;
        }

        public View getView(int position, View convertView, ViewGroup
parent) {
            // Make an ImageView to show a photo
            ImageView i = new ImageView(mContext);

            i.setImageResource(mPhotos.get(position));
            i.setAdjustViewBounds(true);
            i.setLayoutParams(new
ViewGroup.LayoutParams(LayoutParams.WRAP_CONTENT,
                    LayoutParams.WRAP_CONTENT));
            // Give it a nice background
            i.setBackground(android.R.drawable.picture_frame);
            return i;
        }

        private Context mContext;

        public void clearPhotos() {
            mPhotos.clear();
            notifyDataSetChanged();
        }

        public void addPhotos() {
            int whichPhoto = (int)Math.round(Math.random() *
(mPhotoPool.length - 1));
            int newPhoto = mPhotoPool[whichPhoto];
            mPhotos.add(newPhoto);
            notifyDataSetChanged();
        }

    }
}
--~--~---------~--~----~------------~-------~--~----~

3. Dialog Box Views Problem

4. TO SET THE HEIGHT OF EDIT IN XML FILE

5. Programatic injection of SMS to emulator?

6. Problem in Sending Sms through telnet

7. AlertDialog Item Icons