안드로이드 개발 질문/답변
(글 수 45,052)
웹 uri로 해서 아이콘해갖구 apk만들어서
제핸드폰에 넣었거든요
실행도 잘되고 다 좋은데요 인터넷종료하면
웹뷰라는게 뜨면서 하얀화면이생겨요.
그래서 한번 더 뒤로가기 해야꺼지는데요.
이 웹뷰가 왜 뜨는지 모르겠어요 ㅜㅜ
아무래도 웹뷰랑 uri가 같이 뜨는거 같은데
어디를 삭제하는건지 몰라서..
삭제할 부분이 어딘지..좀 알려주세요 ㅜㅜ
자바소스부분이에요 ㅜㅜ
package com.WebView_1;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.net.Uri;
public class WebView_1 extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Uri uri = Uri.parse("http://www.hywoman.ac.kr");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
}
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
finish();