In A Journey of Migrating to Android Jetpack Compose Part I, I wrote down the steps of how I setup an existing Android project with Jetpack Compose UI framework.

Now I am going to put down the key things that I learnt when rewriting the Settings Screen.

Content in this article:

  • Jetpack Compose works within Fragment
  • Separate User Interactions implementation out from Composable components
  • GPU overdraw

Jetpack Compose within Fragment

Since the whole app is still structured by using Bottom Navigation with several Fragments. I want to keep this architecture until we migrate all the screens to Jetpack Compose successfully.

So the first thing…

Part I: project setup

I am writing down my journey of migrating an existing app (built with traditional Android View system) to an Android Jetpack Compose app. And my plan is to replace the existing screens one by one, and at the same time observe app crash rate and app performance…until a point I want to stop or make it a fully Jetpack Compose Android App.

Be honest to myself is the key of writing this article. (I don’t want to present to like it, just because everyone is talking about Jetpack Compose.)

I will write down the confusion if I feel so, and…

Purpose of this Experiment

Android 11 changes how apps can query and interact with other apps that the user has installed on a device.

I built several apps, and they share data between each other by using Content Provider in each app.

Recently, one of my apps moved to targetSdkVersion 30, and I found that package visibility change in Android 11 makes apps are invisible to each other in some situation.

This experiment is to find out the simplest solution making my apps visible to each other, regardless the installation order, apps development targetSdkVersion, running Android OS version, or app signatures.

The problem


  • app1 — targetSdkVersion…

This article is about using Google Map for developing Android native application. Does not cover API pricing, or marketing.

This article does not cover how to set up Google Map project for Android from the scratch either. If you need it, please refer here.

I was building an Android native application by using Google Map SDK. During the development time, I was confused by so many different code examples and API documentation. Now I am trying to write them all down for memorizing and also for sharing some thoughts.

MapView or MapFragment or SupportMapFragment

If you are thinking between MapFragment and SupportMapFragment, choose SupportMapFragment.


默考文 Wei

快赠我幽默感。Sharing is caring.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store