Hey can someone tell me how I can start an activity by pressing an item in a listview?
Here is a hunch I have:
EDIT- I have fixed it i think bec
You are passing an Activity as the argument to the startActivity()
function
startActivity(MenuActivity.class)
Instead you should be passing it an Intent like this
Intent myIntent = new Intent(Videos.this, MenuActivity.class);
startActivity(myIntent);
Make sure you are adding the activity to the Android manifest In your manifest file you should add the activity like this:
<activity android:name=".Lars"/>
make sure to do this for each Intent and activity you plan to use.