Android 12 - Google Pixel can not start MainActivity from BubbleActivity

271 Views Asked by At

Hello friends on StackOverflow. I got a problem with my Application when run on Android 12 Beta, Pixel 5.

When staying in BubbleActivity, I call a BubbleActivity#startActivity(MainActivity.class) but it does not work as I expect (minimize BubbleActivity and switch to Application).

I attached some logs from BubbleActivity#startActivity

W/ActivityTaskManager: Background activity start [callingPackage: com.package.myapp; 
callingUid: 10248; appSwitchAllowed: false; 
isCallingUidForeground: true; callingUidHasAnyVisibleWindow: true; callingUidProcState: TOP; isCallingUidPersistentSystemProcess: false; 
realCallingUid: 10248; isRealCallingUidForeground: true; 
realCallingUidHasAnyVisibleWindow: true; realCallingUidProcState: TOP; 
isRealCallingUidPersistentSystemProcess: false; originatingPendingIntent: null; allowBackgroundActivityStart: false; 
intent: Intent { act=com.package.myapp.action.ACTION_SHOW_MY_VIEW flg=0x14000000 
cmp=com.package.myapp/.ui.MainLauncherActivity (has extras) }; 
callerApp: ProcessRecord{19f9941 5079:com.package.myapp/u0a248}; inVisibleTask: true]

I tried on Android 11 and it works.

So, anyone here got the same problem?

0

There are 0 best solutions below