This code loading a webpage not local works fine but when i put a local file there is an error: file not found. I'm using cocos2dx and in file.java that contains Activity i have a function that makes:
File file=new File("/android_asset/iCD_credits_it.html");
Uri uri = Uri.fromFile(file);
Intent browserIntent = new Intent(Intent.ACTION_VIEW);
browserIntent.setDataAndType(uri, "text/html");
browserIntent.setClassName("com.android.browser", "com.android.browser.BrowserActivity");
//browserIntent.setData(uri);
me.startActivity(browserIntent);
I have placed iCD_credits_it in Resource folder, and I can see it in assets folder of eclipse How can I display that webpage in browser? Thanks