Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Help with URL to app

Hi! to everyone, in my app there is a button for open a web page , in this web page I put a button named "back to app" , pressing the button you can go back to the app but I don't know how I try to use this URL : intent://#Intent;package=jam.jmtogo;scheme=myapp;launchFlags=268435456;end; but this URL opens the app on the play store

Someone can help me? please.. Thanks

2 Answers

Harry James
Harry James
14,780 Points

Hey Daniele!

Do you have this category filter in your AndroidManifest.xml file:

<category android:name="android.intent.category.BROWSABLE" />

If you don't have it already, add this and try again. Then, let me know if you have any luck.

Hope it helps :)

yes I'have already added I've try with this code in my AndroidManifest.xml but every time the link redirect me in play store

<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" android:host="myapp.com" android:path="/view" /> </intent-filter>

thank you for your time :)