"Lung linh bóng nước con đò, Nhớ sao Chợ Mới câu hò thủy chung
Quê tôi miền đất anh hùng, Hôm nay vẫn đẹp vô cùng ai ơi!"

"Giờ thăm lại trường xưa trong khoảnh khắc
Cảnh còn đây người đi mất từ lâu..."

"對我而言台灣留下非常深刻的印象,我所去的每一個地方,我所見過的每一個人,這都是緣分!
再見大家,再見台灣!"

A greeting from Vietnam.

Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Saturday, September 21, 2013

ANDROID PROGRAMMING 3

1. Sound
1.1. Put the audio file into res/raw. 
1.2. Declaration
MediaPlayer mp;
mp = MediaPlayer.create(MainActivity.this, R.raw.btnsound); 
1.3. Call
mp.start();

Thursday, September 19, 2013

ANDROID PROGRAMMING 2

1. Running your application
+ AndroidManifest.xml: describes the basic characteristics of the app. You should set the  android:targetSdkVersion as high as possible and test your app on the corresponding platform version.
+ src/: contains main source files.
+ res/: contains some sub-directories for app resources. Here are just a few:
        ++ drawable-hdpi/: for drawable objects that are designed for high-density (hdpi) screen.
        ++ layout/: for files that define your app's user interface.
        ++ values/: for other various XML files that contain a collection of resources, such as string and color definitions.

ANDROID PROGRAMMING 1

1. Some terminologies:
+ JRE (Java Runtime Environment): is basically the Java Virtual Machine, covers the need of running applications. It also includes browser plugins for Applet execution. 
+ JDK (Java Developper Kit): include JRE, compiler, debugger,... for creating and compiling programs. It is a subset of SDK. 
+ Eclipse: provides comprehensive facilities for software development in some languages.  
+ Android SDK: include API libraries and developper tools for creating, test and debug Android apps. 
+ ADT Bundle: include Eclipse and Android SDK. It helps streamline your Android app development. 
+ ADT Plugin: extends the capabilities of Eclipse to let you quickly set up new project, create an app UI, add packages based on Android framework API, debug and export .apk files.