summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/activity/AddFeedActivity.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-14 12:08:48 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-14 12:08:48 +0200
commitbbcdeecc40603246887c1ffe02e6f57a695fe005 (patch)
treeceeb7121aa59ba070adb953f90cca71080355aff /src/de/danoeh/antennapod/activity/AddFeedActivity.java
parentcbeeaa3766c6e247352874787432b2f9137c29bb (diff)
downloadAntennaPod-bbcdeecc40603246887c1ffe02e6f57a695fe005.zip
Urls can now be sent to addfeedactivity from other apps
Diffstat (limited to 'src/de/danoeh/antennapod/activity/AddFeedActivity.java')
-rw-r--r--src/de/danoeh/antennapod/activity/AddFeedActivity.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/activity/AddFeedActivity.java b/src/de/danoeh/antennapod/activity/AddFeedActivity.java
index 433f8c2c3..76478480b 100644
--- a/src/de/danoeh/antennapod/activity/AddFeedActivity.java
+++ b/src/de/danoeh/antennapod/activity/AddFeedActivity.java
@@ -101,6 +101,16 @@ public class AddFeedActivity extends SherlockActivity {
protected void onResume() {
super.onResume();
StorageUtils.checkStorageAvailability(this);
+ Intent intent = getIntent();
+ if (intent.getAction() != null && intent.getAction().equals(Intent.ACTION_SEND)) {
+ Log.d(TAG, "Was started with ACTION_SEND intent");
+ String text = intent.getStringExtra(Intent.EXTRA_TEXT);
+ if (text != null) {
+ etxtFeedurl.setText(text);
+ } else {
+ Log.d(TAG, "No text was sent");
+ }
+ }
}