Look into the implementation of IOIOActivity. You can, if you want,
implement a similar class that invokes the helper's start() / stop() etc.
at different times than the application's lifecycle events.

On Mon, Feb 22, 2016 at 6:30 AM, Lumi <[email protected]> wrote:

> Dear all,
>
> I have an android application and in this application, when a certain
> button is clicked, I would like to make a connection to ioio-otg, send TWI
> commands and then disconnect from ioio-otg.
>
> I would like to do these steps seamlessly on the background.  I believe,
> in order to do that, I need to have a separate class with connect, setup,
> disconnect etc. functions implemented. Moreover, I need to be able to
> create an instance of this class in my android application and call the
> necessary functions.
>
> Is there a good example demonstrates such use case ?
>
> Thank you in advance,
> All the bests.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to