I try to use Sybase Unwired Platform with generated code for Android. I have exception in following 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 this:
All crashes after beginning of execution of that line:
Android version is 4.1.2 (API 16)
Why does it crash?