English 中文(简体)
选择使用电话的网上意见?
原标题:Find the WebView that Phonegap uses?

I ve yet to find an answer for this and it seems like such a simple task.

我需要找到在电话时使用电话的网络电文:

    super.loadUrl("file:页: 1android_asset/www/index.html");

I ve tried creating a new WebView in the main.xml file and loading the index.html page into it which only causes a Null Pointer Exception.

任何帮助都是巨大的。

页: 1

Edit:

下面的法典似乎实际上对观点进行了筛选,因为档案的尺寸为823比特,不管怎样,它只是黑体形象,没有显示。

能否在意见装满之前,立即进行筛选? 或者我做些什么是错的?

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.loadUrl("file:页: 1android_asset/www/index.html");


    View html = (View)super.appView.getParent(); 
    Bitmap bm2 = Bitmap.createBitmap(200, 300, Bitmap.Config.ARGB_8888);
    Canvas c2 = new Canvas(bm2);
    html.draw(c2);

    OutputStream stream = null;
    try {
      stream = new FileOutputStream(Environment.getExternalStorageDirectory() +"/bm2.png");
      bm2.compress(CompressFormat.PNG, 80, stream);
      if (stream != null) stream.close();
    } catch (IOException e) {
    } finally {
      bm2.recycle();
    }

}//end
问题回答

我的问候也一样,我也提到了“网上意见”,因此,我将提出职位安排(因此我今后可以再次找到这一解决办法)。

看见,网上意见似乎是受保护的可变代码,可从主文体获得。 因此,仅使用<条码>应用变量。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签