Skip to content

redundant activity_hello_jni.xml in Hello JNI sample #336

Closed
@RogerHardiman

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions