Android应用程序工作太慢。 [英] Android application working too slow.

查看:110
本文介绍了Android应用程序工作太慢。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是android developer.I开发了一个应用程序。在该应用程序中,每个数据都来自SQL服务器,但由于这一点,我的应用程序变得太慢。怎么处理这个?请帮我。提前谢谢你。



我尝试了什么:



什么我试试这个?请帮忙。我不知道该怎么办

Hello everyone,
I am android developer.I developed one application . in that application every data comes from SQL server but because of that my application is getting too slow. how to handle this? please help me. Thank u in advance.

What I have tried:

What i try for this ? please help. i don't know what to do

推荐答案

正如@ CHill60所说,我们很难让你知道如何解决这个问题,因为我们不熟悉根据您的要求,架构。您可以将几个问题视为解决方案:

1.分页。在较小的块中拆分数据并在用户请求时发送下一个块。用户请求的示例可以是向下滚动或向上滚动,也可以在Android设备中缓存数据。

2.正如我之前建议的那样,可以在服务器端进行繁重的处理。

As @CHill60 said, it is difficult for us to give you idea how to solve this problem, since we are not familiar with your requirement, architecture. You can consider few issues as solution:
1. Paging. Splitting data in smaller chunk and send next chunk when user request. Example of user request can be 'scrolling down' or 'scrolling up', also caching up data in Android device.
2. As I have suggested before do heavy processing can be done in server side.
---------------------      --------------------      --------------------
|                   |      |                  |      |                  |
|  Data tier        |-----\|  Application     |-----\|  Presentation    |
|                   |-----/|  tier            |-----/|  tier            |
|___________________|      |__________________|      |__________________|



请查看详细描述的链接:三层架构 - ManagementMania.com [ ^ ]

3.重新定义和优化您的移动应用程序绝对必要的内容。


Please take a look at the link that well describe this: Three-tier architecture - ManagementMania.com[^]
3. Redefine and optimize what is absolutely necessary for your mobile application.


这篇关于Android应用程序工作太慢。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