I developed an application on Android which take user informations(SignUp) and these informations are inserted an db file like .db .After that , I made LogIn in same application , which takes information about user from .db file and decides LogIn is allright or not. Thus far , everything is allright. However as you know this application is local.I want to connect web server because when I set up my app to another phone I want to take information.Can I set up web server in my own computer to try is my app working ? How can I do that on my own computer ?
You have to configure a local server and an api to make it work.
Use any webserver, XAMP,LAMP,tomcat,ect. create a data base using the phpMyadmin from your browser and also a user name to use by your application.
Use the URL like localhost/myfolder/../api.php to get the api which interacts to our application.
for interaction with the api , you can use http post.
Use this:
Xampp include apache-webserver, mysql server, php.
http://sourceforge.net/projects/xampp/
Related
The web is full of content for connecting MySQL within your 'own' android app, BUT BEING NOT A APP DEVELOPER, I DON'T OWN ANY APP.
I want to add data inside MySql database through an Android phone, I can use any android app that can do so. I don't want to access any data but only write it.
Reason- I've got a website currently being operated by CPanel. I need to fetch new data all the time, reason searching a handy Android app and finding ways. Maybe android app of Cpanel can work, idk.
What've I researched- It's possible on desktop: https://www.inmotionhosting.com/support/website/databases/setting-up-a-remote-mysql-connection-in-cpanel
I am a newbie in android and working on an app. I will be using a database on a server but meanwhile I have created a database on xampp and followed this link to connect my app with the database. I am trying to register a user and store his details into my db. I have created 3 files in xampp/htdocs folder: Config.php , DbConnect.php and new_user.php to add a new user into the database.
I am using the
url_create_product = "http://localhost/Signup_api/new_user.php"
where Signup_api is my folder in xampp/htdocs.
I have also created a JSONParser.java file in my src folder along with main activity.
But the app shows "Creating product.." message for a few minutes and then stops.
Has anyone tried to connect android app to xampp before? Please share your experience. Is it necessary to use wamp?
use ip address instead of localhost ... Example http://locahost/xxxx/index.php will be http://192.x.x.x/..../index.php. Test on android browser it can access or not first.
I'm making a native android app with has some user data that I want to be stored in a database.
I'm planning to use Heroku to host it. The app should be able to retrieve it and overwrite it.
Right now, I am very confused as to how to start working on it.
There are three parts:
1)writing the actual database: right now I'm using SQlite database browser. I have created a simple table database. I have no clue how to deploy this to Heroku...
2)writing a REST API to communicate with android app on device: I gather that I should also deploy this to Heroku?
3)Connecting with the device: ??? I have no clue how this works... do I write a REST API in my native android app too?
Very confused! thanks for reading.
You should follow these steps as per my knowledge:
The database that you create should be for the device(the one that you have created using sqlitebrowser.
Create a separate database at the server side and create an api that'll perform CRUD operations using an xml or json file to reflect the data in it in the database at server
whatever operations you perform you can do them in the local database and later after checking the internet connection write the edited valueds in xml or json format and send it to your server where it'll be synced with the server database.
I am developing an android application in which i want to use JAX-WS. The idea is to pull data from a mysql database that i will set up on a server (currently a wordpress website is hosted on that server location). What i want is for my android application to pull some data out of this database that i have set up on the server machine. Will i be needed to write a web app on the server side. How to go about this? I do not properly understand what will be needed for this process and how to set it up. Please help. Is there any step by step tutorial that i can follow?
This is a great tutorial and startup:
http://www.vogella.com/articles/REST/article.html
I've been using the same setup as you want to and it works great. The tutorial only goes through the webservice and it's content, then you will have to add database connections to it
So I want to communicate with an OracleDB through my Android app. Allowing users to update the tables in the DB from their mobile phone. Currently this application is running in desktop form using a JSP file. I want to transition this JSP file to work with Android. I've read I could connect directly to the OracleDB although this is not generally acceptable for obvious security reasons. My question is could I use the existing JSP file with android and interact with the server through that? How would I make a GET request to the JSP file so I can call upon certain info to be downloaded from server and populate fields in my app? Thank you.
Honestly, I'd drop the JSP and look at a Web Service to the database through the Apex Listener.
Examples here and here