خطا در فایل apk

باسلام و تشکر از پاسخگویی عالیتان

 

پاسخ ها

sokanacademy forum
کاربر سکان آکادمی 8 سال پیش

باسلام و تشکر از پاسخگویی عالیتان من برنامه ام را به apk تبدیل کردم ولی زمانی که وارد صفحه زیر می شود error می دهد و از برنامه خارج می شود: فایل xml:

فایل جاوا :( import ها را در اینجا ننوشتم)

public class i_7_1 extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.i_7_1); // storing string resources into Array String[] ListView1 = {

"جزئیات کارکرد خطوط اعتباری", "اطلاع از هزینه تماس", "تبدیل سیم کارت اعتباری به دائمی", "ساعت خوش مکالمه", "کانون هواداران فوتبال

"}; // Binding resources Array to ListAdapter this.setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, ListView1)); ListView lv = getListView(); // listening to single list item on click lv.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { switch (position) { case 1: Intent intent1 = new Intent(i_7_1.this, i_4_1.class); startActivity(intent1); break; case 2: Intent intent2 = new Intent(i_7_1.this, i_5_1.class); startActivity(intent2); break; case 3: Intent intent3 = new Intent(i_7_1.this, i_6_1.class); startActivity(intent3); break; case 4: Intent intent4 = new Intent(i_7_1.this, i_7_1.class); startActivity(intent4); break; case 5: Intent intent5 = new Intent(i_7_1.this, i_8_1.class); startActivity(intent5); break; } } }); } }
sokanacademy forum
کاربر سکان آکادمی 8 سال پیش
سلام،ای پی کا با موفقیت ساخته شده،درسته؟فقط داخل این صفحه کرش می کند. راه هایی که به ذهنم می رسد،می نی مم ای پی ای لول نرم افزار و دیوایس رعایت شده باشد. دوم معمولا راه حل این مشکلات دیباگ کردن است که به درد می خورد،سعی کن اپ را ران کنی ارر زد بدونی کدام خط دقیقا ارر است. صفحه خطلا ها خودشون می گن مشکل رو،باید خطا را ببینم.
online-support-icon