Paused The entire lifetime of an activity happens between the call to onCreate() and the call to onDestroy() The visible lifetime of an activity happens between the call to onStart() and the call to onStop(). The foreground lifetime of an activity happens between the call to onResume() and the call to onPause(). Activities life cycle Tuesday, June 25, 13
★Streaming audio or video. ★SQL insert(Intent service.) ★Screen has turned off. ★The battery is low. ★Picture was captured. ★Initiate a service to perform some work based on the event. Tuesday, June 25, 13
to a structured set of data. Decide if you need a content provider. • You want to offer complex data or files to other applications. • You want to allow users to copy complex data from your app into other apps. • You want to provide custom search suggestions using the search framework. Tuesday, June 25, 13
> <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a TextView" /> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a Button" /> </LinearLayout> Tuesday, June 25, 13
android:drawable="@drawable/button_pressed" android:state_pressed="true" /> <item android:drawable="@drawable/button_focused" android:state_focused="true" /> <item android:drawable="@drawable/button_default" /> </selector> Define custom styles. If you can use defined values. Tuesday, June 25, 13
intent strings final String BASEURL; final String TAG; Layout Names activityLogin fragmentLogin adapterUser One folder for each components type. Guidelines PlayStore Keys on the repo! Tuesday, June 25, 13
provider Google Cloud Messaging for Android ★Send data from your server to users' Android-powered devices. Google+ Platform for Android ★Google+ Sign-In Google Play Distribution ★ Production, Beta Testing, Alpha Testing New Stuff Tuesday, June 25, 13