简体   繁体   English

我如何从我的网页添加到我的Android应用程序,而又不每次更新apk?

[英]how can i add from my webpage to my android app with out updating the apk everytime?

hi guys i am constantly updating my website and i want all the stuff i update to appear in my app. 嗨,大家好,我一直在更新我的网站,我希望所有更新的内容都出现在我的应用程序中。 so i don't have to make a new ".apk" update every time i add new stuff to my website. 因此,每次我向网站添加新内容时,我都不必进行新的“ .apk”更新。

would i use some sort of site scraping method? 我会使用某种网站抓取方法吗?

what i would like to do is as new stuff gets added to my website it automatically pushes it to my app in some way 我想做的是,当新内容添加到我的网站时,它会以某种方式自动将其推送到我的应用程序中

could some one at least point me in the right direction as i have only just got my head round setting up my website. 至少有人可以将我指向正确的方向,因为我才刚开始建立我的网站。 please be nice and if u don't think this is worded right I am sorry. 请保持友好,如果您认为这样的措辞不对,对不起。

An idea is to organize all your resource data in a REST web services and both website and Android App to get data from Web Services . 一个想法是在REST Web服务以及网站和Android App中组织所有资源数据,以从Web Services获取数据。 So the data will be kept in one place (one place to do the updates) and be viewed from different platforms in your case a Web site and an Android App. 因此,数据将保存在一个地方(一个地方进行更新),并在您所使用的网站和Android应用程序的不同平台上进行查看。 However this is a very general architectural solution. 但是,这是一个非常通用的体系结构解决方案。

If you add a WebView to your application and point that to your website the application would always fetch the latest version. 如果将WebView添加到您的应用程序并将其指向您的网站,则该应用程序将始终获取最新版本。 I think this would be a quick and easy option for you. 我认为这对您来说是一种快速简便的选择。 Link to documentation: http://developer.android.com/reference/android/webkit/WebView.html 链接到文档: http : //developer.android.com/reference/android/webkit/WebView.html

This would though require an internet connection for the user every time they use the application. 但是,这将要求用户每次使用该应用程序时都需要Internet连接。

Here is the guide to web view API's https://developer.android.com/guide/webapps/webview.html 这是Web视图API的指南https://developer.android.com/guide/webapps/webview.html

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

相关问题 如何将我的Android应用程序打包成.apk? - How can I package my Android app into an .apk? 如何安装Android APK,以便可从Android桌面启动该应用? - How do I install my Android APK so that the app is launchable from my Android desktop? 我如何从我的 Apk 大小知道我的应用程序在上传之前的下载大小? - How can I know my App's download size prior Uploading, from my Apk size? 如何在我的android应用中添加对android 4.4的支持 - How can I add support for android 4.4 in my android app 如何将PHP文件添加到我的Android APK文件? - How do I add PHP files to my android APK file? 如何保护我的 Android 应用程序 APK 的 ..res/raw/ 文件夹中的视频? - How can I protect videos in the ..res/raw/ folder of my Android app's APK? 如何在Google Play中显示我的Android应用APK文件的原始大小? - How can i show my android app apk file original size in google play? Android:当我在Sql Server中将状态更改为false时,如何从应用程序自动注销? - Android : How can i Auto Log out from my app when i change my status to false in Sql server? Android:如何从网络服务器上托管的APK更新我的应用? - Android: How to update my app from apk hosted on webserver? 如何在我的apk上添加SSL证书? - How can I add a SSL certificate on my apk?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM