dousou1967 2013-01-16 01:25
浏览 26
已采纳

在显示数据的活动中管理多个asynctask(Survey App)?

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).

Please help me i need to correct this in two days

thank you for all

  • 写回答

1条回答 默认 最新

  • dream890110 2013-01-16 01:40
    关注

    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"

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度