commit 599511e40103592a41168e7b5a7ee84ab6dc1c23
parent a5b8c8910d2c99b0d5946dcd0cd220fb276086dd
Author: Jan Dankert <devnull@localhost>
Date: Fri, 25 Nov 2011 00:31:40 +0100
Fix: Intents registriert.
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
@@ -13,6 +13,9 @@
</activity>
<activity android:name="PreferencesActivity"></activity>
+
+ <service android:name=".UploadIntentService"></service>
+ <service android:name=".MailIntentService"></service>
</application>
diff --git a/src/de/openrat/android/blog/Blog.java b/src/de/openrat/android/blog/Blog.java
@@ -30,6 +30,7 @@ public class Blog extends Activity
private ImageView image;
private EditText title;
private EditText text;
+ private Button button;
@Override
public void onCreate(Bundle savedInstanceState)
@@ -50,7 +51,7 @@ public class Blog extends Activity
takePhoto();
}
});
- Button button = (Button) findViewById(R.id.save);
+ button = (Button) findViewById(R.id.save);
button.setOnClickListener(new OnClickListener()
{
@@ -74,7 +75,7 @@ public class Blog extends Activity
startService(uploadIntent);
}
- if (prefs.getBoolean("use_mail", false))
+ if (prefs.getBoolean("use_email", false))
{
final Intent mailIntent = new Intent(Blog.this,
MailIntentService.class);