Learn Android Development
Android Dev Must-Know Data Format: Protocol Buffers
The Google Advocated Data Format to Serialize Information in Android
Protocol Buffer is not a new data format introduced by Google. I shared about it in 2017, as a way of transferring data payloads other than REST JSON format that we are all familiar with.
In the recent introduction of Jetpack DataStore, a replacement for Android popularly known SharedPreferences, Protocol Buffer is now introduced as a means to store more comprehensive data. The two articles n Android Developer Documentation below mentioned it.
This essentially makes it important for Android Developer to know what is Protocol Buffer.
The documentation above, does point to the Protocol Buffers tutorial. However, I can’t find any guide on how to set that up on Android Studio to generate the Protocol Buffer file.
Hence I’m sharing here to make it easier to follow along when one needs it. But before that….