I am developing an android app using phonegap in eclipse.
All the files for this app will be pushed by Sharepoint-2013 on a webservice.
The app should consume this web service and display the updated data(for example, display updated information like news and notices using .html file when an updated .xml file is pushed on the webservice)
So my Question 1 is How exactly to consume this web service using phonegap in eclipse?
Also the app will have a search feature where the user enters a search string in a textfield.
Using this input the app should search the database using the webservice and display results on the app.
So my Question 2 is How to do this? Do I need some backend programming to achieve this? If yes, please guide how to go about it.
Thank you.
PS- I am relatively new to programming and I only know HTML, CSS, JAVASCRIPT and jQuery.
Connect to sharepoint using Javascript and SPServices.
http://spservices.codeplex.com/
There is an active forum with information at that site too!
Related
I'm trying to develop an offline android app using simple html, css and javascript. I use website2apk software to convert the local html files to a standalone apk file.
My app contains a tariff of some random products. What i need is to notify (in-app notification) my app user if there is any update to the app.
For example, when user get connected to internet the app should automatically check for updates and if there is any update available, a warning should appear on top of the home page which says "New Update Available" which will be linked to mysite.com/newversion.apk .
Can someone suggest me what to do for this?. I can only depend Webview and pure javascript, which means no jquery.
I'm sorry for my bad English. Thanks in advance.
The site which hosts your apk should have an api so you can check from your app if there is any newer version available.
A possible solution would be to add a file (for example a json file) which contains the actual version of your app. Then you can make a web request in your app to get the file data.
Example:
get 'http://www.yourwebsite.com/appversion.json'
Hello Everyone and thanks for taking the time to answer my question!
I want to create a simple app to display up to date information to our client. The App should check the latest "data" on the server every time the aplication start and download it to the client. That way the app will be able to use that "data" to show the information.
Does anyone know how I can do that with only JavaScript or maybe a JSON file and HTML5, or do you have any suggestion the best way to do something like that?
Thank you in advance!
You can generate JSON on yor server and parse that on the mobile device to display the data.
It's generally better to use native code instead of wrapping a HTML Application into your Android App. That way you can also use Google Material Design.
Assuming you don't want to write a separate native app for both Android and IOS, you could create a single mobile application using PhoneGap that is just a single HTML page with Javascript that does an XHR call to your server when it loads and stores the response JSON locally. PhoneGap allows you to compile versions for IOS and Android from a single codebase.
With PhoneGap there is a handler that gets called when the app loads that you can use:
function onDeviceReady() {
$.getJSON("http://yourserver/yourfile.json", function( data ) {
//do whatever you want with the data to store it
})
}
I am new to HTML5/JS for Android. I was wondering if there is a way of pulling data from external sources (Just like simple html dom OR curl for PHP). Am trying to build an app which need to pull the news from other sources (like BBC etc).
I'll appreciate any idea, link,any available open source project.
Big Thanks.
I've just created the required HTML5 Mobile web pages(including the CSS3 and javascript pages). I've got the apk file from build.phonegap.com as well.
But I want it to be dynamic i.e I should be able to add content from my laptop.
I've searched a lot but I'm unable to get the right info on doing this.
I just want to be adding simple text paragraphs from my local server(laptop) to the app on the go. What do I do ?
Sound like you need to set up some type of json / sql web service.
Use your machine's ip to do this.
Suppose your laptop ip is 192.168.1.1
Then from your application just use
http://192.168.1.1/your_appliction/webpage
replace http://localhost/ to http://10.0.2.2/
EDIT:
Treat your laptop as remote server and access the files in it as you normally do in website building.
From another post I think might help...
1- if you are building the whole site from scratch: You can create your site by any CMS like dotNetNuke or joomla which will allow you to login and edit what you want
2- if you are building just this page from scratch : You can build your page with online-editing in mind, in this case I recommend to build two pages one for for viewing content and the other for online-editing you can use any HTML-Editor control like FCKEditor
3- if you are dealing with already built page : it will be easier to build administration page which you can upload the new version of the content page to it, and the administration page take care of replacing the content page
Or maybe even the knockout js plugin could be something to look into http://jsfiddle.net/rniemeyer/LkqTU/
I am fairly new to the development world. I need to built an app writing javascript on Titanium that should run on iOS as well as Android using a single codebase. I am currently targeting iPhones at the moment. The app is about a shop that is into selling traditional clothes and letting interested people know about the collection that they have. Any idea about the architecture that i should decide. Since it is quite logical that the user will update his collection of clothing frequently how should i go about it? Should i give him the client application that will run on his pc that he will make use of to update his changes? Will Appstore accept such apps? Any other points i need to know as i need to start the development asap.
I think the best solution will be an App with Web as backend. Means you can put the data in Web, and your app used particular URL's for fetching the required data in the form of XML and JSON.
Your app will parse the data and display it on the view.
If there is new images in the server, your app will download it to the iOS device.
Another option is an app which deals with HTML pages. Means you need to display the page on a web view. If you need to update the data, you can update it on the server. Also it can be of two type
Your app will load the page from remote server, using the url
Your app will download the page to iOS device and display it from there, until a new change occurs.
If you are interested in HTML and CSS, PhoneGap is another cross platform, that can also help you.
for rapid devlopment you can use python django... in your case you can use Django-tastypie for backend will be good choice.since using django you can develop it in quick time and the tastypie has api services which can used easily for retrieval and sending data
you can go through this
http://django-tastypie.readthedocs.org/en/latest/