On Apr 4, 10:29 pm, Samuh <[email protected]> wrote:
> Since the application requires this binary to be running, I was
> thinking of packaging the binary inside the application and using
> Syste.loadLibrary to load it and Runtime.exec() API to execute it.
> Will this work?

loadLibrary is for loading shared librarisn (.so).  It won't work on a
full executable.  You can exec it though, and that works fine.

> Also, I was thinking of wrapping the Runtime execution around a
> service so that it can be started and stopped when required and in
> case of errors, application be notified.
>
> What are the recommended ways to handling such binaries and bundling
> them in android app?

The best case is to use the NDK to create a shared library you can
load and call into.  You might want to investigate that and take
further questions to the android-ndk google group.

Doug

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to