You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
853 B
33 lines
853 B
4 months ago
|
gRPC Hello World Example (Android Java)
|
||
|
========================
|
||
|
|
||
|
PREREQUISITES
|
||
|
-------------
|
||
|
- [Java gRPC](https://github.com/grpc/grpc-java)
|
||
|
|
||
|
- [Android Tutorial](https://developer.android.com/training/basics/firstapp/index.html) if you're new to Android development
|
||
|
|
||
|
- [gRPC Java Android Quick Start Guide](https://grpc.io/docs/quickstart/android.html)
|
||
|
|
||
|
- We only have Android gRPC client in this example. Please follow examples in other languages to build and run a gRPC server.
|
||
|
|
||
|
INSTALL
|
||
|
-------
|
||
|
|
||
|
1. (Only for non-released versions) Install gRPC Java
|
||
|
```sh
|
||
|
$ cd ../..
|
||
|
$ ./gradlew install -PskipCodegen=true
|
||
|
$ cd examples/android
|
||
|
```
|
||
|
|
||
|
2. Install the app
|
||
|
```sh
|
||
|
$ cd helloworld # or "cd routeguide"
|
||
|
$ ./gradlew installDebug
|
||
|
```
|
||
|
|
||
|
Please refer to the
|
||
|
[tutorial](https://grpc.io/docs/tutorials/basic/android.html) on
|
||
|
how to use gRPC in Android programs.
|