I have never learned java before, and I am the first to use Android. So I learned it from the classic Hello word:
Create the first Android development project:
1. Select File> New> project and select Android project, 2. Click Next To Go To The following page: After you click Finish, the following Code : Public class helloandroid extends activity {
/** Called when the activity is first created .*/
@ Override
Public void oncreate (bundle savedinstancestate ){
Super. oncreate (savedinstancestate );
Setcontentview (R. layout. Main );
} You only need to make a slight modification: Public void oncreate (bundle savedinstancestate ){
Super. oncreate (savedinstancestate );
Textview TV = new textview (this); TV. settext ("Hello, Android"); setcontentview (TV );
} Then a new AVD is created. Choose Windows> Android SDK and AVD manager from the menu. The following page is displayed:
You can simply set it to run,
After running: