A simple Android app demonstrating how to use gRPC in Kotlin to call both:
- Unary method:
SayHello - Server-streaming method:
LotsOfReplies
- Connects to public gRPC server grpcb.in
- Calls
SayHello()and receives a single message - Calls
LotsOfReplies()and receives a streamed response - Built with Kotlin, gRPC, and Protocol Buffers
- Uses coroutines for background calls
- Kotlin (Android)
- gRPC Java
- Protobuf
- Coroutines
- XML Layout (Button + TextViews)
- Clone this repo
- Open in Android Studio
- Sync Gradle & Rebuild
- Tap the Call gRPC button to test responses
HelloService/SayHelloโ UnaryHelloService/LotsOfRepliesโ Server streaming
Md Shihab Uddin โ LinkedIn