Swift (5)

swift51

Trying to use a storyboard. I personally prefer to write everything in code, not using GUIs.

swift52

VirtualBox on OS X

vboxUbuntu4

I think this is my first time to use VirtualBox to run Linux on OS X. If you are unlucky enough to use Windows, there is much more need to do so.

Android Studio

AndroidStudio

Three years ago, I suppose I was using Eclipse with ADT plugin, and now we have Android Studio.

Android2012

Many things become obsolete very quickly in this field.

AndroidStudio2

Swift and Audio

SwiftAudio1

Many people are now developing applications for iOS.

//
//  ViewController.swift
//

import UIKit
import AVFoundation

class ViewController: UIViewController, AVAudioPlayerDelegate {
    
    var audioPlayer:AVAudioPlayer!
    
    @IBOutlet var button:UIButton!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let audioPath = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("myfile", ofType: "mp3")!)
        audioPlayer = try!AVAudioPlayer(contentsOfURL: audioPath, fileTypeHint: nil)
        audioPlayer.delegate = self
        audioPlayer.prepareToPlay()
        audioPlayer.play()
        
    }
    
}

SwiftAudio2

The storyboard is just a dummy, but you can hear the sound with the Simulator.