How to start and App Chooser

前端 未结 5 1030
春和景丽
春和景丽 2021-01-13 07:09

The task of this application is to implicitly activate a separate application to view the URL, “http:// www.google.com”. So, App Chooser should appear and let me choose betw

5条回答
  •  太阳男子
    2021-01-13 07:46

    Seems like the Adam Porter's Third Week Assignment of Programming mobile Application for Android HandHeld systems. Anyway, I hope you have your solution inside the AndroidManifest.xml you would need to add three more intent filters.

    
    
    
    

    Further, if you were not able to run the AndroidUnit tests,

    make sure you have done something similar to this in the ActionListener of the implicit button call.

    Intent baseIntent = new Intent(Intent.ACTION_VIEW);
            baseIntent.setData(Uri.parse(URL));
    
    Intent chooserIntent = Intent.createChooser(baseIntent, "Select Application");
    

    Coursera already has a mailing list. Please use that.

提交回复
热议问题