i am working for an app(survey App) i need to fill an activity with questions and types of answer(choices, edittext,etc) the questions are in a database in a server(apache-mysql) with web services i get and i can display in an Activity but with the answers i have a problem i call an asynctask but it's display the answer in disorder at activity. I dont know if is the right way is correct using multiples asynctask(to get data of database of some tables).

我正在为一个应用程序(调查应用程序)工作我需要填写一个活动的问题和类型的答案(选择,编辑文本等)问题是在服务器(apache-mysql)中的数据库与Web服务我得到和我可以显示在一个活动,但有答案我有一个问题,我称之为asynctask但它显示在活动无序的答案。我不知道使用multiples asynctask(获取某些表的数据库的数据)是否正确的方法是正确的。

Please help me i need to correct this in two days

请帮助我,我需要在两天内纠正这个问题

thank you for all

感谢你所做的一切

1 个解决方案

#1


0

When you fire off a bunch of asyncTasks they run all at the same time so there is no order. If you want to make multiple calls synchronously youll have to follow the pattern from this thread Pattern to make AsyncTask "procedural"

当您触发一堆asyncTasks时,它们会同时运行,因此没有顺序。如果你想同步进行多个调用,你必须遵循这个线程模式的模式,使AsyncTask“程序化”

更多相关文章

  1. 为什么我的Android应用程序偶尔可以非常快地耗尽电池?
  2. 如何在android 5.0(L)中运行应用程序活动名称?
  3. Android应用程序启动过程上
  4. Java Android套接字连接。错误的IP地址导致应用程序停止响应
  5. Android 为你的应用程序添加快捷方式【优先级高的快捷方式】
  6. 添加脚本到Android应用程序
  7. 如何使用java RESTful Web服务将通知推送到Android应用程序
  8. android 获取正在运行的应用程序列表
  9. 如何开始为Android开发应用程序? [重复]

随机推荐

  1. Python和asyncio:封闭的命名管道始终可供
  2. Linux基础之无线网卡配置连接测试相关操
  3. 人邮社专访刘遄老师:不做技术的搬运工
  4. linux下搭建oracle 12c客户端
  5. linux解决端口号被占用
  6. linux中常用时间和字符串之间相互转化
  7. Linux下CPU显示信息解释
  8. Git: 合并几个commit为一个commit
  9. Ubuntu 12.04安装Bochs 2.6.2, 调试linux
  10. 如果后台的SVN服务器IP地址更改了,如何修