Вы можете сделать это, используя метод onPause()
вашего Activity
:
@override
public void onPause() {
super.onPause();
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
webview.onPause();
}
}
, добавив проверку для использования в API> = 11 (Сота)
Из справочной страницы 'ssh-keygen (1)':
For RSA1 keys, there is also a comment field in the key file that is only for convenience to the user to help identify the key. The comment can tell what the key is for, or whatever is useful. The comment is initialized to “user@host” when the key is created, but can be changed using the -c option. … -C comment Provides a new comment. -c Requests changing the comment in the private and public key files. This operation is only supported for RSA1 keys. The program will prompt for the file containing the private keys, for the passphrase if the key has one, and for the new comment.
Итак, при создании ключа вы используете -C "$ желаемый комментарий"
для предоставления любого текста комментария тебе нравится; или для существующего ключа используйте параметр -c
, чтобы изменить комментарий.
Да! Он вообще не нужен, он просто добавлен произвольно, чтобы вам было легче запомнить, откуда он появился. Если вы хотите отредактировать его, просто откройте сеанс Терминала и введите:
$ nano ~/.ssh/id_rsa.pub
Удалите конечную часть строки (после двойного равенства).