700 likes | 831 Views
Developing android application by pankaj sarangi 11mtesd01 guide- mahendra k.r . choudhury SUIIT EMBEDDED SYSTEM DESIGN. About Android Development Environment Concepts for android development Design of the project Conclusion Future scope References. Points of discussion.
E N D
Developing android application bypankaj sarangi11mtesd01guide-mahendrak.r. choudhurySUIITEMBEDDED SYSTEM DESIGN
About Android Development Environment Concepts for android development Design of the project Conclusion Future scope References Points of discussion
The aim of this project is to design an application named as “Traveler Assistant” which helps user to keep a track of the expenses made during their travel and do a little other stuff. Before going to develop the actual development we should know what are the prerequsitefor developing the application
Andy Rubbin Co-founder of Android INC SVP, Mobile and Digital Content Google INC Android is a open software platform for mobile application development. Android is a complete stack which includes operating system, middleware and application. The operating system is powered by Linux and the application development is done using java
1.What are various building blocks of android app? 2. What is the life cycle of android app? 3. How does a app handles hardware events? 4. How does an app runs background jobs? 5. How to access the database? Basic questions on android
A description on what is to be done What is intent
Back ground job that has no pause or stopped stage what is service
A barrier between the application and the database so that the data base is not in inconsistent state Content provider
Alert messages like battery low etc What is broadcast receiver
• Applications - google applications -widgets -Android Market • Multitasking • SDK • Modifiability: Why Android is better ?
Software necessary for Android development are Java runtime environment(JRE) Eclipse IDE Android Software Development Kit(SDK) Android development plug-in tools(ADT) Android Virtual Device(AVD) or Emulator
eclipse C
Src Gen Res drawable layout values string menifest Files that makes an android app
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=http://schemas.android.com/apk/res/android //start package="com.pankaj.pankajdrawables“ //package //android name space decoration android:versionCode="1“ //used by the store android:versionName="1.0" > <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name“ //nmame android:theme="@style/AppTheme" > <activity //activity android:name="com.pankaj.pankajdrawables.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> //end
Traveler Assistant main screen Expense activity Face book and dial Expense item activity Alert dialogue Audio video The blue print of my project is given below Notification Broadcast receiver
MainActivity.java, ExpenseActivity.java, ExpenseItemActivity.java, ExpenseBR.java, TimeZoneChangeBR.java, IntentActivity.java Media.java, Video.java, Notifications.java, NotificationClickedActivity.java Java files
activity_main.xml expenselayout.xml addexpenselayout.xml intent_activity.xml audioplayer.xml video.xml activity_notifications.xml after_notification_is_clicked.xml strings.xml AndroidManifest.xml Xml files
A xml layout file activity_main.xml was created where there are two buttons named as login button and cancel button, two text views named as user id and password and two edit text where we can write into. Then a class is to be declared as MainActivity.java with an interface onClickwhere we can write the code. The xml file is linked to the code by R.layout.xml The reference to the objects on the UI are created by findViewById. Then we have to set the listener by the method setOnClickListener After this we have to implement the interface .inside interface implementation we have to display some message by the method Toast.makeText After running this application in eclipse we can see some text are displayed when the button is clicked Designing the main screen