Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/PubkeyListActivity.java @ 132:265a4733edcb
read deployment.connections on startup for new host entries
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 19 Jun 2014 15:47:34 -0700 |
parents | 0ce5cc452d02 |
children | 91a31873c42a |
comparison
equal
deleted
inserted
replaced
131:adf9ca45675b | 132:265a4733edcb |
---|---|
541 errorId = R.string.pubkey_public_export_problem; | 541 errorId = R.string.pubkey_public_export_problem; |
542 successId = R.string.pubkey_public_export_success; | 542 successId = R.string.pubkey_public_export_success; |
543 errorString = "Error exporting public key"; | 543 errorString = "Error exporting public key"; |
544 } | 544 } |
545 | 545 |
546 final String sdcard = Environment.getExternalStorageDirectory().toString(); | 546 final String sdcard = Environment.getExternalStorageDirectory().getAbsolutePath(); |
547 final EditText fileName = new EditText(PubkeyListActivity.this); | 547 final EditText fileName = new EditText(PubkeyListActivity.this); |
548 fileName.setSingleLine(); | 548 fileName.setSingleLine(); |
549 | 549 |
550 if (nickName != null) { | 550 if (nickName != null) { |
551 if (keyType == KEYTYPE_PRIVATE) | 551 if (keyType == KEYTYPE_PRIVATE) |
552 fileName.setText(sdcard + "/" + nickName.trim()); | 552 fileName.setText(sdcard + File.separator + nickName.trim()); |
553 else | 553 else |
554 fileName.setText(sdcard + "/" + nickName.trim() + ".pub"); | 554 fileName.setText(sdcard + File.separator + nickName.trim() + ".pub"); |
555 } | 555 } |
556 | 556 |
557 new AlertDialog.Builder(PubkeyListActivity.this) | 557 new AlertDialog.Builder(PubkeyListActivity.this) |
558 .setTitle(titleId) | 558 .setTitle(titleId) |
559 .setMessage(messageId) | 559 .setMessage(messageId) |