달력

52024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

'Lecture Notes > Android Games' 카테고리의 다른 글

Step03_11. Basic AlertDialog and Toast  (0) 2011.05.20
Step03_09. Event Sudoku  (0) 2011.05.20
Step03_05. Background Sudoku  (0) 2011.05.20
Step03_03. Button_Sudoku  (0) 2011.05.20
Step01_02. Basic HelloJavaStyle  (0) 2011.05.20
Posted by kingjung
|

'Lecture Notes > Android Games' 카테고리의 다른 글

Step03_09. Event Sudoku  (0) 2011.05.20
Step03_07. Landscape Sudoku  (0) 2011.05.20
Step03_03. Button_Sudoku  (0) 2011.05.20
Step01_02. Basic HelloJavaStyle  (0) 2011.05.20
Step01_01. Basic HelloAndroid  (0) 2011.05.20
Posted by kingjung
|

'Lecture Notes > Android Games' 카테고리의 다른 글

Step03_09. Event Sudoku  (0) 2011.05.20
Step03_07. Landscape Sudoku  (0) 2011.05.20
Step03_05. Background Sudoku  (0) 2011.05.20
Step01_02. Basic HelloJavaStyle  (0) 2011.05.20
Step01_01. Basic HelloAndroid  (0) 2011.05.20
Posted by kingjung
|

'Lecture Notes > Android Games' 카테고리의 다른 글

Step03_09. Event Sudoku  (0) 2011.05.20
Step03_07. Landscape Sudoku  (0) 2011.05.20
Step03_05. Background Sudoku  (0) 2011.05.20
Step03_03. Button_Sudoku  (0) 2011.05.20
Step01_01. Basic HelloAndroid  (0) 2011.05.20
Posted by kingjung
|

'Lecture Notes > Android Games' 카테고리의 다른 글

Step03_09. Event Sudoku  (0) 2011.05.20
Step03_07. Landscape Sudoku  (0) 2011.05.20
Step03_05. Background Sudoku  (0) 2011.05.20
Step03_03. Button_Sudoku  (0) 2011.05.20
Step01_02. Basic HelloJavaStyle  (0) 2011.05.20
Posted by kingjung
|

'Lecture Notes > Android NDK' 카테고리의 다른 글

Introduction to Android NDK Programming  (0) 2010.07.15
Posted by kingjung
|
Posted by kingjung
|
Posted by kingjung
|
Posted by kingjung
|
Posted by kingjung
|
Android NDK is a toolset that lets you embed components that make use of native code in your Android applications

안드로이드 NDK를 이용한 Hello, World 기본 프로그램 만들기


Posted by kingjung
|

1. android source code (JavaStyle.java)
package com.example.oldstyle;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import java.util.Date;

public class JavaStyle extends Activity implements View.OnClickListener {
 Button btn;
 
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       
        btn = new Button(this);
        btn.setOnClickListener(this);
        setContentView(btn);
        //setContentView(R.layout.main);
    }
   
    public void onClick(View view) {
     updateTime();
    }
   
    private void updateTime() {
     btn.setText(new Date().toString());
    }
}

2. AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.oldstyle"
      android:versionCode="1"
      android:versionName="1.0">
    <application>
        <activity android:name=".JavaStyle">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
    <uses-sdk android:minSdkVersion="2" />

</manifest>

'Lecture Notes > Android Basics' 카테고리의 다른 글

안드로이드 프로그램 시작  (0) 2010.07.20
안드로이드 설치 및 개발 환경 구축  (0) 2010.07.20
Default Android Program (Basic)  (0) 2010.06.04
WIPI Basic Program  (0) 2010.06.03
J2ME Basic Program  (0) 2010.06.03
Posted by kingjung
|

1. main.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="@string/hello"
    />
</LinearLayout>

2. strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="hello">Hello World, DefaultAndroid!</string>
    <string name="app_name">DefaultAndroid</string>
</resources>

3. android source code (DefaultAndroid.java)
package com.example.defaultandroid;

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

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

4. AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.defaultandroid"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".DefaultAndroid"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="7" />
</manifest>

'Lecture Notes > Android Basics' 카테고리의 다른 글

