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 :)
Related
I'm a noob self learning programmer and i'm wondering how can i make an application for mobile. As an example, so you can understand what i need (and easier for me to explain), think of an application where the user can store products and related information by filling forms (an icon, price, name, features, weight...) and then consult stored information.
For me it looks like the best way to create it is by using web related tools like HTML, CSS, MySQL...
The problem i find is that i don't know how to create a web shaped application and then turn it into a mobile app.
I'm sorry if i didn't explain the best way, but hope you guys get my point are able to put me in the right way!
Thanks a lot in advance!!
P.S. Beyond HTML and CSS and a little MySQL i have basic knowledge of JS, C++ and C#.
As a newbie, it's better to do the correct choice at the beginning.
For Android development, the entry point is the developer portal: https://developer.android.com/
The app you've thinking of is quite classic: You won't have troubles to find some tutorials on the web.
You can do that with either SQLite or Firebase Realtime Database, you choose.
I guess, the easiest way will be creating responsive website and then include that in your app as a WebView. However, this might give users the feel that you're just loading the website in a WebView if you don't include some features like, maybe, push notifications, update checker, theme changer, something like that.
You can alos find a lot of easy tutorials and templates to build a WebView app.
P.S.: I myself have made an Android app of my friend's blog by first making a website and then using WebViews.
I'm new to programming and I would like to display data from this site into my activity. Simple textviews with name and numbers nothing more. The problem is I don't know how to get those info from this site. When I open it with Firefox and try to inspect code, I can't find any variables from which it could be read, if I'm saying this correct!? :)
Can someone point me to right direction???
This is the web page:
http://parking-servis.co.rs/eng/where-to-park/
Like the other user mentioned this is too broad, but I can give you a few pointers and things you can start reading up on.
First: You want to get info from a website.
This can be easily done via web scraping. What this means is you read through the HTML code of a webpage and extract information from it. Libraries such as Jsoup will help you a lot here. They have great documentation so that should get you going. You can just hover over any HTML element to get its related information when the element is highlighted.
Second:You need to get this information to your App.
Well you are in luck because Jsoup has its own android port and you can simply import the library to your project and go ahead from there. You can write a simple flow that scrapes the website every day or e erytime the app is opened. You can pass net requests via something called AsysncTask.
So the library to start looking into is Jsoup and you should also read up on AsyncTask. Besides these, there are other links you might be interested in :
Web Parsing with JSoup
JSoup on Android
AsyncTask Basic Tutorial
This is a fairly complicated task, if the website doesn't provide an API you will have to web scrape to get the information off of that page. as for getting the data into android studio you will have to research how to use GET / POST calls to (hopefully) an API with that information.
Not much else I can do as this question is very broad, but hope it has helped.
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 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
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.