Showing posts with label tutorials. Show all posts
Showing posts with label tutorials. Show all posts
Monday, January 12, 2015

My Ultimate Guide to Android Activities

Starting off in my leveling up of my Android development skills is to "master" the Activity in Android implementation and all its quirkiness and idiosyncrasies.

So far these are the things I would like to cover (I will add others when I discover them):

  • Lifecycle
  • gotchas
  • Passing objects and values between Activities
  • Saved instances
    • How to test
  • Configuration changes
  • Starting an activity from a different app
  • Intents and its filters
  • Tasks and Back Stack

I will not do a tutorial here and put into my own words existing references about Android Activities. Instead I'll just put links here for my future reference. But it is a must that what I have put in here are already read (and digested).

Some tidbits that I know now that I missed before:
  • the EditText widget saves any text entered by the user and the CheckBox widget saves whether it's checked or not. The only work required by you is to provide a unique ID (with the android:id attribute) for each widget you want to save its state. If a widget does not have an ID, then the system cannot save its state.
  • The system will not call onPause() and onStop() if finish() is called within the Activity's onCreate() method. In this case, onDestroy() is called right away.
  • I should declare Intent's Extra constant strings with the full package name of my app
Monday, October 10, 2011

Make Android Allocate More Memory on your App

android:largeHeap="true". Introduced in Android 3.0 (API Level 11)
Sunday, August 7, 2011

Effective way to add Google APIs


http://dl-ssl.google.com/android/repository/addon.xml
.
.
and http://dl-ssl.google.com/android/repository/repository.xml
.
.
This is effective especially if you have crappy internet connection or if you are installing on an offline machine.
Reference: http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html and another one that is also useful is http://anggriawan.web.id/2010/08/android-sdk-for-offline-installation.html