草庐IT

already_computed

全部标签

android - IllegalStateException : attempt to re-open an already-closed object. SimpleCursorAdapter 问题

我是android编程的新手。可以看到这个问题之前已经提过很多次了。但是,我仍然看不出问题是什么。我正在尝试将SQLite数据库中的数据连接到ListView。在ListActivity中,我的onCreate如下所示:publicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_init_key);getActionBar().setDisplayHomeAsUpEnabled(true);DBHandlerdb=newD

android - 非法状态异常 : Fragment already added appears if a App was very long in the background

你好,我在我的android应用程序中使用了fragment,但我看到一些奇怪的异常java.lang.IllegalStateException:Fragmentalreadyadded如果应用程序在背景。我检查了这个https://code.google.com/p/android/issues/detail?id=61247,java.lang.IllegalStateException:Fragmentalreadyadded但是当我在FragmentTabHost中添加fragment时,我如何检查是否已经添加了fragment源代码:publicclassFirstFrag

java - 如何解决 java.net.BindException : bind failed: EADDRINUSE (Address already in use)

我正在使用WiFiDirect使用套接字将文件从Android传输到Android。我正在开始使用以下代码发送文件的服务String[]filesPath=data.getStringArrayExtra("all_path");IntentserviceIntent=newIntent(getActivity(),FileTransferService.class);serviceIntent.setAction(FileTransferService.ACTION_SEND_FILE);serviceIntent.putExtra(FileTransferService.EXTRA

java.lang.IllegalStateException : commit already called 错误

我试过下面的代码,try{finalActivityactivity=ctx;FragmentTransactionft=activity.getFragmentManager().beginTransaction();android.app.Fragmentprev=activity.getFragmentManager().findFragmentByTag("dialog");if(prev!=null){ft.remove(prev);}DialogServiceFailednewFragment=DialogServiceFailed.newInstance(pageName

android - USB调试: How to revoke the "Always allow from this computer" option

我已经开始为android开发。我正在使用具有不同操作系统的不同计算机。(家里有一台Windows台式电脑和一台Macintosh,工作有一台Windows笔记本电脑)大部分时间我都在使用台式电脑进行开发,但从昨天开始,我的Nexus4在EclipseADT设备View中显示为离线。这个问题只发生在我的台式电脑上。在其他计算机上,我在eclipse中使设备联机没有任何问题。我已经尝试了很多事情,例如:-拔出/插入nexus4-关闭/打开USB调试-重新启动计算机、nexus4和adb服务器-重新安装nexus4usb驱动程序(我正在使用来自AndroidSDK的AndroidCompo

android - GoogleApiClient : "Result has already been consumed" in multi-thread Android app

最好的处理方法是什么java.lang.IllegalStateException:Resulthasalreadybeenconsumed.atcom.google.android.gms.common.internal.zzx.zza(UnknownSource)atcom.google.android.gms.internal.zzly.await(UnknownSource)atcom.google.android.gms.internal.zzmo.await(UnknownSource)atcom.google.android.gms.internal.zzmo.get(U

android - 测试 Android inapp 订阅 : You already own this subscription

我正在使用测试帐户测试Androidinapp订阅,输入真实信用卡购买后,订阅没问题,但我在json响应中找不到token。所以在开发者控制台中,我取消了订单,当我再次尝试重新订阅时,它现在显示警告“您已经拥有此订阅”。当我点击框中的“详细信息”时,它打开了Play商店应用,但显示“找不到项目”以前有人遇到过这个错误吗?谢谢。 最佳答案 我猜你可能已经解决了这个问题,但看看这个问题SubscriptionsamplemissingJSONparsingofpurchaseTokenJSON可能就是这种情况。我认为您无法重新订阅的原因

Android 警告 : Window already focused, 忽略焦点增益

伙计们,我需要你们的眼睛。我已经为我的代码奋斗了很长时间,但我仍然像一个旧架子一样卡住了。你看,有很多主题与android警告相关:W/InputMethodManagerService:Windowalreadyfocused,ignoringfocusgainof:com.android.internal.view.IInputMethodClient$Stub...我读了很多,没有找到任何有用的东西,我的眼睛很累。我正在开发一个微调器组件,第一个项目名为Addnew...会触发一个对话框以将另一个项目添加到列表中。因为我目前有两个这样的微调器(在一个Activity中),所以我为

android - MQTT 上的 AWS IoT Android 应用程序抛出 MqttException (0) - java.io.IOException : Already connected

我正在尝试在我的Android应用程序中使用“使用Cognito身份和Cognito用户池进行身份验证”。我的Cognito用户池身份验证运行良好,当我单独运行它时我也看到了JWTToken。当我使用未经身份验证的角色运行“PubSub”示例应用程序时,它按预期工作。当我将这两个功能集成到一个应用程序中时,该应用程序抛出以下错误。W/System.err:MqttException(0)-java.io.IOException:AlreadyconnectedW/System.err:atorg.eclipse.paho.client.mqttv3.internal.Exception

android - 错误 : Attribute "font" already defined with incompatible format

我在通过Gradle构建应用程序时遇到问题,如下所示。我得到了错误:错误:(516)属性“字体”已经用不兼容的格式定义。错误:(298)此处定义的原始属性。错误:(516)属性“字体”已经用不兼容的格式定义。错误:(298)此处定义的原始属性。但我没有在我的模块中找到使用“字体”属性的地方。请帮助我。dependencies{compilefileTree(include:['*.jar'],dir:'libs')testCompile'junit:junit:4.12'androidTestCompile('com.android.support.test.espresso:espr