2010년 4월 11일 일요일

Android base layout 1

1) Total Project configration
2) Indicate setContentView from Main.java
package kr.mobileplace.lecture;

import android.app.Activity;
import android.os.Bundle;

public class Main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.myactivity);
    }
}

3) Setting Layout : /MobilePlace Lecture/res/layout/myactivity.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="0dp"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:background="#FF880000"
    />
<ImageView
android:src="@drawable/icon"
android:scaleType="center"
android:layout_width="0dp"
    android:layout_height="fill_parent"  
    android:layout_weight="2"
    android:background="#FF008800"
/>
<TextView  
    android:layout_width="0dp"
    android:layout_height="fill_parent"  
    android:layout_weight="1"
    android:background="#FF000088"
    />
</LinearLayout>

4) Result Image

Reference http://www.androidpub.com/

Android of the beginner 1

1. Environment setting
1) android-sdk_r05-windows.zip Download from http://developer.android.com/sdk/index.html

2)  Eclipse(ganymede)  >  help > softwareupdate > http://dl-ssl.google.com/android/eclipse/ > install

3) console window open in setting fold >

4) New Project > Android Project > MobilePlace Lecture

5)/MobilePlace Lecture/src/kr/mobileplace/lecture/MyActivity.java
package kr.mobileplace.lecture;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class MyActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.myactivity);
Log.d("MyTag", "Print Test Log");
}
}

6) /MobilePlace Lecture/res/layout/myactivity.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Let's android"
    />
</LinearLayout>

7) /MobilePlace Lecture/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="kr.mobileplace.lecture"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Main"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
<activity android:name=".MyActivity" android:label="My Activity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
    </application>
</manifest>

8) Run > Run Configuration

9) Result : Wait over one minute, it's long time. Look for the your result, MENU click!!!

Reference http://www.androidpub.com/

2010년 4월 8일 목요일

Open flash files(.fla) all complie source

mydoc=fl.documents;
for(var k=0;k<mydoc.length;k++){
 mydoc[k].testMovie();
 fl.closeAllPlayerDocuments();
}

 

to make file name : All+testMovie.jsfl

2010년 3월 31일 수요일

2010년 3월 30일 화요일

Translation Problem

Created with Flash, securities trading programs in English and Portuguese versions are making.

2010년 3월 13일 토요일