Comments (3)
下载的什么apk,是不是该apk不支持 Android 2.3.3 系统了?
from android-auto-update.
不好意思,apk问题,与您的工程无关,我在网上找的测试apk,那个apk很诡异,貌似无法在2.3.3安装,我手动push进去的好像也不行,也是上面那个提示,在高版本则无问题,我没有2.3.3真机可以测试,就暂时不管了。
提几个小建议吧:
①:APP_UPDATE_SERVER_URL 放在UpdateChecker.checkForDialog()传进去会不会好一些?既然都做成lib了,直接可以引用最好,省的还得慢慢翻lib的代码了。
②:调用UpdateChecker.checkForDialog()之后,各种不同情况应该有不同响应。您的代码貌似没有"当前已是最新版本"这类的提示,而且,网络跟服务器问题导致获取不到versionCode,应该也有个回应,不然用户手动按下“检测更新”之后,就石沉大海了,体验不好,当然,启动时候的提示另外考虑。
③:eu.inmite.android.lib.dialogs 只是为了显示dialog?若是的话,可以考虑换一个,现在的开源自定义dialog两三个类就搞定了,没必要那么复杂。或许可以参考安卓自带的dialog改个样式?
④:FragmentActivity 问题。说到dialog了,就顺便说说这个。FragmentActivity参数或许可以考虑移除?我貌似一般都是在Activity或者ActionBarActivity下面写代码,为了一个Update库故意搞个FragmentActivity出来总觉得很别扭。
上面的话,如果您看着不喜欢,就无视吧。我只是觉得既然当前选用了您的库,应该给您提一下我的看法。
from android-auto-update.
谢谢,根据你的建议对代码进行了修改
from android-auto-update.
Related Issues (20)
- silent update HOT 1
- 适配 HOT 1
- Cannot install APK after downloading HOT 2
- CheckUpdateTask.java HttpUtils.get(url)还未出结果,就执行onPostExecute HOT 1
- Whether or not to match android7.0 HOT 1
- 1.1 error
- 在 Android 8.0 API 26上面不能下载,可以更新一下吗? 谢谢 HOT 2
- 坚果手机,通知栏在下载时,总是闪烁
- 安卓小白,求使用方法
- 在Xiaomi 红米note5 android 8.1 api27上报错
- uses or overrides a deprecated API in Android Studio 3.1
- Can u Provide me the full code step by step ?? HOT 3
- download apk file error:Conversion = 'End of String'
- 请问这个链接是怎么搞到的?
- NO
- Can update app without user interaction?
- +7 925 275-65-58
- 这个模块非常nice,支持和fragment太相关,相关的UI也应该用可定制的方式。 HOT 1
- 支持断点续传吗 HOT 1
- json file 一定要支持https嗎? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-auto-update.