send link to app

KJV Bible Plugin


Bibliothèques et démos
Libre

This plugin allows other Android apps to display Bible passages from the King James Version of the Bible.App developers can integrate this with the following code:== Show a passage in a new activity ==Intent intent = new Intent(Intent.ACTION_VIEW);intent.setType("vnd.android.cursor.item/vnd.uk.co.tekkies.bible.passage");intent.putExtra("passage","Hebrews 11");activity.startActivity(intent);
OR
== Content provider interface ==String passageXml = "Error";String[] row = new String[] { "passage" };Cursor cursor = getActivity().getContentResolver().query( Uri.parse("content://uk.co.tekkies.plugin.bible.kjv/passage/" + passage), row, "", row, "");if (cursor.moveToFirst()) { passageXml = cursor.getString(cursor.getColumnIndex("passage"));}