Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Android and the fly likes Writing to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Writing to database" Watch "Writing to database" New topic
Author

Writing to database

Andy Joness
Greenhorn

Joined: Sep 15, 2009
Posts: 24
I have an external Sql database which I need to send data to from an app I'm making. All tutorials I've found use php + mysql, which I'm not familiar with. I assume it is possible, however I need some help getting started. Cheers
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Use Webservices.
Android has classes for Post and Get request.
Let me give you some idea..

http://10.0.0.23/login.jsp?username=xyz&password=xyz

This will send data to your server.Handle it your way from server side.
Andy Joness
Greenhorn

Joined: Sep 15, 2009
Posts: 24
I figured it out yesterday. I wrote a web service using .net and I've connected to it using the ksoap package in Android. I then pass in some arguments which form the query and then write to database. Once I realised I had to set the service up as an application with IIS it was all working fine.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
hi andy,

can you please tell how did you consume webservices which are in.NET.
how about sharing some tutorials if any?
evn im trying to develop an app which wants to write into the database
 
Don't get me started about those stupid light bulbs.
 
subject: Writing to database
 
Similar Threads
Please help me to understand these requirements
Connection Issue
synchronized RMI Server Methods ???
What is Connection pool?
what database to use?