super.onCreate(icicle);\r
mServiceIntent = null;\r
mPreferences = PreferenceManager.getDefaultSharedPreferences(this);\r
- initService(); // start up the PWS service so other applications can query.\r
+ \r
+ // The service is launched in onResume()\r
}\r
\r
\r
if (dbHelper == null) {\r
dbHelper = new DBHelper(this);\r
}\r
-\r
+ \r
+ initService(); // start up the PWS service so other applications can query.\r
}\r
\r
@Override\r
return;\r
}\r
\r
- boolean promptforpassword = getIntent().getBooleanExtra(CryptoIntents.EXTRA_PROMPT, true);\r
- if (debug) Log.d(TAG, "Prompt for password: " + promptforpassword);\r
try {\r
if (service.getPassword() == null) {\r
+ boolean promptforpassword = getIntent().getBooleanExtra(CryptoIntents.EXTRA_PROMPT, true);\r
+ if (debug) Log.d(TAG, "Prompt for password: " + promptforpassword);\r
if (promptforpassword) {\r
if (debug) Log.d(TAG, "ask for password");\r
// the service isn't running\r