1. Check out our companion app, Forums for Android! Download from Google Play

Client-server communication

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

  1. okrujko

    okrujko New Member
    Thread Starter
    5

    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 Well-Known Member
    163

    Jul 13, 2010
    1,934
    458
    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 New Member
    Thread Starter
    5

    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 Well-Known Member
    163

    Jul 13, 2010
    1,934
    458
    163
    Male
    Nope. Its too specific of a problem.
     

Share This Page

Loading...