Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support intent to jump #183

Closed
ahmedre opened this issue Aug 12, 2012 · 1 comment
Closed

support intent to jump #183

ahmedre opened this issue Aug 12, 2012 · 1 comment
Assignees
Milestone

Comments

@ahmedre
Copy link
Contributor

ahmedre commented Aug 12, 2012

support an intent to allow people outside to jump to a certain page, sura, or sura/ayah combo.

@ghost ghost assigned ahmedre Aug 12, 2012
@ahmedre
Copy link
Contributor Author

ahmedre commented Oct 5, 2012

support added for Intent.ACTION_VIEW with data of quran://sura/ayah.

example:

Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("quran://3/100");
PackageManager pm = getPackageManager();
if (pm.queryIntentActivities(i, 0).size() == 0){
   i.setData(Uri.parse("http://quran.com/3/100"));
}
startActivity(i);

this code will see if quran android (or any other app) can handle a view intent with a quran:// url. if no such app is installed, it falls back to launching the ayah in a web browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant