redundant activity_hello_jni.xml in Hello JNI sample #336
Closed
Description
The Hello_JNI sample includes an activity layout called
activity_hello_jni.xml
However this is not used in the sample.
The Java code creates a Text View and then uses this Java created TextView as the ContentView
TextView tv = new TextView(this);
tv.setText( stringFromJNI() );
setContentView(tv);
For consistency either
a) the XML view layout should be removed
OR
b) the Java code should findViewById on the ImageView in the Layout XML
Metadata
Assignees
Labels
No labels