Android Activity and androidactivity
For the issue of Activity page Jump in Android
If your button is not in Activity, use context to start, that is, the above mContext to start, startActivity (new Intent (mContext, xxx. class ))
Change to mContext. startActivity (new Intent (xxx ));
In fact, the previous startActivity does not work because it is this. startActivity by default. You only need to use the Context Environment to start the current class when it is a subclass of Activity.
Therefore, it is better to know more about the underlying functions of the Code. Generally, this. setView is used for all of my setviews. It is clear that it can also enable eclipse to automatically prompt...
Which of the following statements is best for the Activity class in Android?
Activity is a container of the image. Various controls (buttons, text, check boxes, etc.) are placed in the container to form the software interface ~
Activity is visible. If no control is added, it is like a blank form in Windows.
Use Public Class activity01 extends Activity {} to create an activity01 Activity Class, that is, an Activity