mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-20 00:51:32 -08:00
28 lines
711 B
Java
28 lines
711 B
Java
package org.meumeu.wivrn;
|
|
|
|
public class MainActivity extends android.app.NativeActivity
|
|
{
|
|
static
|
|
{
|
|
System.loadLibrary("wivrn");
|
|
}
|
|
|
|
@Override
|
|
public native void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults);
|
|
|
|
@Override
|
|
public native void onNewIntent(android.content.Intent intent);
|
|
|
|
private android.content.BroadcastReceiver BatteryInfoReceiver = null;
|
|
|
|
@Override
|
|
protected void onCreate(android.os.Bundle savedInstanceState)
|
|
{
|
|
super.onCreate(savedInstanceState);
|
|
|
|
this.BatteryInfoReceiver = new BroadcastReceiver();
|
|
|
|
this.registerReceiver(this.BatteryInfoReceiver, new android.content.IntentFilter(android.content.Intent.ACTION_BATTERY_CHANGED));
|
|
}
|
|
}
|