Answer the question
In order to leave comments, you need to log in
How to open HTML file in WebBrowser for Android?
procedure Form1.ListBoxItem5Click(Sender: TObject);
var
Doc : string;
begin
{$IF DEFINED(iOS) or DEFINED(ANDROID)}
Doc := TPath.Combine(TPath.GetDocumentsPath, 'index.html');
WebBrowser1.Navigate('file://'+Doc);
{$ENDIF}
end;
Unable to open web page An error occurred
while loading the web page file:///data/user/0/com.demo.abc/files/index.html for the following reasons:
net::ERR_ACCESS_DENIED
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_USER_DICTIONARY" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question