diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-14 12:08:48 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-14 12:08:48 +0200 |
commit | bbcdeecc40603246887c1ffe02e6f57a695fe005 (patch) | |
tree | ceeb7121aa59ba070adb953f90cca71080355aff /src/de/danoeh/antennapod/activity/AddFeedActivity.java | |
parent | cbeeaa3766c6e247352874787432b2f9137c29bb (diff) | |
download | AntennaPod-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.java | 10 |
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"); + } + } } |