17. I do…
Listen when the bell rings to Start, Stop
Think of the answer
Write the answer
Remember that I have written the answer
18. Android Correlation
Listen when the bell rings to Start, Stop
Broadcast Receivers
Think of the answer
Services
Write the answer
Activity
Remember that I have written the answer
Storage
19. Android SDK
It is a ZIP file ~ 500 MB
Extract it to some location
Open <SDK>eclipseeclipse.exe
Opens up ADT (Android Development Tools)
23. Android Activity
Foreground concept
A UI window containing various views (Button,
TextView, Label etc) – Similar to Java Swings
View elements may listen for user actions
An application can have various activities
One can start another (Opening one window from
another window) – Using startActivity(intent)
24. Launcher Activity
The activity that shows up when the app is launched
Manifest changes
<activity android:name=".ExampleActivity"
android:icon="@drawable/app_icon">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
27. Services
To run in background & no UI
Types - Started Services, Bound Services
Started Services
Owned by the application
Typically started by an activity
Bound Services
Owned by the application
Shared by others – Binder
28. Invoking a Service
startService()
Code to start a service
Intent intent = new Intent(this, HelloService.class);
startService(intent);
onStartCommand()
bindService()
onBind()
Requires an Intent action/Service class name
29. Started Service
Intent Service
Offloads to a Worker Thread
Provides a Work Queue
Stops the service once work is done
Less code
Normal Service
Manually create background thread
Multi threaded work
More code
35. Broadcast Receivers
Hey Friend! Inform us when the results are out!!
Above statement – Registration
You – Listener
Your Friend – Broadcaster
“When the results are out” – Intent
36. Broadcast Receivers
Register for event notifications
Signal Change Notification
On boot complete Notification
Battery Notification
Location Change Notification
Etc…
Communicate results from one app to other/others
38. Intent & Intent Filter
Intent – The intention behind doing something
Pass Data - Used in Services example
Intent Filter – What are my intentions?
What to listen for - Used in Broadcast receivers
39. Android Permissions
Declared in Manifest
Required if your app uses Android sensitive infrastructure
Read/Write contacts
Read Network State
Read/Write External Storage (App Storage)
OnBootComplete
Etc…
41. Benefits of learning Android
Massive market share (>80%) of global smartphone
share.
Samsung, Motorola, Sony, LG, HTC are major players
Play Store – 1 million apps
Get a fundoo job
Monetize your application
42. IT Slow Down
Not really
IT slow down – Services Company
Outsourcing problems
Indian Rupee depreciation
Product Companies still doing good
43. JOB !!!
Show your marks and answer simple Questions
Learn Android + One app in PlayStore
Data Structures + Algorithms + 1 Mobile Platform
44. JOB !!!
Show your marks and answer simple questions – Indian
Services Companies
Infosys, Wipro, HCL, CTS, TCS
Android – Good Product Companies
Zomato, Zynga, SAP, Ericsson
Data Structures + Algorithms + 1 Mobile Platform –
Premium Product Companies
Google, Yahoo, Microsoft, Akamai
45. What Now !!!
Students
Pick up Android SDK and use the developer link to kick start
Develop small apps and relish
Find an idea, develop it and put it in playstore.
25$ to put in PlayStore
46. What Now !!!
College
Get a Google Play Store account
Motivate students to develop more mobile apps
Let the students place their apps after thorough review
Benefits
Better job opportunities for students
Better brand image for the college
Increased technological competency