hey thanks Yahel... Could you please suggest me a good/efficient way to communicate with the server. I could think of two options 1) Use http post methods to send data to a php script at the server which would later call the google api's written in another java program (jar)\or use php to use google api's (if its possible) to find nearby restaurants and send the list back to client. 2) Use simple java socket programming. The server has a jar file that supports multi threading and it does the job of finding restaurants and sending the list.
What do you have to say about it. Thanks, Raqeeb On Mar 20, 4:56 am, Yahel <[email protected]> wrote: > Hi raqz, > > It sounds like the perfect job for a web service. The gps coordinate > are sent to the server which computes the complete list of restaurant > nearby. > > Pros : > - You can make your app available on any platform(iphone, facebook > app) without a need to change the server side code. > - You don't use any resources on the phone either CPU or memory(no > databases), good for users. > - No need for synching overhead and no chance of out of synch data > > Cons : > - Can't work when the mobile is offline > - You are not using the resources of the individual phones. If your > app is successful, the load on your server could get quite high > > Obviously, the first con, isn't really a con, that would be a very > good problem to have if you know you are going to monetize your app :D > > Maybe you can use some caching techniques to relieve some of the load > on the server. > For example if someone sends gps coordinate in San Francisco, download > a zip file of all the restaurants there. > And then use that local database for a few days or so before > resynching. > That removes one of the pros in my list, but since it also remove the > first con, that doesn't count :D > > Yahel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

