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

How to use this library..? #16

Open
ridhoaslam opened this issue Aug 16, 2018 · 1 comment
Open

How to use this library..? #16

ridhoaslam opened this issue Aug 16, 2018 · 1 comment

Comments

@ridhoaslam
Copy link

someone, please help me (I am newbie)... how to use this librarry.. I try hard but still cannot understand how to use this librarry... I have text quran from my database and its work, I need to convert so my text quran have Tajweed Highlighting.

this my code:
` private ArrayList generateData(){

    String query, query2, query3;
    ArrayList<Items> items = new ArrayList<Items>();
    SharedPreferences prefs =  this.getSharedPreferences("MyPrefsFile", MODE_PRIVATE);
    Integer surah = prefs.getInt("surafragment", 1);

        query =  "SELECT text AS WORD FROM quran where Sura = '" +surah+"'";
        query2 =  "SELECT text AS WORD FROM qurantransliteration where Sura = '" +surah+"'";
        query3 =  "SELECT text AS WORD FROM quranid where Sura = '" +surah+"'";

        quranCursor = db.rawQuery(query, null);
        quranCursor2 = db.rawQuery(query2, null);
        quranCursor3 = db.rawQuery(query3, null);
        Integer i= 1;

        if (quranCursor.moveToFirst() && quranCursor2.moveToFirst() && quranCursor3.moveToFirst()) {
            items.add(new Items (quranCursor.getString(0), i+". "+quranCursor2.getString(0),i+". "+quranCursor3.getString(0)));

            while (!quranCursor.isLast() && !quranCursor2.isLast() && !quranCursor2.isLast()) {
                quranCursor.moveToNext();
                quranCursor2.moveToNext();
                quranCursor3.moveToNext();
                i = 1+i;
                items.add(new Items(quranCursor.getString(0),i+". "+ quranCursor2.getString(0), i+". "+quranCursor3.getString(0)));
            }
        }

    return items;
}

`

I try:
items.add(new Items (new TajweedRules (quranCursor.getString(0), i+". "+quranCursor2.getString(0),i+". "+quranCursor3.getString(0))));

but it cannot be applied (expected actual, parameter argument), pls help me

@asimmohiuddin
Copy link
Contributor

Asalaamualaikum brother, this project is incomplete right now. inshaAllah once it is finished, the instructions to use it will be made available in the readme

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

2 participants