Hi to all. I have this problem, I created an activity (this activity is called Activity1).
Activity1 runs a second activity (this activity is called Activity2), public class Activity2 extends Activity1 { }
Now I want to implement the function onListItemClick()
, but to use this function, I must use extends ListActivity
, but if I write public class Activity2 extends Activity1 extends ListActivity { }
, I have this error:
Syntax error on token "extends", implements expected
Where I am wrong?