splash screen for android phonegap

起動時の黒画面に画像を入れてみる。

Activity.javaのonCreateにこれを追加するだけでした。

super.setIntegerProperty(“splashscreen”, R.drawable.splash);

後は、
res/drawable-*/splash.png
を各サイズで追加

http://developer.android.com/resources/dashboard/screens.html



を参考にして。

ldpi : 240*320
mdpi : 320*480
hdpi : 480*800

にしてみました。

This entry was posted on 木曜日, 3月 1st, 2012 at 3:59 PM and is filed under Android, blog, PhoneGap. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。