Java Question Start AppCompatActivity in wrapper class

sareban

Member
How can i start an activity that extends appcompatactivity in wrapper class
I Add this in manifaest
B4X:
            AddApplicationText(
<activity android:name="com.hbisoft.hbrecorder.SettingsActivity"/>
)

and used it in wrapper class
Java:
ba.activity.startActivity(new Intent(ba.context, SettingsActivity.class));

But
B4X:
java.lang.NullPointerException: Attempt to read from field 'android.app.Activity anywheresoftware.b4a.BA.activity' on a null object reference
How can i fix it?
 
Last edited:
Top