Android App Lifecycle

Code

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        Log.d("LifecycleTest", "onCreate")
    }

    override fun onStart() {
        super.onStart()
        Log.d("LifecycleTest", "onStart")
    }

    override fun onResume() {
        super.onResume()
        Log.d("LifecycleTest", "onResume")
    }

    override fun onPause() {
        super.onPause()
        Log.d("LifecycleTest", "onPause")
    }

    override fun onSaveInstanceState(outState: Bundle) {
        super.onSaveInstanceState(outState)
        Log.d("LifecycleTest", "onSaveInstanceState")
    }

    override fun onRestoreInstanceState(savedInstanceState: Bundle) {
        Log.d("LifecycleTest", "onSaveInstanceState")
    }

    override fun onStop() {
        super.onStop()
        Log.d("LifecycleTest", "onStop")
    }

    override fun onDestroy() {
        super.onDestroy()
        Log.d("LifecycleTest", "onDestroy")
    }
}

https://github.com/jboegeholz/LifecycleTest

Debunking 3 iOS Development Myths

Let’s debunk some myths about iOS development:

Myth #1 – You need to code Objective-C

False – since 2014 you have an alternative: Swift. This language is open source under the Apache License 2.0 (since Swift 2.2) and even runs on Linux

Myth #2 – You need to be enrolled in the Apple Developer Program

False – To develop your app and test it on your own device you just need to have an Apple ID which You likely already have if you’ve ever purchased something in the iTunes or app store.

Side note: If you are looking forward to integrate Siri or Wallet or iCloud into your own app you’ll have to pay. Bummer 🙁

Myth #3 – You need to own a Mac (iMac, Mac Book, Mac Pro)

In theory yes, because you have to run XCode which is only available on Mac OS X. But wait: What if I run Mac OS X elsewhere? You can use a VMWare or Virtual Box as well or even build your own hackintosh.