blob: 8d465aa4d6e149bc1b6245b7c5ee45607fd31dcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2012-2018 Arne Schwabe
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.externalcertprovider;
import android.app.Activity;
import android.content.Intent;
import android.security.KeyChain;
import android.os.Bundle;
public class SelectCertificateActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findViewById(R.id.nicecert).setOnClickListener((v) ->
{
Intent intent = new Intent();
intent.putExtra(KeyChain.EXTRA_KEY_ALIAS, "mynicecert");
setResult(RESULT_OK);
});
}
}
|