سلام
mainactivity.java
public class MainActivity extends ActionBarActivity {
private String[] mPlanetTitles;
private DrawerLayout mDrawerLayout;
private ListView mDrawerList;
.....
و
.....
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
Dastan dastan = dastanha.get(position);// migim dastani ke rush kelik
// shode ro beriz dakhele
// "dastan"
Intent next = new Intent(this, ShowDastan.class);
next.putExtra("thisdastan", dastan);
startActivity(next);// migim ke dastan ro be safhe bad befres
}
.....
تصویر : http://8pic.ir/images/d6182p5uf5npszbn2aus.jpg
متن ارور: The method onListItemClick(ListView, View, int, long) is undefined for the type ActionBarActivity
من وقتی میخوام اکشن بار بزارم تو اکتیویتی چون listview دارم تو اکتیویتی ارور میده میخوام بدونم چطور وقتی که اکشن بار هست listview بزارم تو اکتیویتی خودم اگه میشه بهم بگید این کد بالا رو چطور تغیییر بدم تا ارور بر طرف بشه