Similar to devices running on the Android platform, apps on Go devices should still be performant for end-users. There are ways to minimize inefficient uses of resources, such as CPU, memory, graphics, network, or device battery.
To fix performance issues, you can use the profiling and benchmarking tools, along with the guidance provided for Android at Profile your app performance.
Here are a few key guidelines to keep in mind when profiling and testing your Android (Go edition) app:
- Test on a device that supports Android 8.1 (API level 27) or above. It's important to use real devices (if possible) instead of an emulator, as CPU performance may impact results.
- Monitor your RAM usage through tools like Android Studio Memory Profiler
or Perfetto to keep
track of how much memory is being consumed. Identifying memory leaks and
memory churn can lead to a reduction in app crashes and overall jank.
- To incrementally release memory based on certain system constraints, you
onTrimMemory. This callback allows apps to release resources to help provide a more responsive system overall, and also directly benefits the end-user experience for your app by allowing the system to keep your process alive longer. For more information, see the documentation on
- To incrementally release memory based on certain system constraints, you can implement
- Ensure that you disable all features not supported on Android (Go edition).
Android vitals for Go devices
To view Android vitals statistics for your apps running on Android (Go edition) devices, navigate to the Google Play Console and set the following filters and device configurations:
- Device type: Android Go
- Android version: 8.1 & above
- RAM: 2GB (as of Android 13 (API level 33) and higher). For a full list of device and hardware specifications, see Minimum hardware specifications.
To view any apps running specifically on Android (Go edition) devices, you can apply the Android Go filter in the Device Catalog as shown in Figure 2.