Hi I am opening another app from my app. I want to display that another app in a dialog box. So what are my options. I an trying the code below...
public class PictureGallery extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
PackageManager pm = getPackageManager();
Intent intent = pm.getLaunchIntentForPackage("com.abc.me");
startActivity(intent); ???
setContentView(intent); ????
}
}
I am setting theme for that activity as a dialog. So how do I set setContentView as it's not a layout but diff. activity ?
Appreciate your help.
I am opening another app from my app. I want to display that another app in a dialog box.
You simply cannot do this, sorry.