<div class="gmail_quote">On Thu, Jun 9, 2011 at 3:07 PM, gvim <span dir="ltr"><<a href="mailto:gvimrc@gmail.com">gvimrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm looking to build an Android app - and hopefully for the iPhone too - which needs to call a C binary and use the standard Linux 'tzdata' library. Is this possible and if so, can it be bundled as a regular app?<br>
</blockquote></div><br>It's certainly possible.. but you might have to include several copies of the binary for different android architectures.<br><br>You can just exec it <br><br><a href="http://developer.android.com/reference/java/lang/Runtime.html">http://developer.android.com/reference/java/lang/Runtime.html</a><br>
<br>or you could make a native shared library and stubs to call it.<br><br><a href="http://developer.android.com/sdk/ndk/index.html">http://developer.android.com/sdk/ndk/index.html</a><br><br>Rob<br>