android {
......
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private long mPressedTime = 0; | |
@Override | |
public void onBackPressed() { | |
//获取第一次按键时间 | |
long mNowTime = System.currentTimeMillis(); | |
//比较两次按键时间差 | |
if((mNowTime - mPressedTime) > 2000){ | |
Toast.makeText(this, "再按一次退出程序", Toast.LENGTH_SHORT).show(); |
android {
...
signingConfigs {
releaseConfig {
storeFile file(System.getenv("KEYSTORE_PATH"))
keyAlias System.getenv("KEY_ALIAS")
storePassword System.getenv("KEYSTORE_PASSWORD")
创建命令:keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
alias_name
:证书别名;
-validity
:有效天数;
您的名字与姓氏是什么?
[Unknown]:BoNi