Android Question bluetooth device control during run

Discussion in 'Android Questions' started by tango, Apr 9, 2015.

  1. tango

    tango Member Licensed User

    bluetooth device attached and initialize it,that device run. but when power off it and power on again during app run ,that device not running. how can we solve to control it and if error then re initilize it again with timer or service
  2. DonManfred

    DonManfred Expert Licensed User

    Congratulations. This is one of the baddest descriptions i ever read here.
    In fact i did understand NOTHING what you really want.
    I guess you should change your issue-description.
    But maybe someone other can understand your "suaheli". I cant.
    lemonisdead and timwil like this.
  3. lemonisdead

    lemonisdead Well-Known Member Licensed User

    If I do well understand your question : you will have to watch the disconnection of the Bluetooth device to be able to reconnect it. I would use some intent filters in the manifest

    AddReceiverText(Service1, <intent-filter>
        <action android:name=
    AddReceiverText(Service2, <
        <action android:name=
    Each service should be started when the connection or disconnection happens. Then using the Serial library you should be able to retrieve the device connected or reconnect to it when powered.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice