diff options
author | irish <irish@hawk2.irishmark.local> | 2010-09-28 22:51:03 +0100 |
---|---|---|
committer | irish <irish@hawk2.irishmark.local> | 2010-09-28 22:51:03 +0100 |
commit | 1375da7d5a42e3942b71393720670db10e249126 (patch) | |
tree | a655262faecea2acaad1e02a513d3c5bb4ea734b | |
parent | 0cac01d92a0a3e9a420047a30e4bc5e5a4f69c3d (diff) | |
download | connectbot-1375da7d5a42e3942b71393720670db10e249126.tar.gz connectbot-1375da7d5a42e3942b71393720670db10e249126.tar.bz2 connectbot-1375da7d5a42e3942b71393720670db10e249126.zip |
Adds PICK activity to manifest
PICK Intents for ssh/telnet/local will return a shortcut
-rw-r--r-- | AndroidManifest.xml | 7 | ||||
-rw-r--r-- | src/org/connectbot/HostListActivity.java | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a0b99e8..180674f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -22,6 +22,13 @@ <action android:name="android.intent.action.CREATE_SHORTCUT" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> + <intent-filter> + <action android:name="android.intent.action.PICK" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:scheme="ssh" /> + <data android:scheme="telnet" /> + <data android:scheme="local" /> + </intent-filter> </activity> <activity android:name=".PubkeyListActivity" android:configChanges="keyboardHidden|orientation" /> diff --git a/src/org/connectbot/HostListActivity.java b/src/org/connectbot/HostListActivity.java index f65c069..3b02530 100644 --- a/src/org/connectbot/HostListActivity.java +++ b/src/org/connectbot/HostListActivity.java @@ -178,7 +178,8 @@ public class HostListActivity extends ListActivity { // start thread to check for new version new UpdateHelper(this); - this.makingShortcut = Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction()); + this.makingShortcut = Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction()) + || Intent.ACTION_PICK.equals(getIntent().getAction()); // connect with hosts database and populate list this.hostdb = new HostDatabase(this); |