Android: RPC calls over the internet - android

hi im quite new to android development and am coming from the world of GWT and Remote procedure calls to communicate with a server.
Now i am looking for a way to realize calls on a server over the internet via my android app.
is there a pretty way to realize this?
thanks in advance
Edit: Okay maybe I put my question wrong. I am just looking for a way to send a class object from my server via an appropriate protocol over the internet, so i can use it in my app
can someone please help me?

You can try to use http-dispatch. It is the adapted gwt-dispatch framework which can be used on Android platform. Http-dispatch uses default binary serialization so it works from the box for many types of objects. Currently it is in alpha but you can try http://code.google.com/p/http-dispatch/

Related

Android application interacting with a server

Ok so, I know the question is pretty much google-able and I did google it and found out a few answers ,so I am not asking this question knowing completly nothing.
So, I have an application (Cannot specify much about what it does or is or so...) and I need to get some data from a database.
As far as I know, the Volley is the best way to go ,but I am still looking for more details.
Could anyone tell me which is the best way to go?
NOTE: I am NOT looking for code,I am looking for methods.A name would sufice ,as I can do the digging myself.Eventually links to documentations would be awesome, but again, I can find documentations.I just need to know which is the fastest way and the most optimized.
Based on your comment, it looks like there are two different aspects to your application:
Sending out the HTTP requests from your client- i.e. your android app
Processing and sending the response to these requests on the server side, by setting up a web service
Looks like you have part 1 figured out. Note that, volley is a library, similar to android HTTP library, but optimized for faster networking.
For part 2, unless you're planning to use embedded database like sqlite, you'd need to learn about writing web services to provide database access.
Spring Data JPA is one of the many ways to do it.
I hear Parse is great too, but not free.

How to send a text from one android client to another through server?

Situation:
Let's say i have 2 emulators and I want to send a text from one emulator to another. What is the way to solve this? Can i using .Net web service?
Anythings that can forward your messages from Android client.
So if you don't want to make it to complex, consider to use some kind of RESTful WS for example.
Good luck
For .NET platform, maybe you want to make a quick look on this link link to some blogs

Android Network programming

Where can I learn about network programming in android? I am writing an application which has to communicate over the wifi connection.
To my point of view it's better to read the following sources. In the first there is an example of client and server for android using sockets. I've tried this several times so I know that the approach in this article is working. In the second link you can find links to other resources.
For tutorial on http client, see http://www.vogella.de/articles/AndroidNetworking/article.html
Mostly I have learned from the examples at http://developer.android.com/resources/browser.html?tag=tutorial

Can we communicate client and server using SOAP UI in Android?

provide any related links.
If yes it's fine. If NO why? suggest me.
Not sure what exactly you mean. SOAP UI itself is a windows application. Android of course can communicate with a server using SOAP messages.
I don't want to be rude, but spending a bit more time on the question would help others to be motivated to answer as well make it easier to find the answer you are looking for.

Bluetooth remote control using android

I have an android tablet and have an application installed on it... Now i need to control this application on the tablet through my android device... is there a way to do such thing?
Explore this example project by Google
http://developer.android.com/resources/samples/BluetoothChat/index.html
see how it works and try to implement your programming skill to transform this chat application to your idea...
How ever I am assuming that you are the author of application which you have desire to control.
happy coding.
EDITED:
Logic structure is simple both application should be able to detect bluetooth and paired(connect) with each other for communication. once you have communication instead of sending message(in chat) you send some information via buttons which will execute some methods on tablet...Just a thought... As if in chat application you can update and add messages to your thread...this application will help you to reach goal. Lot of work though!
If you are familiar with Sockets, this shouldn't be a problem for you, because the Bluetooth-connection and communication in Android is very much the same. See the Bluetooth-Tutorial and Googles "Bluetooth-Chat" example.

Categories

Resources