Hi i new to android development i want to develop an android app for website which does not have JSON or XML API for providing data is it possible to get the data from the website as it updates to my android app please
Help even the slightest hint will be appreciated.i have Googled this but i didn't got proper answer
Yes, it is possible. You will need the following components:
The website won't notify you when something changes. Thus, you have to poll the website frequently to find out if something changed.
Since the website offers no API, you will have to download the HTML and parse it.
Using these keywords in your search, you should find lots of material on StackOverflow, e.g.
Android Polling from a Server periodically
How can I parse webpage content in Android
If you want to make an app for a website, then you will have to get that website and parse it and display the results however you want. A good example for this can be found under the Spring for Android's Github page
If the website you intend to parse is already available in the Spring social package, then the above examples will already provide you with the solution (or with something very close to it). But keep in mind that you can also do the same thing without Spring but you will have to parse the data manually.
Related
I have just created a website based on prestahsop template (PHP + SMARTY), and I have made it work online.
Now I want to migrate the project on mobiles. I searched for several means of doing that, finally I am about to use PhoneGap for my solution.
But I have no idea if that can encapsulate the whole project on the mobile platform, and ideally be launched on Apple store. If not, I would like to get some advice to make changes.
Anyone having former experience can come to help? Thanks so much!
In addition to andre3wap response, you can use Prestashop Webservice API to link your application to your website. I've already done this in the past, the tricky part comes when you need to create an order in your Prestashop website from your application. But it's completely doable.
You will have to create an HTML + Javascript application with PhoneGap, that calls Prestashop via Ajax requests. If you want your application to work offline (and only create the order when the customer is back online) you will have to load every products on installation and sync when the app is online.
It's a lot of work.
EDIT related question: How to integrate prestashop with android?
If your web site only consists of HTML pages, yes; PhoneGap will be able to do most of the work(Just upload your HTML pages in a folder to build.phonegap.com for the conversion), there are other methods that can do the conversion, but that one is easier to me. (Read their documentation)
If your web site was created from a server side language, NO, phoneGap will not be able to fully convert it into a full fledged HyBrid App.
It gets very tricky when it comes on to Server Side scripting + phoneGap. What you can do is build html pages, and create "APIs" to load the data in the APP and use JavaScript to parse the data respectfully. (That phoneGap can handle)
You can read this article for an even more detailed explanation:
Usefull Article
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.
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. 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. 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. I think this would be a quick and easy option for you. Link to documentation: 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.
Here is the guide to web view API's https://developer.android.com/guide/webapps/webview.html
I want to know is there any way to check updates of a website regularly?
I am a student. My exam schedules comes in university web site .I don't wanna miss that. So is there any way I can check this details automatically? I am using android and Ubuntu. Please help me. I don't think that the website have rss feed.
The website http://changemon.com/ is one of many website trackers that will send you an email when a website element is changed.
If you prefer a more diy solution, there is always use a scraping tool such as scrapy (python) http://scrapy.org/ and create your own project.
i am still developing android static app in which all the content are static , all the content which is deign by me nothing is taken by website but now
#
i am starting to develop web app that is, all content coming from website .
i searched lot of thing i got only "WebView" in which whole website will show in my WebView .
So there is a Problem, i want to get a specific content from any website like Event images from website and show in my Activity.
Please help me to start web app development.
is there any api ??
Thanks in advance.
#
In my understanding, what you want to create is an Application that will show content from a website, but not using WebView.
For those webs that do not provide an API (your own website, for example), you may want to have a look at JSOUP and give it a try.
For those webs that have API (for example: twitter), you should read its document and try some HTTP request.
You'll need to write APIs which'll allows you to make requests from your android code to the server code. Using these requests you'll be able to fetch data stored on a web server in a friendly format that can be used to display content on your android app.
I see you have clear some concepts, like Web app, browser, events. But remember the Logic from webApp is with javascript, so the Webview download the HTML to the device and if you have activate javascript in the webview thats work fine, remember you have some restriction with the hardware and process with webapps.
But android developer has a tutorial to create web apps.
When you create a native app doesnt mean is static, you can use Json, XML, Rest API, Web services, etc. to comunicate with a web server.
I recommend see how connect android app with external resources and webserver, here is an example.
I have a small wordpress website and I wanted to try to make an Android app out of it. But, I have no idea from where to begin. I found out about App Inventor which makes it real easy to create apps. But, what I still haven't figured out is how to extract data from my website and put it into the app through the App Inventor.
Thanks~
If you want the exact look of your website, you can go ahead with appsgeyser. It automatically creates your app.
You can also try parsing the HTML content of you website and get the data at runtime.
Simply use HTTP GET methods to hit your website url and then retrieve the contents and show it accordingly.