The main activity is the one which starts before the other ones.
Questions tagged [main-activity]
201 questions
-3
votes
1 answer
Unfortunately, [app] has stopped
I've successfully build this app but the app keep on crashing in my emulator/phone. It seen like it can't read my MainActivity
MainActivity.java
package com.example.remotelab;
private NavigationDrawerFragment mNavigationDrawerFragment;
…

sidster
- 7
- 1
-3
votes
2 answers
Quit popup and previous webpage are coming together when i press back button
when I press back button then Quit popup and previous page (in webview) are coming together. It should go previous page first, on the last page it should ask to quit.
Plzzzzzzzz help
MainActivity.java
package com.ravi.demoapp;
import…

user7791267
- 33
- 5
-3
votes
2 answers
Where is my MainActivity file?
Hello! Can you help me?
Why don't I see the MainActivity file in my project? Where is it?

Nancy Khorevich
- 53
- 2
- 11
-3
votes
1 answer
Why does declaring global variables result in application force close
It works fine when the variables are in onCreate scope, but I need to use the variables in onDestroy scope too so I made it global variables. but then my app force closed when opened.
public class MainActivity extends Activity {
GamePanel…

user3411184
- 71
- 1
- 10
-4
votes
1 answer
Why can't i call a method within a protected method of the same class
Within the MainActivity class I have got two methods - one public another protected.I am calling the public method from the protected method.I am running the app and the app crashes.If i cut/paste the code in the protected method everything works…

rov_0
- 7
- 6
-5
votes
1 answer
How to use classes in android
im not new to programming and to android at all, but I have a little problem. I can make some good apps work, but I fell like im not working very good with the classes issue. For Example, if I have a background that moving , or any other animations,…

Levi Omer
- 115
- 11