我看到布料中很少发生崩溃,看起来像这样:
Fatal Exception: java.util.concurrent.TimeoutException: android.text.TextPaint.finalize() timed out after 30 seconds
at android.graphics.Paint.finalizer(Paint.java)
at android.graphics.Paint.finalize(Paint.java:2437)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:202)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)
at java.lang.Thread.run(Thread.java:833)
Fatal Exception: java.util.concurrent.TimeoutException: java.io.FileInputStream.finalize() timed out after 10 seconds
at java.io.FileDescriptor.valid(FileDescriptor.java:87)
at libcore.io.IoUtils.close(IoUtils.java:37)
at java.io.FileInputStream.close(FileInputStream.java:121)
at java.io.FileInputStream.finalize(FileInputStream.java:142)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:187)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:170)
at java.lang.Thread.run(Thread.java:856)
Run Code Online (Sandbox Code Playgroud)
我不确定为什么以及我的Android应用程序的哪些代码导致这些崩溃,我也无法复制它.也许你们有人有类似的问题并解决它?
我想问一下你们有没有人能给我一些在通知栏中显示admob.com广告的代码示例?我知道用户可能会讨厌我的应用程序,但我想尝试一下.谢谢.
我的脚本创建密码并锁定手机,但如果我尝试将密码更改为
空白,则会失败.
我的锁定脚本:
DevicePolicyManager deviceManager = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE);
ComponentName compName = new ComponentName(MessageService.this, LockAdmin.class);
boolean active = deviceManager.isAdminActive(compName);
if (active) {
deviceManager.setPasswordQuality(compName,DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED);
deviceManager.setPasswordMinimumLength(compName, 5);
boolean result = deviceManager.resetPassword("blablabla", DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY);
}
Run Code Online (Sandbox Code Playgroud)
所以我的问题是,如何将密码更改为空白或如何将锁定模式更改为"无"?
我收到了来自GCM的消息,但我得到了字符串而不是布尔值.似乎问题在于我的JSON数组.我收到警告信息:
04-17 00:41:04.058: W/Bundle(6702): Key alarm expected Boolean but value was a java.lang.String. The default value false was returned.
04-17 00:41:04.058: W/Bundle(6702): Attempt to cast generated internal exception:
04-17 00:41:04.058: W/Bundle(6702): java.lang.ClassCastException: java.lang.String
04-17 00:41:04.058: W/Bundle(6702): at android.os.Bundle.getBoolean(Bundle.java:786)
04-17 00:41:04.058: W/Bundle(6702): at android.content.Intent.getBooleanExtra(Intent.java:3282)
04-17 00:41:04.058: W/Bundle(6702): at com.rolandas.lookup.GCMIntentService.onMessage(GCMIntentService.java:71)
04-17 00:41:04.058: W/Bundle(6702): at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:223)
04-17 00:41:04.058: W/Bundle(6702): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
04-17 00:41:04.058: W/Bundle(6702): at android.os.Handler.dispatchMessage(Handler.java:99)
04-17 00:41:04.058: W/Bundle(6702): at android.os.Looper.loop(Looper.java:130)
04-17 00:41:04.058: W/Bundle(6702): at android.os.HandlerThread.run(HandlerThread.java:60)
Run Code Online (Sandbox Code Playgroud)
PHP发送脚本.
$devices = array();
$data = array(); …
Run Code Online (Sandbox Code Playgroud) 我试图SelectedIssueController
在我的主布局 ( main.fxml ) 中包含 controller( )。但我收到以下错误:
Can not set lt.mypackage.controllers.SelectedIssueController field lt.mypackage.controllers.MainController.selectedIssueController to javafx.scene.layout.VBox
Run Code Online (Sandbox Code Playgroud)
main.fxml 中的一行:
Can not set lt.mypackage.controllers.SelectedIssueController field lt.mypackage.controllers.MainController.selectedIssueController to javafx.scene.layout.VBox
Run Code Online (Sandbox Code Playgroud)
我选择的issue.fxml:
<fx:include fx:id="selectedIssueController" source="controllers/selectedissue.fxml" />
Run Code Online (Sandbox Code Playgroud)
线路输入MainController
:
@FXML
private SelectedIssueController selectedIssueController;
Run Code Online (Sandbox Code Playgroud)
据我了解,它VBox
现在注入对象,但我需要SelectedIssueController
. 我目前的实施有什么问题?