How to control the LED lighter

by Freetec Shen » Tue, 06 Oct 2009 01:18:25 GMT


Sponsored Links
 Hi, Does anybody know how to control the LED light using the SDK 1.5
R1 ? Is there any available API or function to control the color,
flash rate of the LED lighter near the earphone, as well as the
lighter at the track ball? Or how to implement this?

Thanks in advance!
Xiaoming



-- 
Freetec
 http://xiaonei.com/freetec 

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



Other Threads

1. Zeroconf AP

Hi Group,

I am surprised to see that the Android doesn't yet have a zeroconf
stack as part of its API. Zeroconf allows you to find services (eg Web
Servers, Instant Messaging peers, SIP) on a given network with minimal
effort, something a mobile device going to new places I would envisage
doing alot.

Obvious starting points could be Avahi (as found in most major linux
distributions and jmdns). Apple also have the open source
mDNSResponder. (zeroconf is found on the iPhone under the name
Bonjour).

For more information see: http://www.zeroconf.org.

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

2. How can I call methods in Activity from an event listener of a custom Adapter?

Hi everyone,

I have created a ListView and a custom Adapter with ImageButton widget
in each row. I set the ImageButton OnClick Listener in getView method
to trigger each ImageButton's OnClick event of each ListView row.
Everything goes well, but I have no idea how to call Activity methods
from ImageButtons' OnClickListener handler.

I initial my ListView as following code

in MyActivity class:

protected void onCreate(Bundle savedInstanceState) {
          MyListAdapter myListAdapter = new MyListAdapter
( MyActivity.this,
                                R.layout.list_row,
                                myList );
          myListView.setAdapter(myListAdapter);
}

in MyListAdapter  class:

public View getView(int position, View convertView, ViewGroup parent)
{
  LayoutInflater inflate = LayoutInflater.from( context );
  View v = inflate.inflate( rowResID, parent, false);
  ImageButton button1 = (ImageButton)v.findViewById( R.id.button1 );

   button1.setOnClickListener(new View.OnClickListener() {
              public void onClick(View view) {

                     //How to call MyActivity class methods from
here??

              }
    });
}

Thank you for your kindly help in advance.

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

3. device to device broadcasts possible via wi-fi?

4. CHEAP MONCLER JACKET, GSTAR JEANS, COOGI JEANS, EVISU JEANS, POLO T-SHIRT, ARMANI...

5. question about orientation sensor

6. is an AppWidget Configuration Activity required?

7. How to make a SQL database accessable from a ContentProvider?