안드로이드 설치 및 개발 환경 구축  (0) 2010.07.20
Javastyle Android Program (Basic)  (0) 2010.06.04
WIPI Basic Program  (0) 2010.06.03
J2ME Basic Program  (0) 2010.06.03
Basic Framework : Java SWING Program  (0) 2010.06.03
Posted by kingjung
|


 import org.kwis.msp.lcdui.*;
 import org.kwis.msp.lwc.*;

 public class HelloWorld extends Jlet {   
    protected void startApp(String args[]){
         Display dis = Display.getDefaultDisplay( );
        dis.pushCard(new SampleCard( ));
    }

    
protected void pauseApp( ) {
    }

     
protected void resumeApp( ) {
     }
  
     protected void destroyApp(boolean b) {
     }
 }

 class SampleCard extends Card  {
     int color = 0xff0000;
     public void paint(Graphics g) {
         g.setColor(color);
         g.fillRect(0, 0, getWidth( ), getHeight( ));
         // Draw a string
         g.setColor(0);
         g.drawString("Hello World", 10, 10, g.TOP | g.LEFT);
     }
 }

'Lecture Notes > Android Basics' 카테고리의 다른 글

Javastyle Android Program (Basic)  (0) 2010.06.04
Default Android Program (Basic)  (0) 2010.06.04
J2ME Basic Program  (0) 2010.06.03
Basic Framework : Java SWING Program  (0) 2010.06.03
Basic Framework : JAVA AWT Program  (0) 2010.06.03
Posted by kingjung
|


import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class HelloWorld extends MIDlet {
   private Display display;
 
   public HelloWorld() {
      display = Display.getDisplay(this);
   }

   /* startApp() : call when MIDlet executes */

   public void startApp() {
      TextBox t = new TextBox("Hello, World!", "Welcome To J2ME MIDP", 256, 0);
      display.setCurrent(t);
   }

   /* pauseApp() :  call when MIDlet suspends */

   public void pauseApp() {
   }

   /* destroyApp() : call when MIDlet stops */

   public void destroyApp(boolean unconditional) {
   }

}

'Lecture Notes > Android Basics' 카테고리의 다른 글

Javastyle Android Program (Basic)  (0) 2010.06.04
Default Android Program (Basic)  (0) 2010.06.04
WIPI Basic Program  (0) 2010.06.03
Basic Framework : Java SWING Program  (0) 2010.06.03
Basic Framework : JAVA AWT Program  (0) 2010.06.03
Posted by kingjung
|

import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class SWINGCaseFive extends JFrame implements ActionListener  {
             public static final int WIDTH = 300;
             public static final int HEIGHT = 200;

 public SWINGCaseFive() {
    setTitle("Swing Case 5");
    setSize(WIDTH, HEIGHT);
    setDefaultCloseOperation(EXIT_ON_CLOSE);

    JButton endButton = new JButton("Click to End the Program");
    endButton.addActionListener(this);
    getContentPane().add(endButton);
    setVisible(true);
 }

 public static void main(String[] args) {
    new SWINGCaseFive();
 }

 public void actionPerformed(ActionEvent e) {
    System.exit(0);
 }

}

'Lecture Notes > Android Basics' 카테고리의 다른 글

Javastyle Android Program (Basic)  (0) 2010.06.04
Default Android Program (Basic)  (0) 2010.06.04
WIPI Basic Program  (0) 2010.06.03
J2ME Basic Program  (0) 2010.06.03
Basic Framework : JAVA AWT Program  (0) 2010.06.03
Posted by kingjung
|

import java.awt.*;
import java.awt.event.*;


public class AWTCaseFive extends Frame implements ActionListener  {
            public static final int WIDTH = 300;
            public static final int HEIGHT = 200;

public AWTCaseFive() {
    setTitle("AWT Case 5");
    setSize(WIDTH, HEIGHT);

    Button endButton = new Button("Click to End the Program");
    endButton.addActionListener(this);

    add(endButton);

    setVisible(true);
 }

 public static void main(String[] args) {
    new AWTCaseFive();
 }

 public void actionPerformed(ActionEvent e) {
    System.exit(0);
 }

}

'Lecture Notes > Android Basics' 카테고리의 다른 글

Javastyle Android Program (Basic)  (0) 2010.06.04
Default Android Program (Basic)  (0) 2010.06.04
WIPI Basic Program  (0) 2010.06.03
J2ME Basic Program  (0) 2010.06.03
Basic Framework : Java SWING Program  (0) 2010.06.03
Posted by kingjung
|
o 2010
  - Android Programming
  - Windows Mobile Programming

o 2003 ~ 2009
  - Games Programming
  - Java Programming / Java Application Programming
  - Mobile Game Programming (J2ME, WIPI, WIPI GNEX)
  - C Application Programming / C Programming / C++ Progamming
  - System Programming
  - Visual Basic Programming
  -  Network Programming

  - Game Database Management / Practical Database
  - Basics of Database / Basics of UNIX / Basics of Homepage
  - Skills of Presentation

Posted by kingjung
|