More Related Content
Similar to Web1.0のハイブリッドアプリ開発 (20)
Web1.0のハイブリッドアプリ開発
- 9. <body background="image/wall.gif">
<bgsound src="sound.wav">
<center>
<font color="#FF0000">
<marquee direction="right" scrollamount="35">
<big><big><big>Sorry!This Homepage is Japanese only!!</big></
big></big>
</marquee>
</font>
<font color="#FFAA00">このホームページは無断転載厳禁です!!</font>
<big><big><big>
1997/10/08から34人のお客様が訪問しました!!
</big></big></big>
<blink>キリ番を踏んだ人は必ず掲示板に報告してください</blink>
<u>踏み逃げ厳禁</u>
</center>
</body>
- 10. <body background="image/wall.gif">
<bgsound src="sound.wav">
<center>
<font color="#FF0000">
<marquee direction="right" scrollamount="35">
<big><big><big>Sorry!This Homepage is Japanese only!!</big></
big></big>
</marquee>
</font>
<font color="#FFAA00">このホームページは無断転載厳禁です!!</font>
<big><big><big>
1997/10/08から34人のお客様が訪問しました!!
</big></big></big>
<blink>キリ番を踏んだ人は必ず掲示板に報告してください</blink>
<u>踏み逃げ厳禁</u>
</center>
</body>
- 13. <body background="image/wall.gif">
<bgsound src="sound.wav">
<center>
<font color="#FF0000">
<marquee direction="right" scrollamount="35">
<big><big><big>Sorry!This Homepage is Japanese only!!</big></
big></big>
</marquee>
</font>
<font color="#FFAA00">このホームページは無断転載厳禁です!!</font>
<big><big><big>
1997/10/08から34人のお客様が訪問しました!!
</big></big></big>
<blink>キリ番を踏んだ人は必ず掲示板に報告してください</blink>
<u>踏み逃げ厳禁</u>
</center>
</body>
- 22. <body style="background-image:url(image/wall.gif);">
<audio src="sound.wav" autoplay></audio>
<div style="text-align:center; margin-left: auto; margin-right: auto;">
<div style="color: red; font-size: xx-large; overflow: -webkit-
marquee;">
<nobr>Sorry!This Homepage is Japanese only!!</nobr>
</div>
<div style="color: orange;">このホームページは無断転載厳禁です!!</div>
<div style="font-size: xx-large;">
1997/10/08から34人のお客様が訪問しました!!
</div>
<div style="text-decoration: blink;">キリ番を踏んだ人は必ず掲示板に報
告してください</div>
<div style="text-decoration: underline;">踏み逃げ厳禁</div>
</div>
</body>
- 28. <h1>Activityの修正</h1>
package com.example.phonegap;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
package com.example.phonegap;
import android.app.Activity;
import android.os.Bundle;
import com.phonegap.*;
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
super.loadUrl("http://example.com/index.html");
}
}
- 29. <h1>Manifestの修正</h1>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.html5"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk
android:minSdkVersion="1"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</activity>
</application>
</manifest>