Top "Main-activity" questions

Questions about creating or managing Activities in Android.

How to set my Activity as main activity in android?

I want to create own activity as main activity rather than using default MainActivity. How can I define that in …

android android-manifest android-activity main-activity
'TAG' has private access in 'android.support.v4.app.FragmentActivity'

Almost everything in my activity is working fine, except for wherever TAG is referenced. TAG gets a red line and …

java android android-fragments main-activity tess-two
Calling Custom ListView Adapter from Fragment Class Main Activity

I've written a few listView activities, as a proof of concept for myself that I could do it. Now, I'm …

android android-layout android-listview android-adapter main-activity
Android: How to call getActivity() in OnItemClickListener()?

I am trying to call getActivity() in the OnItemClickListener: class ViewTest{ //called in a fragment setOnItemClickListener(new OnItemClickListener() { @Override public …

java android casting onitemclick main-activity
Android Studio MainActivity.java:: error: ';' expected

I am new to Android development, When Android Studio in "MainActivity" class is compiled I get the following error I …

android android-studio main-activity oncreateoptionsmenu
Error: failed linking file resources

Every time I am trying to turn on my app it shows up an error: Error:error: '*/*' is …

android main-activity aapt2