android / privacy-sandbox-samples

Apache License 2.0
135 stars 56 forks source link

Unable to launch activity from sdk process #16

Closed felixzhang0703 closed 2 years ago

felixzhang0703 commented 2 years ago

I'd like to start an activity from SDK process, but below error occurs:

image

Seems there is a "com.google.android.sdksandbox" added to my activity intent. Any thoughts about how to launch an activity from SDK process?

robclifford27 commented 2 years ago

Hey @felixzhang0703 I can take a look at this for you. Can you provide me with the following: -What revision of the SDK are you running? -What revision of the emulator images is installed on your device? -If you can repro the issue consistently, can you capture an adb bugreport and upload it to our IssueTracker

robclifford27 commented 2 years ago

Additionally, can you provide some more information about the use case that you're trying to test here? Are you just following along with the README instructions or testing different things on your own?

felixzhang0703 commented 2 years ago

Hi @robclifford27 , thanks for your time. The context is that as a monetization SDK, we want to show our ad activity from SDK runtime. That's why I did the test. I'm using this sample project, adding a dummy MainActivity in "sdk-app" project, and try to start this activity from "onDataReceived". This issue can be reproduced consistently on both pixel 4 TiramisuPrivacySandbox emulator and pixel 6 android 13 device. IssueTracker link: https://issuetracker.google.com/issues/241819499

image
siran-work commented 2 years ago

@felixzhang0703 Moving forward, all the communications will be exchanged through the public bug. Thank you!

cshmerling commented 2 years ago

Going to mark this issue as resolved as there hasn't been activity here for awhile