Android Question Error when open PDF

chefe82

Member
Licensed User
Longtime User
Hallo,
im get with this Code an Error
B4X:
i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal & ,Test.pdf))
          i.SetComponent("android/com.android.internal.app.ResolverActivity")
          i.SetType("application/pdf")
          StartActivity(i)

ErrorCode
"android.content.ActivityNotFoundException: Unable to find explicit activity class {android/com.android.internal.app.ResolverActivity}; have you declared this activity in your AndroidManifest.xml? at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1761) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1485) at android.app.Activity.startActivityForResult(Activity.java:3823) at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48) at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75) at android.app.Activity.startActivityForResult(Activity.java:3784) at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:856) at android.app.Activity.startActivity(Activity.java:4094) at android.app.Activity.startActivity(Activity.java:4062) at anywheresoftware.b4a.keywords.Common.StartActivity(Common.java:698)"

LG Spirit 4G Android 5.0.1

Whats the Problem? with Android 6 it works.
 
Top