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

Apps Client-server communication

Discussion in 'Android Development' started by okrujko, Dec 19, 2012.

  1. okrujko

    okrujko Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Dec 18, 2012

    Dec 18, 2012
    2
    0
    5
    Hi, this is my firt post here, so I want to thanks for this amazing community.
    I'm going to make an application for meteor viewers and the goal is, to send soma data from android device to PC through the wifi without router. So on PC will be made a Hotspot and one or more devices can connect to it. Is there any application and/or server on PC or both to make this communication? Or what's the way how to do that? What's protocol of communication? How to find what I need?
    Thanks in advance :)
     

    Advertisement

  2. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Easiest way is to just use the ServerSocket class in a Java application on the PC and in the Android client app, use the Socket class.

    You'll need to create a java application on your PC that listens for connection requests in order for this to work. You can use another programming language, but the implementation will be slightly different.
     
  3. okrujko

    okrujko Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Dec 18, 2012

    Dec 18, 2012
    2
    0
    5
    thanks, but i'm not good coder, doesn't exists some less programming solution? Isn't exists some done app for comunication between smartphone and PC through wifi, which in Android listens to another app, send the data through wifi to server on PC and that server send the data to new app on PC? Or I'm imaginig that too simply?
     
  4. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Nope. Its too specific of a problem.
     

Share This Page

Loading...