• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Displaying an app in SurfaceView

AV346

Lurker
Hello everyone. I am developing my own app and I have run into a problem. I want to display any installed app on the device in a SurfaceView in my app. I have already gotten a list of installed apps and displayed them using a Recycler View, now I need to write the OnClick method for my app and I am stuck. I can start the app as a separate window using Intents and StartActivity(), but I cannot display it within my app's SurfaceView. Can anyone explain to me how I go about this?

I assume this is possible since Android allows me to start two different apps in a split window on my phone. If someone could explain how this is done, that might be helpful as well.
 
Thank you LV426. Now I can stop looking for something that does not exist.

Ekor thanks for the tip about Parallel Space but I do not want to write an emulator.
 
Back
Top Bottom