Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

ScummVMApplication.java

package org.inodes.gus.scummvm;

import android.app.Application;

import java.io.File;

00007 public class ScummVMApplication extends Application {
      public final static String ACTION_PLUGIN_QUERY = "org.inodes.gus.scummvm.action.PLUGIN_QUERY";
      public final static String EXTRA_UNPACK_LIBS = "org.inodes.gus.scummvm.extra.UNPACK_LIBS";

      private static File cache_dir;

      @Override
      public void onCreate() {
            super.onCreate();
            // This is still on /data :(
            cache_dir = getCacheDir();
            // This is mounted noexec :(
            //cache_dir = new File(Environment.getExternalStorageDirectory(),
            //                 "/.ScummVM.tmp");
            // This is owned by download manager and requires special
            // permissions to access :(
            //cache_dir = Environment.getDownloadCacheDirectory();
      }

      public static File getLastCacheDir() {
            return cache_dir;
      }
}

Generated by  Doxygen 1.6.0   Back to index