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());

      }

    }

}

블로그 이미지

ligilo

행복한 하루 되세요~

,