Download presentation
Presentation is loading. Please wait.
Published byPrimrose Walker Modified over 8 years ago
1
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products
2
Agenda What is Eclipse? Making My Own Android Application o Installing a platform o Creating an AVD o Creating a new Android project o Constructing different UI o Running Application!
3
What is Eclipse? Programming Interface used for mobile applications o Like Android! Programs in Java, C, and C++
5
Installing a Platform Open Eclipse Window → Android SDK and AVD Manager o Available Packages (Left side of window) Check Android Repository Choose latest vision Click Install Selected
7
Creating an AVD Open Eclipse Window → Android SDK and AVD Manager o Left of Window → Virtual Devices Click New button on right → Create New AVD Window appears Name = my_avd Choose target = platform emulator runs on Create AVD
9
Creating a New Android Project Open Eclipse File → New → Project o New Project Window opens Android → Android Project Target needs to be the same as AVD! Project Name: HelloAndroid Application Name: Hello, Android Package Name: com.example.helloandroid Create Activity: HelloAndroid
12
Android Projects Project Name o the name of the directory that will contain the project files Application Name o This is the human-readable title for your application, the name that will appear on the Android device Package Name o Package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under Create Activity o Name for the class stub that will be generated by the plugin, will be a subclass of Android's Activity class.
13
Constructing UI’s Open source code o HelloAndroid → src → com.example.helloandroid → HelloAndroid.java OR Open XML file o HelloAndroid → res → layout → main.xml At each point a user would manually program the UI to their digression
14
Run the Application Run → Run OR Click on the green play button on the Eclipse toolbar Emulator will appear as the UI you designed o Be patient! “Hello, Android”
15
Congratulations! You just made your first Android Application!
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.