v0.7.1c: removed android-specific code from several classes in core
This commit is contained in:
@@ -21,7 +21,12 @@
|
||||
|
||||
package com.watabou.utils;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
|
||||
import com.watabou.noosa.Game;
|
||||
|
||||
public class DeviceCompat {
|
||||
|
||||
@@ -40,5 +45,14 @@ public class DeviceCompat {
|
||||
public static boolean usesISO_8859_1(){
|
||||
return Build.VERSION.SDK_INT == Build.VERSION_CODES.FROYO;
|
||||
}
|
||||
|
||||
public static void openURI( String URI ){
|
||||
Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse( URI ) );
|
||||
Game.instance.startActivity( intent );
|
||||
}
|
||||
|
||||
public static void log( String tag, String message ){
|
||||
Log.i( tag, message );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user