import java.io.File;\r
import java.io.FileNotFoundException;\r
\r
+import org.openintents.safe.service.ServiceDispatchImpl;\r
+\r
import android.content.ContentProvider;\r
import android.content.ContentValues;\r
import android.content.UriMatcher;\r
// TODO: Check that sessionKey is valid.\r
\r
// Decrypt file\r
- CryptoHelper ch = IntentHandler.ch; // Use the global crypto helper that is connected to the single service we have.\r
+ CryptoHelper ch = ServiceDispatchImpl.ch; // Use the global crypto helper that is connected to the single service we have.\r
\r
Log.d(TAG, "Original file path: " + originalFile);\r
\r
\r
private String salt;\r
private String masterKey;\r
- public static CryptoHelper ch; // TODO Peli: Could clean this up by moving it into a singleton? Or at least a separate static class?\r
-\r
+ private CryptoHelper ch;\r
+ \r
// service elements\r
private ServiceDispatch service;\r
private ServiceDispatchConnection conn;\r
public void onServiceDisconnected(ComponentName className)\r
{\r
service = null;\r
+ \r
if (debug) Log.d( TAG,"onServiceDisconnected" );\r
}\r
};\r
public class ServiceDispatchImpl extends Service {
private static boolean debug = false;
private static String TAG = "ServiceDispatchIMPL";
- private CryptoHelper ch;
+ public static CryptoHelper ch; // TODO Peli: Could clean this up by moving it into a singleton? Or at least a separate static class?
private String salt;
private String masterKey;
private CountDownTimer t;