Gimp: warn user about deleting files during upgrade, removed old cruft
This commit is contained in:
@@ -619,6 +619,9 @@ class Settings
|
||||
nativeSetEnv( "SDCARD", Environment.getExternalStorageDirectory().getAbsolutePath() );
|
||||
nativeSetEnv( "ANDROID_VERSION", String.valueOf(android.os.Build.VERSION.SDK_INT) );
|
||||
nativeSetEnv( "ANDROID_PACKAGE_NAME", p.getPackageName() );
|
||||
try {
|
||||
nativeSetEnv( "ANDROID_APP_NAME", p.getString(p.getApplicationInfo().labelRes) );
|
||||
} catch (Exception eeeeee) {}
|
||||
if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO )
|
||||
nativeSetEnv( "ANDROID_PACKAGE_PATH", p.getPackageCodePath() );
|
||||
Log.d("SDL", "libSDL: Is running on OUYA: " + p.isRunningOnOUYA());
|
||||
|
||||
@@ -916,9 +916,19 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void openExternalWebBrowser(String url)
|
||||
public void openExternalApp(String pkgName, String activity, String url)
|
||||
{
|
||||
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
|
||||
Intent i = new Intent();
|
||||
if (url != null)
|
||||
{
|
||||
i.setAction(Intent.ACTION_VIEW);
|
||||
i.setData(Uri.parse(url));
|
||||
}
|
||||
if (pkgName != null && activity != null)
|
||||
{
|
||||
i.setClassName(pkgName, activity);
|
||||
}
|
||||
context.startActivity(i);
|
||||
}
|
||||
|
||||
private int PowerOf2(int i)
|
||||
|
||||
Reference in New Issue
Block a user