Sony Small Apps runOnUiThread





The Activity class is used to implement an application which has GUI. However, if you use SmallApplication class for implementation, you can launch the application as a Small Apps. According to the Sony API Reference, the SmallApplication class is similar to the Android Activity class but it doesn’t have the runOnUiThread method.

So let’s implement it:


package com.rosaneng.test;

import android.os.Handler;
import com.sony.smallapp.SmallApplication;

public class MainApplication extends SmallApplication {

public Handler handler;

@Override
public void onCreate() {
handler = new Handler();
super.onCreate();
}
private void runOnUiThread(Runnable runnable) {
handler.post(runnable);
}
}




DIY NFC Speaker

With a NFC sticker and proper software you can turn your old Bluetooth speaker into a NFC enabled one.

For this demonstration I used a NFC sticker that I got from TaoBao.







Cantonese Text to Speech on Android

Google puts a tremendous amount of work into its voice-synthesis technology, however for Chinese, the Android phones currently only can synthesize Putonghua. Google doesn’t support Cantonese yet but with some third party application, we can make our phones to “read aloud” Cantonese.




1. Install Ekho TTS Cantonese

ekho-tss-cantonese

QR Code:
qr-code-ekho-cantonese

2.  Go to Settings -> System -> Accessibility

android-accessibility

3. In Text-to-speech output, select Ekho TTS Cantonese as your preferred engine. You can adjust some options here such as the speech rate and voice pitch

android-text-to-speech-output-settings

4. Install Voice Out Simple TTS Client – There are other TTS clients that should work with Ekho too but I made this one for myself :)

voice-out-simple-tts

QR Code:
qr-code-voice-out-tts

5. Launch the Voice Out app, copy & paste some Chinese text on it and click on the play icon! (Remember to turn up the volume)

voice-out-simple-tts-action