My first iPhone app – Part 3

Waveform of Audio File Installing I’ve tried a component FDWaveformView. It uses CocoaPods, a dependecy management tool like Python’s pip or Rust’s cargo. sudo gem install cocoapods To add CocoaPods support to an existing project you must add a Podfile cd XcodeProjects/PlayalongTrainer touch Podfile The content of the Podfile is pretty straght forward: target ‘PlayalongTrainer’…

Android Alerts

Toast Toasts are simple message dialogs val text = “Hello toast!” val duration = Toast.LENGTH_SHORT val toast = Toast.makeText(applicationContext, text, duration) toast.show() Toast.makeText(this@MainActivity, “Hello Toast!”, Toast.LENGTH_SHORT).show() Alerts val builder = AlertDialog.Builder(this) builder.setTitle(“SocketTimeoutException”) builder.setMessage(“The server is not responding – Try again later”) builder.setPositiveButton(android.R.string.yes) { dialog, which -> Toast.makeText(applicationContext, android.R.string.yes, Toast.LENGTH_SHORT).show() } builder.setNegativeButton(android.R.string.no) { dialog, which ->…