<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="jp.ac.titech.cuten.sampletask"
+ package="jp.ac.titech.sharp4k.cuten.sampletask"
android:versionCode="1"
android:versionName="1.0" >
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
- <activity
- android:name=".Hello3TaskActivity"
- 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>
</manifest>
\ No newline at end of file
+++ /dev/null
-package jp.ac.titech.cuten.sampletask;
-
-import java.util.Timer;
-import java.util.TimerTask;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-public class Hello3TaskActivity extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- Timer timer = new Timer();
- timer.schedule(new TimerTask() {
- @Override
- public void run() {
- finish();
- }
- }, 3*1000);
- }
-}
--- /dev/null
+package jp.ac.titech.sharp4k.cuten.sampletask;
+
+import android.content.Context;
+
+import android.view.View;
+
+import android.widget.TextView;
+
+public class Hello3Task {
+ public Hello3Task() {}
+ public View createView(Context ctx) {
+ TextView tv = new TextView(ctx);
+ tv.setText("hello3task");
+ return tv;
+ }
+}