HMS Map Kit demo provides an example of intergrating HMS Map Android SDK. Personalizing how your map displays and interacts with your users tailors their experience to them
┬───
│ GC Root: System class
│
├─ android.os.Parcel class
│ Leaking: NO (e↓ is not leaking and a class is never leaking)
│ ↓ static Parcel.mCreators
├─ java.util.HashMap instance
│ Leaking: NO (e↓ is not leaking)
│ ↓ HashMap[key()]
├─ com.huawei.hms.dynamicloader.e instance
│ Leaking: NO (mab↓ is not leaking and A ClassLoader is never leaking)
│ ↓ ClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│ Leaking: NO (mab↓ is not leaking)
│ ↓ Object[1415]
├─ com.huawei.hms.maps.mab class
│ Leaking: NO (a class is never leaking)
│ ↓ static mab.a
│ ~
╰→ com.huawei.hms.maps.sample.MapFunctionsDemoActivity instance
Leaking: YES (ObjectWatcher was watching this because com.huawei.hms.maps.sample.MapFunctionsDemoActivity
received Activity#onDestroy() callback and Activity#mDestroyed is true)
Retaining 927.9 kB in 8278 objects
key = e8a8ff4b-166a-473a-9218-ff492477d59d
watchDurationMillis = 5696
retainedDurationMillis = 692
mApplication instance of android.app.Application
mBase instance of androidx.appcompat.view.ContextThemeWrapper
┬─── │ GC Root: System class │ ├─ android.os.Parcel class │ Leaking: NO (e↓ is not leaking and a class is never leaking) │ ↓ static Parcel.mCreators ├─ java.util.HashMap instance │ Leaking: NO (e↓ is not leaking) │ ↓ HashMap[key()] ├─ com.huawei.hms.dynamicloader.e instance │ Leaking: NO (mab↓ is not leaking and A ClassLoader is never leaking) │ ↓ ClassLoader.runtimeInternalObjects ├─ java.lang.Object[] array │ Leaking: NO (mab↓ is not leaking) │ ↓ Object[1415] ├─ com.huawei.hms.maps.mab class │ Leaking: NO (a class is never leaking) │ ↓ static mab.a │ ~ ╰→ com.huawei.hms.maps.sample.MapFunctionsDemoActivity instance Leaking: YES (ObjectWatcher was watching this because com.huawei.hms.maps.sample.MapFunctionsDemoActivity received Activity#onDestroy() callback and Activity#mDestroyed is true) Retaining 927.9 kB in 8278 objects key = e8a8ff4b-166a-473a-9218-ff492477d59d watchDurationMillis = 5696 retainedDurationMillis = 692 mApplication instance of android.app.Application mBase instance of androidx.appcompat.view.ContextThemeWrapper