1. Download our Official Android App: Forums for Android!

Apps Start Bluetooth after plug in AC adapter

Discussion in 'Android Development' started by PetrS, Jul 21, 2010.

  1. PetrS

    PetrS Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 21, 2010

    Jul 21, 2010
    2
    0
    5
    Hello,

    I need to write app that start bluetooth after I pluged HTC in charger. Is there someone, whot can help me with this problem?

    P.S. Source code would be ideal :)


    Thanks.
     

    Advertisement

  2. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    I am not going to write the program for you, but I did a tutorial on simple bluetooth functionality over and anddev.

    You would just have to watch for the charge state and start the bluetooth connection when it is charging.
     
  3. PetrS

    PetrS Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 21, 2010

    Jul 21, 2010
    2
    0
    5
    OK, I'll write something and then I add the code here, if anyone needs it.

    Thanks for advice.
     

Share This Page

Loading...