I wish to know about how to call webservices in android i had done a lot of serach google and have read several tutorilals but was not able to understand much and manipulate, can anyone suggst any good Tutorial, or provide any Pdf file or any book related to web services so that i can understand it.plz provide easy step by step tutorial for beginners.
Some resources are enlisted below.
SOAP webservices: Example using kSOAP2
http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data
JSON webservices: Example with 4 different parsers
https://github.com/martinadamek/json-android-compare
Related
let me ask my question with an example:
Assume that I have some PHP files for my android app that I put it on 000webhost[dot]com; so, my question is how can I use parse (parseplatform[dot]org) in this situation?
I'm new in backend, so I'm sorry if this question is stupid!
For some reason I can't use back4app, aws, etc.
Don't worry about php language, if it's necessary I can write it in another language. (my backend logic is not complex)
If you need a simple web-site with simple backend logic, I'd do that using Express.js. Since Parse Server is essentially an Express.js middleware, you can use the same process to serve both Parse Server and the web-site.
If you prefer to use a different technology, Parse Platform provides many different sdks (https://parseplatform.org/#sdks) that you can use for many different backend technologies (including PHP), or you can connect directly to the REST (https://docs.parseplatform.org/rest/guide/) or GraphQL (https://docs.parseplatform.org/graphql/guide/) apis using any client.
When I asked this question, I didn’t know what exactly should I search until I found this amazing article. This article opened my mind, the most helpful thing that I found there, was this:
Parse is more flexible. Given the freedom to host Parse on the
server of your choice.
You can choose the self-hosting option and deploy your Parse project
on your selected server, such as Digital Ocean.
And then I found this awesome video on youtube.
Now I can run parse on my own server (vps or cloud).
I know the title of this question may not be clear, but I don’t want to change it, because someone like me doesn’t know the right keyword for research.
Hope this help someone else too.
am new to the android/coding world , i have learned android basics and now i got into networking , i have a somehow clear idea of parsing json data from websites that has an api
so for my learning project i want to implement the whole subscene website in android app in my own way from the search engine to downloading srt files.... so after googling it i came across the jsoup library but online articles and jsoup.org documentation didnt help cuz am new to the whole thing and the concept of elements,classes,tables,nodes .... is confusing for me so :
is there an api for the subscene website ?
do i have to learn html and dom in order to use jsoup ?
is there any beginner friendly tutorial to learn jsoup ?
is there any better way to get real time changing data from websites with no api ?
dont mind my badly asked question cuz am new to asking questions online too
Google it
Absolutely
with no html knowledge? Very unlikely
No
I'd suggest you start with a simpler project :)
I am currently a student of Android.
My aim is to develop Android Apps that talk with different websites and exchange/process/return data.
But I am really not sure what should be starting point.
Coming from a backend development I can put the layout for backend development as follows
a) Understand Relational DB concepts
b) SQL
c) PLSQL
d) Procedures/Functions
e) Solve realworld problems
....etc
Similarly can someone tell me what should be starting point for learning Android integration.
HTTP or Web Services or REST API or JSON/XML or anything else
All these terms are new to me and when I googled/wikied the terms I can (kinda) grasp what they mean but I am not able to see the big picture as to how they fit etc...wrt integrating an app with a website.
TLDR.what should be the starting point for learning Android Integration ?.
PS : If this is a wrong forum, then do let me know which forum to post this on. Thanks !!!
Your question is so general, and there is no clear answer for it, and you are not ready to build a real app unless you can answer it by your own, so you need to know more about each term of the above, then your question will be "what is the best practice?"
You can start from below:
IBM: Using XML and JSON with Android
XML vs JSON Based Web Services: Which is the Best Choice?
XML vs JSON parsing in Android
JSON or XML in Android
By the way many developers prefere JSON, because JSON is simpler than XML/SOAP and has less overhead, and payload will be smaller than the XML representation, beside Android has JSON parseing APIs.
I want to make an application in android where i want to pull the Blog of the site (http://dekora.com/blog/) which is in wordpress.
But i don't have any idea how to pull the blogs from wordpress, is there any api or source code available. i have gone through wordpress website and tried to understand the api of Android but dint get it well.
So i am just wondering to find some proper clue. Can any body help what approach should i take
to pull the blogs from wordpress.
Why not use the RSS-Feed? Its a standard-api an there is ton of information about this. The URL of the feed is http://dekora.com/blog/?feed=rss2 and IBM got a nice tutorial on parsing and using RSS on its homepage
Wordpress-Java library can be useful for you :
wordpress-java
Let us know if you try and successfully use it.
Wondering what the differences between REST and JSON APIs are, how you interface with them, and how to go about parsing the results. My goal is to build a small application for my android phone to tell me when the next train will get to the subway station by my house, using the developer API provided by the transit agency.
I'm learning C++ in university, but hope to go about this in Java. I'm sorry if this is more of a discussion question rather than a black and white answer question, but I can't find any information elsewhere.
APIs in Question
Very first thing to mention, JSON is not an API but a data format webservices and programs use to communicate to each other.
Webservices can be of many forms but most popular are REST and SOAP. Webservices give you a way to interact with remote machines and communicate with them.
To read more about Json, visit http://www.json.org/ , http://en.wikipedia.org/wiki/Json
And to read more about Webservices, visit, http://en.wikipedia.org/wiki/Webservices