- This repository is an android client project that connects to a gRPC server with the given IP address and port. The button press sends a simple Message with header to the server and displays the message received from the server.
Modified template from [quick start]: https://grpc.io/docs/languages/go/quickstart
Follow these setup to run the example:
Set the IP address that the client will connect to:
Physical Device + Local Server:
From the command line:
./gradlew :app:installDebug -PserverUrl=http://YOUR_MACHINE_IP:50051/
OR
From Android Studio / IntelliJ:
Create a
gradle.propertiesfile in your root project directory containing:serverUrl=http://YOUR_MACHINE_IP:50051/
Run the code
Send a message
Message with header is displayed on the server side
Server code: (e.g. golang-server)