Processing Forum
<activity android:name="com.swarmconnect.SwarmMainActivity"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateHidden" />
<receiver android:name="com.swarmconnect.SwarmConnectivityReceiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter> </receiver>
public class MyActivity extends Activity {
public class MyActivity extends SwarmActivity {Using another library (such as LibGDX) that doesn't allow you to extend SwarmActivity?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Swarm.setActive(this);
}
public void onResume() {
super.onResume();
Swarm.setActive(this);
}
public void onPause() {
super.onPause();
Swarm.setInactive(this);
}
Swarm.init(this, SWARM_APP_ID, "SWARM_APP_KEY");