티스토리 뷰
*
For the splash screen, it is kinda documented, but not at PhoneGap, rather on Android's docs, which makes sense.
For the splash screen, it is kinda documented, but not at PhoneGap, rather on Android's docs, which makes sense.
Do not take this for gospel truth, but it worked for me: Make your image, then drop it in res/drawable-*. Ie, a copy in each. I believe you are supposed to use different DPIs, but I didn't bother. Then, in your main activity Java file, do something like so:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html",700);
}
The 700 is the # of milliseconds to let the splash screen wait around.
*
You can use Dreamweaver CS5.5 with PhoneGap to do this by simply setting up the splash screen on: Site> Mobile Application > Application Setting. No coding required. You will only have to create a nice looking splash screen design in PNG format.
'모바일 > Android' 카테고리의 다른 글
안드로이드 모바일 브라우저 자바스크립트 콘솔 열기 (0) | 2012.03.18 |
---|---|
시작 Activity 설정 (0) | 2011.12.20 |
android sdk manager 업데이트 시도중 failed to install (0) | 2011.12.20 |
안드로이드 JSON 파싱 (0) | 2011.11.27 |
쓰레드(Thread) 와 핸들러(Handler) (0) | 2011.11.17 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Prototype
- Wordpress
- Mac
- PHP
- classic asp
- mssql
- iphone
- Linux
- git
- centos
- 한글
- Docker
- ASP
- javascript
- laravel
- nodejs
- iis
- IOS
- nginx
- sencha touch
- JQuery
- JSON
- 워드프레스
- Debug
- API
- Android
- macos
- IE
- 안드로이드
- CSS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함