1

Starting a foreigin Activity/Application is quite easy.

Intent intentHandle = this.getPackageManager().getLaunchIntentForPackage("com.android.browser");

this.startActivity(intentHandle);

But is there any possibility to specify the orientation, the foreign Activity/Application is forced to use?

  • 1
    This is (probably) possible as I see apps like this one (https://play.google.com/store/apps/details?id=com.coinsoft.android.orientcontrol , I think this is what you want). I doubt there are any public APIs to do this at the SDK level, other possibilities would be to build your own android version or use reflection to access undocumented internal APIs. – user Aug 06 '12 at 18:21

2 Answers2

0

Yes, you can specify the orientation for the activity in the manifest.

Force an Android activity to always use landscape mode

Community
  • 1
  • 1
maxko87
  • 2,892
  • 4
  • 28
  • 43
0

This depends on the source code of the application. To my knowledge, this is not possible. As Each application can handle orientation change differently or just not do it at all.

JoxTraex
  • 13,423
  • 6
  • 32
  • 45