xref: /aosp_15_r20/external/grpc-grpc-java/examples/android/README.md (revision e07d83d3ffcef9ecfc9f7f475418ec639ff0e5fe)
1*e07d83d3SAndroid Build Coastguard WorkergRPC Hello World Example (Android Java)
2*e07d83d3SAndroid Build Coastguard Worker========================
3*e07d83d3SAndroid Build Coastguard Worker
4*e07d83d3SAndroid Build Coastguard WorkerPREREQUISITES
5*e07d83d3SAndroid Build Coastguard Worker-------------
6*e07d83d3SAndroid Build Coastguard Worker- [Java gRPC](https://github.com/grpc/grpc-java)
7*e07d83d3SAndroid Build Coastguard Worker
8*e07d83d3SAndroid Build Coastguard Worker- [Android Tutorial](https://developer.android.com/training/basics/firstapp/index.html) if you're new to Android development
9*e07d83d3SAndroid Build Coastguard Worker
10*e07d83d3SAndroid Build Coastguard Worker- [gRPC Java Android Quick Start Guide](https://grpc.io/docs/quickstart/android.html)
11*e07d83d3SAndroid Build Coastguard Worker
12*e07d83d3SAndroid Build Coastguard Worker- We only have Android gRPC client in this example. Please follow examples in other languages to build and run a gRPC server.
13*e07d83d3SAndroid Build Coastguard Worker
14*e07d83d3SAndroid Build Coastguard WorkerINSTALL
15*e07d83d3SAndroid Build Coastguard Worker-------
16*e07d83d3SAndroid Build Coastguard Worker
17*e07d83d3SAndroid Build Coastguard Worker1. **[Install gRPC Java library SNAPSHOT locally, including code generation plugin](../../COMPILING.md) (Only need this step for non-released versions, e.g. master HEAD).**
18*e07d83d3SAndroid Build Coastguard Worker
19*e07d83d3SAndroid Build Coastguard Worker2. Install the app
20*e07d83d3SAndroid Build Coastguard Worker```sh
21*e07d83d3SAndroid Build Coastguard Worker$ cd helloworld  # or "cd routeguide"
22*e07d83d3SAndroid Build Coastguard Worker$ ../../gradlew installDebug
23*e07d83d3SAndroid Build Coastguard Worker```
24*e07d83d3SAndroid Build Coastguard Worker
25*e07d83d3SAndroid Build Coastguard WorkerPlease refer to the
26*e07d83d3SAndroid Build Coastguard Worker[tutorial](https://grpc.io/docs/tutorials/basic/android.html) on
27*e07d83d3SAndroid Build Coastguard Workerhow to use gRPC in Android programs.
28