简体   繁体   English

Android屏幕固定-应用程序更新

[英]Android Screen Pinning - Update of App

Hi i've developed an android app which is screen pinned (using admin receiver). 嗨,我已经开发了一个屏幕固定(使用管理员接收器)的android应用。 I've also put an automatic update check (my own server). 我还放置了自动更新检查(我自己的服务器)。 When there is an update it downloads the APK and starts an intent to install it. 进行更新时,它将下载APK并开始安装它。

As the screen is Screen pinned it will not allow me to start or see the install screen so i can click the install button. 由于屏幕固定在屏幕上,因此不允许我启动或查看安装屏幕,因此我可以单击安装按钮。

Is there anyway round this? 反正这周围吗? The update method works when the screen is not pinned but that defeats the object of me screen pinning. 当屏幕未固定时,update方法有效,但无法达到屏幕固定的目的。

Thanks 谢谢

I've found a work around which isn't ideal but will be fine for now. 我发现周围的工作并不理想,但现在可以了。

Using this post i was able to insert my code to take it out of screen pinning then start the install. 通过这篇文章,我能够插入我的代码以使其脱离屏幕固定,然后开始安装。 Install dialog has two buttons Cancel or Install. “安装”对话框有两个按钮:“取消”或“安装”。 On cancel button the app went back to screen pinning. 在取消按钮上,应用程序返回到屏幕固定。

After install the user has the option to click Done or Open. 安装后,用户可以选择单击“完成”或“打开”。 On done it went back to the Home screen. 完成后,返回到主屏幕。 Fortunately my app is the home screen anyway and when my app loads it goes back to being pinned. 幸运的是,无论如何,我的应用程序都是主屏幕,当我的应用程序加载时,它可以回到固定状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM