Sample codes when learning android