Sending RSS feed to phpMyAdmin - android

I'm creating an Android application that requires the following:
Data from RSS feed gets sent to phpMyAdmin each day
Android app goes to phpMyAdmin and gets data from table containing RSS data
App makes a decision and does other processing based off the data
The goal is to get data from a website to the database, for the app to use.
I created an RSS feed from the following site http://www.feed43.com
Now that I have my feed set up, I need to parse and send it to the table in phpMyAdmin. The thing is, how do I get the data from the feed to phpMyAdmin? After looking around on Google I've hit a lot of dead ends.
Does anyone have experience with this, or can recommend some useful pointers? Please help.

Why would phpMyAdmin have anything to do with this? phpMyAdmin is just a web interface for MySQL.
What you actually need is interfacing with the DBMS using SQL statements.

Related

how to make an android app that downloads dynamic forms from mysql database and uploading them the record after filling them?

im making an android-based data collection app similar to ODKcollect as a college project and im not that good so..
1-how to make a web service and connect my app to mysql database and which language is better for a web-service (PS:my data maycontain images)
2-how to make dynamic form templates then retrieving them from database and making them in the android app.
You can use php for that, You can write a php script that retrieve values from Mysql Database and then decode them to JSON and parse them to the android app. and another script to make the vice-versa Take a JSON response from your app and insert it into the Database.
There was a course in udemy that achieves such pattern you might want to check it

How to use online database (specially on byethost7.com) in android app for inserting information?

I am making an android project which inserts information into mysql database via php code. I am able to do so on my local server (using xampp). I have taken a free webhosting byethost7.com domain http://hpisys.byethost7.com for using my database and php file from that server. I am able to open php page on internet and insert the information into the online database server. But via android app I am not able to insert information using the same php code. Please help me out of this.
If you are also using this data in a web project I would set up a RESTful service and get the data that way. If not I would use something like Firebase instead, as it will be much easier to set up.
Either way you will need to research those yourself. You should be able to find a lot of tutorials.

Real-time communication between app and webpage

I'm trying to figure out how to have a real time data displayed on a webpage through the use of an android app.
For example, users are using android app and are scored (answering questions). My webpage will display the scores in order in real-time.
Iv come to the conclusion to use Redis, but what exactly do i need for this to function? Do i need a web socket where my web page will communicate with. This socket could be python where it accesses the database and then responds with the scores in order?
Im struggling to find out how exactly this would work as this is new to me. What exactly should i be looking for (terminology etc)?
Thanks
One approach might be:
set up a database on a server on the internet
program your app to save data to that remote database
set up a webservice
program the webservice to read data from the database and serve it as an html page
For extra credit
implement a REST style API which retrieves and serves data from the database
create an ajax webpage which uses the API to fetch and display data (so you don't have to refresh the page constantly)

Updating a SQL database on an Android app with data from an SQL database on a server

I need some help, my app created a database on creation at the minute.
What I want is to get the information in a database on a server or PC and load it into my app.
It just needs to be from server to app, not back again.
I have no idea how I would do this, does anyone have any ideas?
first, I should say that your question is so wide. It contains alot of technologies.
So, I'll give you a breif walk through here. you should figure out the rest on your own. and then, you can come back and ask more specific questions.
That said, here is the path you should take:
On the server, implement a REST API that respond to the caller with the data in the server database.
example: http://your.server.com/api/somedata
calling this url with GET method should return the data you want in JSON format.
from your android application, call this url and save the response in a String.
parse the JSON String ( you can use gson ).
save the parsed data to your local database.
If you are the one developing the server api, then this book is a recommended reading:
RESTful Web Services
Update
Say you have a table in your server database called (TABLE) with the columns COL_1, COL_2, COL_3.
You could implement a php page called 'TABLE.php' that return the following:
{
"items": [
{"COL_1": "value_1", "COL_2": "value_2", "COL_3": "value_3"},
{"COL_1": "value_2", "COL_2": "value_3", "COL_3": "value_4"},
{"COL_1": "value_4", "COL_2": "value_5", "COL_3": "value_6"},
...
]
}
In your android application call http://your.server.com/api/TABLE.php page with GET method, parse the JSON returned (above) and save it to your local database.
You can do this for each database table on your server, until you have all your data saved locally in your android application.
This probably wont be the best design decision, but considering your knowledge about the topics, this could be a fair starting point.
Using HttpClient you can set things up to execute a POST to some servlet or similar app on the server. That app needs to then send data back to your Android app which is waiting for a response from the server. Then your app can parse the data and stuff it's own database.

Cannot populate Spinner with data from remote server database

I am trying to figure out how to populate a Spinner (eventually a whole form of spinners) with data taken from a remote MySQL database. I have read hundreds of examples and tried to replicate them all but to no avail.
I have been working with this example from http://www.mickyjay.co.uk/blog/?p=679
I was never able to get it to work but it seems the most promising out of the lot.
QUESTIONS:
1) Do I need to use a JDBC bridge to connect to the server ? (I was reading that Android does not come with a library to connect to a remote server).
2) I am not looking for someone to do this for me. If anyone has any links to resources that are CLEAR and well documented. I would very much appreciate it.
Since you have MySql database it's good to use PHP to connect to database and send result back to android using JSON response. Android and PHP both support JSON. You can then read JSON and process data as you want in android side. You use HTTP request to run php script. Take a look at this tutorail that shows how to use android, PHP and MySql all together http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/

Categories

Resources