I have been stuck on this for months, had completely written off
NativeActivity because the sample didn't even work!!!
> > With several examples,NativeActivityfrom the NDK samples, and also
> > the examples native_lorenz and native_globe I had the same problem.
>
> > Clicking from eclipse on my android device caused the app to crash
> > before being executed. logcat showed:
>
> > java.lang.RuntimeException: Unable to startactivity
> > ComponentInfo{com.nvidia.devtech.NativeLorenz/
> > android.app.NativeActivity}: java.lang.IllegalArgumentException:
> > Unable to findnativelibrary: native_lorenz
>
> > and also:
>
> > AndroidRuntime(17879): Caused by: java.lang.IllegalArgumentException:
> > Unable to findnativelibrary: native_lorenz
>
> > In this post "NativeActivityapp fails to run" I found the same
I think the reason this example instructs you to set hasCode to falseis that the libnative-activity.so file is intended to be dropped into
another application as it can be called/started using an Intent just
like any other activity. The AndroidManifest.xml file really shouldn't
be part of the example however unless it was more concisely
documented. As far as I can tell setting hasCode to false on the
application tag in the Manifest essentially causes the APK to do
nothing at all, not sure what the point is but it is certainly
confusing.