diff --git a/res/layout/entry_view.xml b/res/layout/entry_view.xml
index e5ee2bd11..b0b855c2c 100644
--- a/res/layout/entry_view.xml
+++ b/res/layout/entry_view.xml
@@ -48,6 +48,12 @@
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"/>
+
+
Your sd card is currently read-only. You may not be able to save changes to your database.
Your sd card is not currently mounted on your device. You will not be able to load or create your database.Version:
+ TelePass
+ Could not open TelePass, please install the com.a29apps.telepass app.30 seconds
diff --git a/src/com/keepassdroid/EntryActivity.java b/src/com/keepassdroid/EntryActivity.java
index 0da6804a5..0a3badade 100644
--- a/src/com/keepassdroid/EntryActivity.java
+++ b/src/com/keepassdroid/EntryActivity.java
@@ -32,6 +32,7 @@
import android.app.PendingIntent;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
+import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
@@ -72,6 +73,8 @@ public class EntryActivity extends LockCloseActivity {
public static final int NOTIFY_USERNAME = 1;
public static final int NOTIFY_PASSWORD = 2;
+ final Context context = this;
+
public static void Launch(Activity act, PwEntry pw, int pos) {
Intent i;
@@ -110,6 +113,20 @@ public void onClick(View v) {
}
});
+
+ Button telepass = (Button) findViewById(R.id.entry_telepass);
+ telepass.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+ Intent intent = new Intent();
+ intent.setComponent(new ComponentName("com.a29apps.telepass", "com.a29apps.telepass.TelePassActivity"));
+ intent.putExtra(Intent.EXTRA_TEXT, mEntry.getPassword());
+ try {
+ startActivity(intent);
+ } catch (ActivityNotFoundException ex) {
+ Toast.makeText(context, R.string.telepass_err, Toast.LENGTH_LONG).show();
+ }
+ }
+ });
}
@Override