import android.annotation.TargetApi; 추가
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.init();
if(android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1){
fixJellyBeanIssues();
}
//setContentView(R.layout.activity_main);
super.setIntegerProperty("loadUrlTimeoutValue", 600000);
super.loadUrl("file:///android_asset/www/index.html");
}
@TargetApi(16)
protected void fixJellyBeanIssues(){
System.out.println(super.appView.toString());
try{
super.appView.getSettings().setAllowUniversalAccessFromFileURLs(true);
}catch(NullPointerException e){
System.out.println(e.toString());
}
}
}
'개발자로 살기' 카테고리의 다른 글
Could not change executable permissions on the application (1) | 2013.04.22 |
---|---|
sencha touch 안드로이드 버전에서 iconCls 안나올때 (0) | 2013.04.17 |
phonegap pdf viewer plugin (1) | 2013.03.20 |
안드로이드 환경설정 (0) | 2013.03.12 |
webapp 000.0000 숫자 전화번호로 인식 (0) | 2012.12.24 |