如何使用HashTable检索另一个语句记录?(How to Retrieve Another Statement Records Using HashTable?)
晚上好,我尝试使用HashTable()临时存储数据库表记录。 问题是我不知道为什么放在HashTable()中的记录将始终是第一条记录。 我认为问题的出现是因为循环概念错误,相关代码:
宣布
Hashtable hashsample = new Hashtable();
for循环
for (i = 0; i< db.getNumberOfRows(); i++) { hashsample.put(i, db.getData()); System.out.println(hashsample); }
p / s:我是HashTable的新手,db(数据库语句)运行正常...
需要一些提示并建议,谢谢先进的^^
Good Evening, I try to use the HashTable() for storing a database table records temporarily . The problem is I dunno why the records which being put inside the HashTable() will always be the first record. I think the problem occur is because of the wrong for loops concept, related code:
Declare
Hashtable hashsample = new Hashtable();
for loop
for (i = 0; i< db.getNumberOfRows(); i++) { hashsample.put(i, db.getData()); System.out.println(hashsample); }
p/s: I'm new in HashTable, the db (database statement) run fine...
Need some hints and advised, thanks in advanced^^
原文:https://stackoverflow.com/questions/17587307
最满意答案
在模拟器上安装AIR运行时:
adb -e install -r Runtime_Emulator_Froyo_20100930.apk
从这个网站: http : //flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/
To install the AIR runtime on the emulator:
adb -e install -r Runtime_Emulator_Froyo_20100930.apk
from this site: http://flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/
相关问答
更多-
您需要访问设备LogCat才能进行调试。 您可以通过Android SDK访问LogCat,或者您可以在设备上安装多个应用程序 You need to access the devices LogCat in order to debug this. You can access the LogCat via the Android SDK or there are several apps you can install on the device
-
AIR实际上不是一个交叉编译器 - 您的应用程序会以APK的形式发布,您可以将其发布到Android市场或其他任何地方,但该APK中的某处是由AIR版本的AIR运行时执行的SWF。 当他们说“本地应用程序”时,它们表示用户与它交互的方式与它们与本机应用程序的交互方式相同,但内容本身是一个跨平台的二进制文件,就像桌面AIR(或Java)一样。 该过程与桌面上的AIR完全平行,不同之处在于部署的文件名为.apk而不是.air。 无论如何,没有必要进行推测,因为运行时本身和创建应用程序的工具目前都处于公测阶段 。 ...
-
如果您在Android上开发Air,您可以考虑使用扩展程序为您完成工作! checkout http://myappsnippet.com/qr-code-scanner-native-extension-adobe-air这是一个AS3库,它使用Zxing Java库并扫描QR码并将结果返回给您的AS3项目。 if you are developing Air on Android, you may consider using an extension to do the job for you! ch ...
-
Adobe Flex&Air - 本机安装中的包装Air应用程序(Adobe Flex & Air - packaging Air app in native install)[2023-02-12]
好的,想通了。 必须将extendedDesktop desktop 插入到我的app.xml文件中。 以及到同一个xml文件中。 至少需要Adobe Air 2.0,并且需要在Path中设置ADT。 如果您有兴趣,我列出了我在博客上获取Air to Exe的步骤列表。 更新:Serje Jespers ... -
在模拟器上安装AIR运行时: adb -e install -r Runtime_Emulator_Froyo_20100930.apk 从这个网站: http : //flashsimulations.com/2010/10/19/developing-android-applications-with-adobe-air/ To install the AIR runtime on the emulator: adb -e install -r Runtime_Emulator_Froyo_201009 ...
-
不,Adobe Air中没有卸载事件。 解决方案可以是在每次应用程序退出时执行您想要完成的任何操作。 // make a reference to the NA singleton instance var nativeApplication = NativeApplication.nativeApplication; //add an event listener nativeApplication.addEventListener(Event.EXITING,onExitHandler); func ...
-
有没有办法通过adobe air访问android上的蓝牙(is there a way to access bluetooth on android via adobe air)[2022-10-12]
我不是一名Adobe AIR开发人员,但从我所知的开发富Internet应用程序的运行时开始,这些应用程序应该在目标设备上用完浏览器。 所以默认情况下不应该对访问平台相关的资源和API感兴趣。 即使如此,有一种可能性被称为本地进程API ,这里有一个示例文章 ,可能如果你digg你会发现更多关于它的信息。 创建本地安装程序,允许您使用标准输入和输出启动本地进程并与其进行通信。 使用本机进程API,与使用Java™和.NET构建的本机库以及grep等本机应用程序进行通信以进行文件搜索。 您还可以创建特定于操作 ... -
看看这篇文章 。 可能你没有在打包之前构建项目。 您只需要创建AIR包以重新分发您的应用程序。 Look at this post. Probably you didn't build the project before packaging it. You'll only want to create the AIR package to redistribute your application.
-
愤怒的小鸟只使用Flash作为Facebook版本。 我相信iOS和Android版本将是原生的。 Angry Birds only uses Flash for the Facebook version. I believe iOS and Android versions will be native.
-
使用Adobe AIR Updater时,它仅更新运行时,而不是SDK。 您需要从Adobe单独下载新SDK: http : //helpx.adobe.com/air/kb/archived-air-sdk-version.html When using the Adobe AIR Updater it only updates the runtime, not the SDK. You need to download the new SDK separately from Adobe: http:// ...