android - Need for Intent.createChooser method when using implicit Intent -


I do not understand the intent. According to Android Docs "If multiple intentions are compatible, the system displays a dialog so that user can use which app." So, if the Android system has made a customized dialogue, then why would it be the use of the method?

Thank you in advance

Yes, the Android system will do it for you But once you select an item from the dialog, then the system will keep this in mind and it will show the next time not the dialog if the user chooses the "default" it is not always what you want . Suppose you have a share button, you definitely do not want to share your users all the time with the same perspective. So this is the case where you will need to call the createChooser call, this system forces to show the dialog that everyone chooses every time.

You can refer to

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -