我想通过按钮点击退出应用程序.
按钮单击的代码是
quitBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View paramView) {
// TODO Auto-generated method stub
MainActivity.this.finish();
}
});
Run Code Online (Sandbox Code Playgroud)
但它需要两次点击才能退出应用.
我已经集成了 firebase,日志完美地显示在 firebase 控制台中。
implementation 'com.google.firebase:firebase-perf:16.0.0'
Run Code Online (Sandbox Code Playgroud)
是与 firebase SDK 集成的片段。错误信息如下,
03-07 13:27:05.031 I/FirebasePerformance(17999): Did not receive a HTTP
Response Code
03-07 13:27:05.031 I/FirebasePerformance(17999): Unable to process an HTTP
request/response due to missing or invalid values. See earlier log
statements for additional information on the specific invalid/missing values.
Run Code Online (Sandbox Code Playgroud)