gpt4 book ai didi

android - BoostFramework() : mPerf = com. qualcomm.qti.Performance@c4322f2

转载 作者:行者123 更新时间:2023-11-29 14:12:57 26 4
gpt4 key购买 nike

    public class ForceOfflineReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, Intent intent) {
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(context);
dialogBuilder.setTitle("Warning");
dialogBuilder.setMessage("You are forced to be offline. Please try to login again.");
dialogBuilder.setCancelable(false);
dialogBuilder.setPositiveButton("OK",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
ActivityCollector.finishAll();
Intent intent = new Intent(context,
LoginActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

context.startActivity(intent);
}
});
AlertDialog alertDialog = dialogBuilder.create();

alertDialog.getWindow().setType(TYPE_SYSTEM_ALERT);
alertDialog.show();
}

}

当我点击按钮时,没有对话框出现。日志是:

08-21 10:40:05.756 13851-13851/com.project.ics.day0821rememberpassword V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@c4322f2 08-21 10:40:05.757 13851-13851/com.project.ics.day0821rememberpassword V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@667cd43 08-21 10:41:06.499 13851-13851/com.project.ics.day0821rememberpassword W/IInputConnectionWrapper: clearMetaKeyStates on inactive InputConnection 08-21 10:41:07.559 13851-13851/com.project.ics.day0821rememberpassword I/Choreographer: Skipped 57 frames! The application may be doing too much work on its main thread.

github上的源代码: https://github.com/gowufang/AndroidStu/tree/master/Day0821RememberPassword

最佳答案

可能是您没有设置按下按钮时执行的方法的名称,或者拼写错误,我遇到了这个问题,但后来我明白了。(按钮的“onClick”属性名称是未设置或设置错误)

关于android - BoostFramework() : mPerf = com. qualcomm.qti.Performance@c4322f2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45788731/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com