dialog - How to stop opening documents and pdf files by default app in android programmatically? -



dialog - How to stop opening documents and pdf files by default app in android programmatically? -

i have created app viewing documents , pdf files, when select file (for example:sample.pdf or sample.doc) in mobile, dialog box appear showing app , other apps available viewing options on below(just 1 time or always) or (set default). problem is, 1 time have clicked app these (always or set default) options in dialog box, next time when select file read, automatically opens app without showing other apps dialog box options. tried looking solution, can't ideas, can guys help me on fixing problem.

i tried looking solution

there no "solution", because there no problem.

the user decided create app default operation. user's choice, not yours. if user wants alter that, user can go settings , (e.g., "clear defaults" on app's screen in list of installed apps).

now, in cases app 1 starting other activity, , want forcefulness chooser, can utilize intent.createchooser() that. cannot forcefulness other developers utilize intent.createchooser() when inquire android view "documents , pdf files" via action_view, , cannot prevent user making app default operations.

android dialog

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -