(Android Phoenix) RetroActivityCommon - Implement getAndroidOSVersion

This commit is contained in:
twinaphex 2013-12-15 14:18:11 +01:00
parent 104ae00915
commit c038f7be8f

View File

@ -8,13 +8,8 @@ import android.util.Log;
public class RetroActivityCommon extends RetroActivityLocation public class RetroActivityCommon extends RetroActivityLocation
{ {
/* PENDING INTENT VARIABLES */
private Intent pendingIntent = null; private Intent pendingIntent = null;
/* INTENT
* TODO: Refactor to some class that RetroActivityCommon will implement
* TODO: Make sure after refactoring to class that JNI will still work */
@Override @Override
public void onNewIntent(Intent intent) public void onNewIntent(Intent intent)
{ {
@ -84,4 +79,9 @@ public class RetroActivityCommon extends RetroActivityLocation
retro.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); retro.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(retro); startActivity(retro);
} }
public int getAndroidOSVersion()
{
return android.os.Build.VERSION.SDK_INT;
}
} }