After setting up the Android Application development environment, you can't wait to make a simple littleProgramTry it.
- Use the file-> New-> Project menu to create a new project "android Project"
- Then fill in the necessary parameters
After the project is created, you can see it on the left side of the eclipse interface.
Open the SRC folder to write your ownCode. My code is as follows:
Ackage Ord. test; import android. app. activity; import android. OS. bundle; import android. widget. textview; public class testactivity extends activity {/** called when the activity is first created. * // @ override public void oncreate (bundle savedinstancestate) {super. oncreate (savedinstancestate); textview = new textview (this); textview. settext ("I love Android! "); Setcontentview (textview );}}
Then click "run" to view the running result on the android simulator,