1. Download our Official Android App: Forums for Android!

Apps Send data to a web site - how to?

Discussion in 'Android Development' started by wanting2learn, Mar 8, 2011.

  1. wanting2learn

    wanting2learn Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    3
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    3
    0
    25
    I need to create a small app that simply sends some data (XML, txt, whatever) to a web site.

    I have not created the web site yet. This is just a proof of concept.
    Are there any tutorials on how to do this??

    My final application will let only users who have paid a subscription to my website upload data.

    Many thanks
     

    Advertisement

  2. Tapirboy

    Tapirboy Member
    Rank:
    None
    Points:
    15
    Posts:
    42
    Joined:
    Feb 10, 2011

    You guess you could use a webview and upload as you would with a normal browser.
     
  3. PSkeptic

    PSkeptic Android Expert
    Rank:
    None
    Points:
    78
    Posts:
    905
    Joined:
    Jan 10, 2011

    Jan 10, 2011
    905
    97
    78
    IT Project Manager
    Buffalo, NY USA
    How much data? A key?

    If the amount is small, you can use url vars in PHP, ie:

    Code (Text):
    1. http://example.com/application.php?client_key=1233AFEE23?client_locationX=48.07754?client_locationY=77.01453
    Anything directly following the '?' is a variable name, followed by the value.

    If it's more than a couple of variable's worth, postdata can be used. Just send it using the post method to your app's URL, and the server side would be responsible for pulling the vars out it needs.
     

Share This Page

Loading...