English 中文(简体)
Android,关于储存临时数据的建议
原标题:Android, suggestions on storing temporary data

一项要求将ZXing条条码改为 but子推进器的申请,经过扫描,显示你的代码,而且你可以拿出一定数额(你想从该产品订购多少),然后由你来扫描...... 我需要储存这一数据。 我的主要窗口是扫描子,即有一份显示扫描清单,所有扫描物品加每一件。 并且将有一个寄托子,通过蓝色托布向PC发送该名单。 这份清单在用地国或后方钥匙关闭申请之后,需要销毁,因此,如果再次提出申请,就有一个新的清单。 首先,我的想法是,在使用Kalkite时,但我的花招希望有一个简单的方案,没有干.。 我只需要一些关于储存、数据等的想法。 就像一个阵列清单一样,但我也知道如何处理这种储存的床铺、编辑或删除等等。 或者将其直接保留到CSV档案中? 任何想法都值得欢迎。

谢谢。

最佳回答
  1. create a Bean class say Product which contains the attributes which you want to display on your list view.
  2. Take a ArrayList
  3. store the bean objects in arraylist and finally iterate it to do your calculations.
  4. To get the CSV, you can call the to string on the instance of arraylist.
问题回答

海事组织使用独角兽器是你的最佳选择,但这不会增加贵方的复杂程度。 虽然你真的不想使用,但。 共有项目是存储数据的更简单的信息预报。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签