Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Find everything you need for the Galaxy S5 and discuss it in our S5 forum!
Have you seen that OnePlus One's awesome camera?? The forum is over here!

test: Reply
 
LinkBack Thread Tools
Old December 19th, 2012, 06:38 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Client-server communication

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

okrujko is offline  
Reply With Quote
sponsored links
Old December 19th, 2012, 08:43 AM   #2 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,936
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 478 Times in 292 Posts
Default

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.
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
jonbonazza is offline  
Reply With Quote
Old January 7th, 2013, 04:04 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
okrujko is offline  
Reply With Quote
Old January 7th, 2013, 11:02 PM   #4 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,936
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 478 Times in 292 Posts
Default

Nope. Its too specific of a problem.
jonbonazza is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:50 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.