I'm trying to develop my first Client-Server project using Netbeans, whose task is to take news from various websites and then sending them to an Android App(client).
The Problem is, this is the first time i'm doing something like this. I've studied some examples of Client-Server interactions and I'm decently aware of how to write the code for both entities and then run them in the same machine (localhost).
But I haven't found any clear and simple documentation on the web about how to get data from a website and store it into my server.
I was thinking about creating a local database for the client side in which store all the news every time the user opens the android app and connects to the server, but that's something I think I can work on later.
What should be my first approach
You can have RSS
e.g. Yahoo RSS. Simply download the file to the server. Use XML to parsing for the news and fetch data i.e. Title, Link, date.
Now, If you developing it for android. You have to create Stand-Alone application for it. Which will get the data parse it and display it.
If you want to store daily based news and facilitate user with previous news as well. You should ping Android application to your server and proceed accordingly.
You can store this data into Database (daily) and your client can see when ever he wants.