You can pass its position as a parameter and then use the switch statement to judge, but the cases inside cannot be dynamically increased or decreased. Is there any other way to write it?
phpcn_u15822017-05-16 13:32:10
Use action, data, category, extras according to the actual combination, and you can jump to the activity that meets the conditions
巴扎黑2017-05-16 13:32:10
Your question is too vague. I’m not sure what the scenario is. The simplest way is to use webview to display it. Jumping to the activity only carries a URL. You can also use routing. The activity you jump to only does routing forwarding, not routing. The specific display content and which page to jump to are specified by the custom schema information brought by the item.