For Android developers

Open a verse from your app

Your Android app can open the Hebrew/Greek Interlinear Bible, in English or Spanish, directly on a verse, so your readers jump straight to its interlinear text. Everything happens on the device, so it works offline.

This is a stable contract: the link format, extra names and numbering below will not change.

The apps

AppPackage
Hebrew/Greek Interlinear Bible (English) com.hagiostech.greekinterlinearbible
Biblia Interlineal Hebreo/Griego (Spanish) com.hagiostech.greekinterlinearbible.spanish

Both apps accept exactly the same link and extras. See choosing English or Spanish.

hgib://verse/{book}/{chapter}/{verse}
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("hgib://verse/43/3/16"));
try {
    startActivity(intent);
} catch (ActivityNotFoundException e) {
    // Neither app is installed: offer the Google Play listing instead.
}

This works whether the app is closed, in the background, or showing another of its screens. From an Activity, no extra flags are needed. From a Service or other non-Activity context, add Intent.FLAG_ACTIVITY_NEW_TASK, as with any launch.

Option 2: extras on the launch intent

Pass book, chapter and verse as int extras on the app's launch intent:

Intent intent = getPackageManager()
        .getLaunchIntentForPackage("com.hagiostech.greekinterlinearbible");
if (intent != null) {
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
    intent.putExtra("book", 43);
    intent.putExtra("chapter", 3);
    intent.putExtra("verse", 16);
    startActivity(intent);
}

Android 11+ package visibility

If your app targets Android 11 (API 30) or later, getLaunchIntentForPackage returns null unless you declare the packages in your manifest:

<queries>
    <package android:name="com.hagiostech.greekinterlinearbible" />
    <package android:name="com.hagiostech.greekinterlinearbible.spanish" />
</queries>

The link in Option 1 does not need this entry.

Choosing English or Spanish

Numbering

Old Testament

  1. 1Genesis
  2. 2Exodus
  3. 3Leviticus
  4. 4Numbers
  5. 5Deuteronomy
  6. 6Joshua
  7. 7Judges
  8. 8Ruth
  9. 91 Samuel
  10. 102 Samuel
  11. 111 Kings
  12. 122 Kings
  13. 131 Chronicles
  14. 142 Chronicles
  15. 15Ezra
  16. 16Nehemiah
  17. 17Esther
  18. 18Job
  19. 19Psalms
  20. 20Proverbs
  21. 21Ecclesiastes
  22. 22Song of Solomon
  23. 23Isaiah
  24. 24Jeremiah
  25. 25Lamentations
  26. 26Ezekiel
  27. 27Daniel
  28. 28Hosea
  29. 29Joel
  30. 30Amos
  31. 31Obadiah
  32. 32Jonah
  33. 33Micah
  34. 34Nahum
  35. 35Habakkuk
  36. 36Zephaniah
  37. 37Haggai
  38. 38Zechariah
  39. 39Malachi

New Testament

  1. 40Matthew
  2. 41Mark
  3. 42Luke
  4. 43John
  5. 44Acts
  6. 45Romans
  7. 461 Corinthians
  8. 472 Corinthians
  9. 48Galatians
  10. 49Ephesians
  11. 50Philippians
  12. 51Colossians
  13. 521 Thessalonians
  14. 532 Thessalonians
  15. 541 Timothy
  16. 552 Timothy
  17. 56Titus
  18. 57Philemon
  19. 58Hebrews
  20. 59James
  21. 601 Peter
  22. 612 Peter
  23. 621 John
  24. 632 John
  25. 643 John
  26. 65Jude
  27. 66Revelation

Questions

Write to hagiostech@gmail.com. We'd be glad to hear which app you're linking from.