Can't make my app appear in the chooser Android BROWSABLE

DJA

I'm taking a course on Android and we have a task, one of them is to make a program called "MyBrowser" that they provide to us to be able to appear in the chooser if another program sends an implicit intent, I have researched and found this:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<intent-filter>
    <action android:name="andoid.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="http" />         
</intent-filter>

The first intent filter was already in the file and I have added the second one, but it doesn't work and I don't really understand why, the implicit intent goes like this:

private void startImplicitActivation() {

    Uri webpage = Uri.parse("http://www.google.com");
    Intent baseIntent = new Intent (Intent.ACTION_VIEW, webpage);

    Intent chooserIntent = Intent.createChooser(baseIntent, "Choose application");

    startActivity(chooserIntent);  
}

That is the only intent that I've tried to open.

Thanks in advance.

DJA

Ok, I decided to copy paste the intent filters from the android browser and it worked, later I just started deleting random sets of < intent-filter> ... < /intent-filter> untill it stopped working and was left with this, now it works:

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />

</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can't make my app appear in the chooser Android BROWSABLE

From Dev

How to make my Android app appear in the app chooser when emailing a WhatsApp chat?

From Dev

How do I make my app appear in app chooser?

From Dev

App chooser Intent doesn't appear in android emulator

From Dev

I don't want my app to appear on the chooser dialog when opening URL's

From Dev

Make my android app appear in the share list

From Dev

How to make my App appear on my Android Device?

From Dev

Intent chooser can't find app to handle

From Dev

How can I make my app appear in UIActivityViewController for text?

From Dev

How can i make my app appear on tablets

From Dev

I am creating a Browser App but Android won't detect my app in chooser while I click on any URL

From Dev

My app won't show up on the chooser dialog for android.intent.action.VIEW with mime type video/* only on Marshmallow

From Dev

How can I make my navbar appear on every page in my rails app?

From Dev

Make my app appear in the change wallpaper list

From Dev

Can't launch Android App in my device

From Dev

Can't launch Android App in my device

From Dev

Can't try my app on device android

From Dev

Images doesn't show , and I can't make my sections appear side by side

From Dev

Can't Run My App on My Android Phone

From Dev

How can I make my android app work online?

From Dev

can i make my app to get opened via browser in Android?

From Dev

How can I find the cause of crash? My app doesn't appear in crashlog

From Dev

How to list my app with a different name in other apps chooser intent in Android

From Dev

How to list my app with a different name in other apps chooser intent in Android

From Dev

in android studio my phone in device chooser not showing

From Dev

Android Device chooser not recognizing my Nexus 7

From Dev

ADB sees my phisycal device, logcat output is present. Android device chooser doesn't

From Dev

Need to know about app chooser in android

From Dev

Android - Show an app chooser of all of the installed apps

Related Related

  1. 1

    Can't make my app appear in the chooser Android BROWSABLE

  2. 2

    How to make my Android app appear in the app chooser when emailing a WhatsApp chat?

  3. 3

    How do I make my app appear in app chooser?

  4. 4

    App chooser Intent doesn't appear in android emulator

  5. 5

    I don't want my app to appear on the chooser dialog when opening URL's

  6. 6

    Make my android app appear in the share list

  7. 7

    How to make my App appear on my Android Device?

  8. 8

    Intent chooser can't find app to handle

  9. 9

    How can I make my app appear in UIActivityViewController for text?

  10. 10

    How can i make my app appear on tablets

  11. 11

    I am creating a Browser App but Android won't detect my app in chooser while I click on any URL

  12. 12

    My app won't show up on the chooser dialog for android.intent.action.VIEW with mime type video/* only on Marshmallow

  13. 13

    How can I make my navbar appear on every page in my rails app?

  14. 14

    Make my app appear in the change wallpaper list

  15. 15

    Can't launch Android App in my device

  16. 16

    Can't launch Android App in my device

  17. 17

    Can't try my app on device android

  18. 18

    Images doesn't show , and I can't make my sections appear side by side

  19. 19

    Can't Run My App on My Android Phone

  20. 20

    How can I make my android app work online?

  21. 21

    can i make my app to get opened via browser in Android?

  22. 22

    How can I find the cause of crash? My app doesn't appear in crashlog

  23. 23

    How to list my app with a different name in other apps chooser intent in Android

  24. 24

    How to list my app with a different name in other apps chooser intent in Android

  25. 25

    in android studio my phone in device chooser not showing

  26. 26

    Android Device chooser not recognizing my Nexus 7

  27. 27

    ADB sees my phisycal device, logcat output is present. Android device chooser doesn't

  28. 28

    Need to know about app chooser in android

  29. 29

    Android - Show an app chooser of all of the installed apps

HotTag

Archive