Open StarterAppActivity.java in the editor.
a) Add the following import statement:
import com.wimm.framework.app.LauncherActivity;
b) Extend the StarterAppActivity class with LauncherActivity.
c) When this step is completed the generated activity file should include entries as shown in the following sample code (the WIMM elements you added are shown with comments):
package com.test.starterapp;
import android.os.Bundle;
import com.wimm.framework.app.LauncherActivity; 'ADDED FOR WIMM
public class StarterAppActivity extends LauncherActivity { 'ADDED FOR WIMM
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
If your activity includes vertically scrolling elements, it should also implement dragCanExit().