March 2013
Intermediate to advanced
346 pages
8h 4m
English
The previous two recipes demonstrate how to port a command-line executable to Android. Needless to say, the biggest disadvantage of such a method is that it cannot be executed on a non-rooted Android device. This recipe discusses how to address the issue by adding a GUI when porting an application to Android.
The following steps describe how to add a simple UI to the ported app:
PortingExecutableAUI with native support. Set the package name as cookbook.chapter9.portingexecutableaui. Refer to the Loading native libraries and registering native methods recipe of Chapter 2, Java Native Interface, if you want more detailed instructions.