السلام عليكم
اخواني اقدم لكم هذا البرنامج البسيط وهو أول برنامج اقوم بتصميمه للجوالات
طبعاً الفضل أولاً لله تعالى ثم لهذا المنتدى
أرجو إفادتي برأيكم به
ولكم كل الشكر والاحترام
اقتباسimport java.io.IOException;
import javax.microedition.lcdui.*;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
import javax.microedition.media.Manager;
import javax.microedition.midlet.MIDlet;
/*
* @author Ahmad Saleh
*/
public class Quran extends MIDlet implements CommandListener, Runnable {
private Form MainForm;
private Form PlayForm;
private List FirstList;
private ImageItem imageLable;
private List SecondList;
private String Nam;
private String Fun;
private String Num;
int I;
private Player p;
private StringItem message0 = new StringItem("","");
private StringItem message1 = new StringItem("","");
private StringItem message2 = new StringItem("","");
private StringItem message3 = new StringItem("","");
Command Index_Readers;
Command Index_Quran;
Command Index_Play;
Command BackFirstList;
Command BackSecondList;
Command BackPlayForm;
Command Exit;
Command Pause;
Command Resume;
public void startApp() {
Display.getDisplay(this).setCurrent(getMainForm());
}
public void pauseApp() {
if (p != null && p.getState() >= Player.STARTED) {
try {
p.stop();
}
catch (MediaException me) {
}
}
}
public void destroyApp(boolean unconditional) {
}
public Form getMainForm() {
if (MainForm == null) {
try {
MainForm = new Form(" ");
imageLable = new ImageItem("", Image.createImage("/MainForm.png"), ImageItem.LAYOUT_CENTER, "");
MainForm.append(imageLable);
Index_Readers = new Command("موافق", Command.SCREEN,0);
MainForm.addCommand(Index_Readers);
Exit = new Command("خروج", Command.SCREEN,1);
MainForm.addCommand(Exit);
MainForm.setCommandListener(this);
} catch (IOException ex) {
}
}
return MainForm;
}
public List getFirstList() {
if (FirstList == null) {
FirstList = new List("القراء", List.IMPLICIT);
FirstList.append("مصطفى بن رعد العزاوي" , null);
FirstList.append("حسن إبراهيم هاشم" , null);
FirstList.append("أبو يوسف الخرخاشي" , null);
FirstList.append("عبد الرزاق بن عبطان الدليمي" , null);
FirstList.append("مصحف الحرم المكى لعام 1426هـ" , null);
FirstList.append("عبد المنعم عبد المبدىء" , null);
FirstList.append("ياسين الجزائري" , null);
FirstList.append("ياسر المزروعي" , null);
FirstList.append("أكرم عبدالله العلاقمي" , null);
FirstList.append("ماهر حمد المعيقلي" , null);
FirstList.append("الدوكالي محمد العالم" , null);
FirstList.append("صابر عبدالحكم" , null);
FirstList.append("صلاح بن محمد البدير" , null);
FirstList.append("عبدالله عواد الجهني" , null);
FirstList.append("مشاري راشد العفاسي" , null);
FirstList.append("أحمد الرزيقي" , null);
FirstList.append("صلاح أبو خاطر" , null);
FirstList.append("عبدالله الخياط" , null);
FirstList.append("شيخ أبوبكر الشاطري" , null);
FirstList.append("عبدالرحمن السديس" , null);
FirstList.append("توفيق الصايغ" , null);
FirstList.append("عبدالله بصفر" , null);
FirstList.append("السيد أحمد أبوزيد" , null);
FirstList.append("سعد الغامدي" , null);
FirstList.append("هاني الرفاعي" , null);
FirstList.append("عادل الكلباني" , null);
FirstList.append("أحمد العجمي" , null);
FirstList.append("سعود الشريم" , null);
FirstList.append("محمد صديق المنشاوي(مجود)" , null);
FirstList.append("محمد رشاد الشريف" , null);
FirstList.append("خالد بركات" , null);
FirstList.append("رشيد بلعالية" , null);
FirstList.append("صداقت علي" , null);
FirstList.append("عماد زهير حافظ" , null);
FirstList.append("المصحف المجود لمشاهير القراء الأربعة" , null);
FirstList.append("مصطفى اللاهوني" , null);
FirstList.append("مصحف الحرم المدنى لعام 1426هـ" , null);
FirstList.append("عادل مسلم" , null);
FirstList.append("نبيل عبد الرحيم الرفاعي" , null);
FirstList.append("سعيد شعلان" , null);
FirstList.append("الأمين محمد قنيوه" , null);
FirstList.append("فارس عباد" , null);
FirstList.append("عبدالعزيز ندا" , null);
FirstList.append("مصطفى غربي" , null);
FirstList.append("عبدالله المطرود" , null);
FirstList.append("محمد عبدالكريم" , null);
FirstList.append("عبدالباري الثبيتي" , null);
FirstList.append("علي السويسي" , null);
FirstList.append("عبدالمحسن القاسم" , null);
FirstList.append("عبدالعزيز الأحمد" , null);
FirstList.append("الحرم المدني.. 4 قراء" , null);
FirstList.append("إبراهيم الأخضر" , null);
FirstList.append("عبدالودود حنيف" , null);
FirstList.append("علي الحذيفي" , null);
FirstList.append("خالد القحطاني" , null);
FirstList.append("محمد محمود الطبلاوي" , null);
FirstList.append("علي عبدالله جابر" , null);
FirstList.append("محمود خليل الحصري" , null);
FirstList.append("حسن صالح" , null);
FirstList.append("عبدالمحسن الحارثي" , null);
FirstList.append("عبدالعزيز عليلي" , null);
FirstList.append("علي ثابت عبد الحافظ" , null);
FirstList.append("سعيد بن عبد الله العبد الله" , null);
FirstList.append("شعبان محمود عبد الله" , null);
FirstList.append("عبد الحكيم عبد اللطيف عبد الله" , null);
FirstList.append("أحمد أحمد عثمان القريو" , null);
FirstList.append("عبد الله طه سربل" , null);
FirstList.append("محمد أبو سنينة" , null);
FirstList.append("محمد سعيد خياط" , null);
FirstList.append("محمد إسماعيل المقدم" , null);
FirstList.append("ياسر القرشي" , null);
FirstList.append("مصطفى محمود البنا" , null);
FirstList.append("محمد عبدالحكيم سعيد العبدالله" , null);
FirstList.append("عبدالرشيد بن الشيخ علي صوفي" , null);
FirstList.append("العيون الكوشي" , null);
FirstList.append("سهل ياسين" , null);
FirstList.append("زكي داغستاني" , null);
FirstList.append("أحمد خليل شاهين" , null);
FirstList.append("مصطفى إسماعيل" , null);
FirstList.append("محمد صالح أبوزيد" , null);
FirstList.append("محمود علي البنا" , null);
FirstList.append("محمد المحيسني" , null);
FirstList.append("محمد حسان" , null);
FirstList.append("عبدالهادي الكناكري" , null);
FirstList.append("محمد جبريل" , null);
FirstList.append("السديس والشريم" , null);
FirstList.append("محمد أيوب" , null);
FirstList.append("عبدالباسط عبدالصمد" , null);
BackFirstList = new Command("رجوع", Command.BACK,0);
FirstList.addCommand(BackFirstList);
Exit = new Command("خروج", Command.SCREEN,1);
FirstList.addCommand(Exit);
FirstList.setCommandListener(this);
}
return FirstList;
}
public List getSecondList() {
if (SecondList == null) {
SecondList = new List("السور", List.IMPLICIT);
SecondList.append("الفاتحة" , null);
SecondList.append("البقرة" , null);
SecondList.append("آل عمران" , null);
SecondList.append("النساء" , null);
SecondList.append("المآئدة" , null);
SecondList.append("الأنعام" , null);
SecondList.append("الأعراف" , null);
SecondList.append("الأنفال" , null);
SecondList.append("التوبة" , null);
SecondList.append("يونس" , null);
SecondList.append("هود" , null);
SecondList.append("يوسف" , null);
SecondList.append("الرعد" , null);
SecondList.append("إبراهيم" , null);
SecondList.append("الحجر" , null);
SecondList.append("النحل" , null);
SecondList.append("الإسراء" , null);
SecondList.append("الكهف" , null);
SecondList.append("مريم" , null);
SecondList.append("طـه" , null);
SecondList.append("الأنبياء" , null);
SecondList.append("الحج" , null);
SecondList.append("المؤمنون" , null);
SecondList.append("النور" , null);
SecondList.append("الفرقان" , null);
SecondList.append("الشعراء" , null);
SecondList.append("النمل" , null);
SecondList.append("القصص" , null);
SecondList.append("العنكبوت" , null);
SecondList.append("الروم" , null);
SecondList.append("لقمان" , null);
SecondList.append("السجدة" , null);
SecondList.append("الأحزاب" , null);
SecondList.append("سبأ" , null);
SecondList.append("فاطر" , null);
SecondList.append("يس" , null);
SecondList.append("الصافات" , null);
SecondList.append("ص" , null);
SecondList.append("الزمر" , null);
SecondList.append("غافر" , null);
SecondList.append("فصلت" , null);
SecondList.append("الشورى" , null);
SecondList.append("الزخرف" , null);
SecondList.append("الدخان" , null);
SecondList.append("الجاثية" , null);
SecondList.append("الأحقاف" , null);
SecondList.append("محمد" , null);
SecondList.append("الفتح" , null);
SecondList.append("الحجرات" , null);
SecondList.append("ق" , null);
SecondList.append("الذاريات" , null);
SecondList.append("الطور" , null);
SecondList.append("النجم" , null);
SecondList.append("القمر" , null);
SecondList.append("الرحمن" , null);
SecondList.append("الواقعة" , null);
SecondList.append("الحديد" , null);
SecondList.append("المجادلة" , null);
SecondList.append("الحشر" , null);
SecondList.append("الممتحنة" , null);
SecondList.append("الصف" , null);
SecondList.append("الجمعة" , null);
SecondList.append("المنافقون" , null);
SecondList.append("التغابن" , null);
SecondList.append("الطلاق" , null);
SecondList.append("التحريم" , null);
SecondList.append("الملك" , null);
SecondList.append("القلم" , null);
SecondList.append("الحاقة" , null);
SecondList.append("المعارج" , null);
SecondList.append("نوح" , null);
SecondList.append("الجن" , null);
SecondList.append("المزمل" , null);
SecondList.append("المدثر" , null);
SecondList.append("القيامة" , null);
SecondList.append("الإنسان" , null);
SecondList.append("المرسلات" , null);
SecondList.append("النبأ" , null);
SecondList.append("النازعات" , null);
SecondList.append("عبس" , null);
SecondList.append("التكوير" , null);
SecondList.append("الإنفطار" , null);
SecondList.append("المطففين" , null);
SecondList.append("الإنشقاق" , null);
SecondList.append("البرج" , null);
SecondList.append("الطارق" , null);
SecondList.append("الأعلى" , null);
SecondList.append("الغاشية" , null);
SecondList.append("الفجر" , null);
SecondList.append("البلد" , null);
SecondList.append("الشمس" , null);
SecondList.append("الليل" , null);
SecondList.append("الضحى" , null);
SecondList.append("الشرح" , null);
SecondList.append("التين" , null);
SecondList.append("العلق" , null);
SecondList.append("القدر" , null);
SecondList.append("البيِّنة" , null);
SecondList.append("الزلزلة" , null);
SecondList.append("العاديات" , null);
SecondList.append("القارعة" , null);
SecondList.append("التكاثر" , null);
SecondList.append("العصر" , null);
SecondList.append("الهمزة" , null);
SecondList.append("الفيل" , null);
SecondList.append("قريش" , null);
SecondList.append("الماعون" , null);
SecondList.append("الكوثر" , null);
SecondList.append("الكافرون" , null);
SecondList.append("النصر" , null);
SecondList.append("المسد" , null);
SecondList.append("الإخلاص" , null);
SecondList.append("الفلق" , null);
SecondList.append("الناس" , null);
BackSecondList = new Command("رجوع", Command.BACK,0);
SecondList.addCommand(BackSecondList);
Exit = new Command("خروج", Command.SCREEN,1);
SecondList.addCommand(Exit);
SecondList.setCommandListener(this);
}
return SecondList;
}
public Form getPlayForm() {
if (PlayForm == null) {
PlayForm = new Form("القران الكريم");
PlayForm.append(message2);
PlayForm.append(message1);
message1.setLayout(message1.LAYOUT_RIGHT);
PlayForm.append(message3);
BackPlayForm = new Command("رجوع", Command.BACK,0);
Exit = new Command("خروج", Command.SCREEN,2);
Pause = new Command("إيقاف", Command.ITEM,1);
Resume = new Command("تشغيل", Command.ITEM,1);
PlayForm.addCommand(BackPlayForm);
PlayForm.addCommand(Exit);
PlayForm.addCommand(Pause);
PlayForm.setCommandListener(this);
}
return PlayForm;
}
public void commandAction(Command cmd, Displayable d) {
if(cmd == Pause)
{ if (p != null && p.getState() >= Player.STARTED) {
try {
p.stop();
} catch (MediaException ex) { } }
PlayForm.addCommand(Resume);
PlayForm.removeCommand(Pause);
}
else if (cmd == Resume)
{ try {
p.start();
} catch (MediaException ex) { }
PlayForm.addCommand(Pause);
PlayForm.removeCommand(Resume);
}
else if(cmd == Exit)
{ notifyDestroyed(); }
else if(cmd == Index_Readers)
{ Display.getDisplay(this).setCurrent(getFirstList()); }
else if (cmd == BackFirstList)
{ Display.getDisplay(this).setCurrent(getMainForm()); }
else if (cmd == BackSecondList)
{ Display.getDisplay(this).setCurrent(getFirstList());}
else if (cmd == BackPlayForm)
{ if (p != null && p.getState() >= Player.STARTED) {
try {
p.stop();
p.close();
} catch (MediaException ex) {
} }
Display.getDisplay(this).setCurrent(getSecondList());}
else if (d == FirstList)
{ Display.getDisplay(this).setCurrent(getSecondList()); }
else {
Form waitForm = new Form("الرجاء الانتظار...");
message0.setText("إغتنم الإنتظار بالإستغفار");
message0.setLayout(message0.LAYOUT_RIGHT);
waitForm.append(message0);
Display.getDisplay(this).setCurrent(waitForm);
Thread t = new Thread(this);
t.start();
}
}
private void showException(Exception e) {
Alert a = new Alert("Exception", e.toString(), null, null);
a.setTimeout(Alert.FOREVER);
}
public void info() {
if(FirstList.getSelectedIndex() == 0)
{ Nam="MustafaAlanzai/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 1)
{ Nam="HasanHashem/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 2)
{ Nam="abu_yousuf_kerkhashi/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 3)
{ Nam="abdulrazzaq_aldulaimi/mojawad/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 4)
{ Nam="haram_m1426/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 5)
{ Nam="abdulmoneam_abdulmobde/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 6)
{ Nam="yaseen_al_jazaery/warsh_full/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 7)
{ Nam="yaser_mazroi/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 8)
{ Nam="akramabdullah/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 9)
{ Nam="Maher-Me3eaqly/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 10)
{ Nam="dukalli/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 11)
{ Nam="SaberAbdulhakam/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 12)
{ Nam="SalahAlbedear/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 13)
{ Nam="AbdullahAwwadAljahny/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 14)
{ Nam="MeshariAl3affasy/";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 15)
{ Nam="AhmedAlruzeaqi/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 16)
{ Nam="Bokhater/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 17)
{ Nam="Alkhayyat/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 18)
{ Nam="shatri/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 19)
{ Nam="Sudeas/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 20)
{ Nam="taw_saig/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 21)
{ Nam="abasfar/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 22)
{ Nam="abuzaid/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 23)
{ Nam="sghamdi/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 24)
{ Nam="refaee/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 25)
{ Nam="aalkalbani/";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 26)
{ Nam="alajmee/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 27)
{ Nam="shureem/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 28)
{ Nam="menshawee/m/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 29)
{ Nam="Mohammed%20Al-Sharif/m/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 30)
{ Nam="KhaledBarakat/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 31)
{ Nam="RashidBelaalih/warsh/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 32)
{ Nam="SadaqatAli/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 33)
{ Nam="AmadZahair/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 34)
{ Nam="al_mushaf_al_amujawad/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 35)
{ Nam="mostafa_allahooni/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 36)
{ Nam="quran/haram1426/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 37)
{ Nam="Aadel_Moslem/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 38)
{ Nam="nabeel_alRefaie/m/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 39)
{ Nam="saeed_shalan/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 40)
{ Nam="alameen_kanyouh/qaloon/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 41)
{ Nam="fares_abbad/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 42)
{ Nam="AbdulazizNada/";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 43)
{ Nam="Gharbi/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 44)
{ Nam="abdullahAlmatrood/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 45)
{ Nam="ma_kar/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 46)
{ Nam="Althobeaty/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 47)
{ Nam="Alsoweasy/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 48)
{ Nam="alqasem/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 49)
{ Nam="aalahmad/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 50)
{ Nam="4qurra/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 51)
{ Nam="ibr_kd/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 52)
{ Nam="abd_wad/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 53)
{ Nam="hozefee/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 54)
{ Nam="qahtanee/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 55)
{ Nam="tablawee/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 56)
{ Nam="alijaber/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 57)
{ Nam="hosaree/rm/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 58)
{ Nam="Hassan%20Saleh/hafs_full/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 59)
{ Nam="AbdulMohsenAlharthi/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 60)
{ Nam="AbdulazizAlili/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 61)
{ Nam="AliAbdulhafeth/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 62)
{ Nam="Saeed_bin_abdullah/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 63)
{ Nam="shaaban_mahmoud/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 64)
{ Nam="abdulhakeem_abdullateef/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 65)
{ Nam="quran/ahmed_qaru/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 66)
{ Nam="abdullah_taha_sarbal/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 67)
{ Nam="mohammed_abu_senainah/qaloon/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 68)
{ Nam="mohammed_saeed_khayat/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 69)
{ Nam="Mh_Esmail_mokadam/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 70)
{ Nam="yaser_qurashi/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 71)
{ Nam="mostafa_albanna/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 72)
{ Nam="Mh-hakeem/doori_k/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 73)
{ Nam="Abdulrashid/hafs_full/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 74)
{ Nam="koshee/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 75)
{ Nam="SahelYaseen/m/";
Fun="A"; }
else if(FirstList.getSelectedIndex() == 76)
{ Nam="Zak_Dag/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 77)
{ Nam="ah_sha/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 78)
{ Nam="Mu_sma/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 79)
{ Nam="mbuzeed/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 80)
{ Nam="mah_ban/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 81)
{ Nam="mehesnee/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 82)
{ Nam="mhassan/";
Fun="B"; }
else if(FirstList.getSelectedIndex() == 83)
{ Nam="kanakree/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 84)
{ Nam="mjebreel/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 85)
{ Nam="so_shu/s";
Fun="C"; }
else if(FirstList.getSelectedIndex() == 86)
{ Nam="mayyoob/s";
Fun="C"; }
else
{ Nam="baset/s";
Fun="C"; }
I = SecondList.getSelectedIndex() + 1;
if (Fun == "A")
if (I < 10)
{Num = "00" + I ;}
else if (I < 100)
{Num = "0" + I ;}
else
{Num = "" + I ;}
if (Fun == "B")
if (I < 10)
{Num = "100" + I ;}
else if (I < 100)
{Num = "10" + I ;}
else
{Num = "1" + I ;}
if (Fun == "C")
{Num = "" + I ;}
try{
p = Manager.createPlayer("http://search.islamweb.net/quran/" + Nam + Num + ".mp3");
p.realize();
p.prefetch();
p.start();
} catch (Exception e) {
showException(e);
}
}
public void run() {
info();
message1.setText("سورة : " + SecondList.getString(SecondList.getSelectedIndex()) + "\n" + " بصوت: " + FirstList.getString(FirstList.getSelectedIndex()));
message2.setText("***************\n");
message2.setLayout(message2.LAYOUT_CENTER);
message3.setText("\n***************");
message3.setLayout(message3.LAYOUT_CENTER);
Display.getDisplay(this).setCurrent(getPlayForm());
}
}