Hi there!

I'm just finishing up a project that did exactly that.  Ultimately you
want to build your web application in php and mySQL, then have the
android send data to a page on your website that's written in php to
accept post or get requests. The get method is easier to treat than
the post method, so I found that if you just want to stuff some data
(like strings or numeric info like lat/long) it's better to send
android to a page written in php with those values attached to the
URL.

Ie:
String valueIWantToStore = "foo"
String URLString = "mysite.com/page.php?value-to-store=" +
valueIWantToStore
URL theURL = new URL(URL String)

There's a bit more to it than that, but I'm typing this on my android,
so I can't copy/paste the code right now.

Of course, use post method for text blobs, or if you're uploading a
file like a photo or something, and you want to associate a matching
filename in the db.

Finally, check out w3schools.com for great php tutorials if you're
just getting started! Best of luck!

Harlo Holmes / Lovers v. Haters

On Dec 4, 10:17 pm, hightechartist1 <[email protected]> wrote:
> Hi,
>
> I'm new to develop an Android application to connect to a database on
> my website.
>
> Which languages that would be the best to develop in database on my
> live website for Android application? And what languages that I should
> build a website that would be easy for Android app to POST data into
> that website database?
>
> I need to know how to build Android app to connect database on my live
> website but I don't want to have localhost database. Does anybody know
> of a link to an example/tutorial or you could provide an exmaple in
> which this kind of operation is performed? I would be happy to know
> about it.
>
> Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to