Skip to Content
0
Former Member
Dec 19, 2013 at 06:33 AM

SUP 2.2 + Androd throw exception at Application.getInstance().setApplicationContext(this);

34 Views

Im try to use Sybase Unwired Platform with generated code for Android. I have exception in folowing code:

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);


Application app = Application.getInstance();

String AppName = "timesheets";

if (app.getApplicationIdentifier() == null)

app.setApplicationIdentifier(AppName);

if (app.getApplicationContext() == null)

app.setApplicationContext(this); //Place where app crashes

Debug window look like

All crashes after begining of execution of that line:

Why it crashed?

Attachments