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

Apps Need at way to communicate with server

Discussion in 'Android Development' started by glypher, Jan 15, 2010.

  1. glypher

    glypher Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 15, 2010

    Jan 15, 2010
    1
    0
    5
    Hi

    I have a server that i want to communicate with, over wifi. My HTC hero(Client) vill only work as a user interface. I need to trigger som methods on the server when I am pressing diffrent gui buttons on the android.

    Witch way is the best to solve this?


    On the server I have a glassfish service if that is to any help.

    Any help is appreciated
     

    Advertisement

  2. JoshKraker

    JoshKraker Newbie
    Rank:
    None
    Points:
    15
    Posts:
    21
    Joined:
    Dec 3, 2009

    Dec 3, 2009
    21
    0
    15
    Software Engineer, AmTrust Financial Services Inc.
    Bath, OH, USA
    The way I've always done this is to make a web page that I call using HttpURLConnection(). In the web page code-behind, I do whatever I need to in the begin request handler.
     

Share This Page

Loading...