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