Respected Sir
Happy Evening
i am doing student internship,
i am converting web application to android webview application.
downloaded b4a
downloaded example file "B4AExample.zip" from "https://www.b4x.com/android/forum/threads/ultimatewebview-custom-view.135666/"
and in that "txtUrl.Text" control i entered "https://app.evergreenelectric.in" and the webview display good and beautiful.
with single line of code got entire project.
Only problem i am facing is downloading the files (Excel and pdf Files) from the site within webview. but the same is working file when accessing the website.
GETTING ERROR AS BELOW :
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Download INITIALIZED
Error occurred on line: 81 (Main)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at com.uwebview.ultimatewebview._startfiledownload(ultimatewebview.java:3708)
at com.test.net.main._ultimatewebview1_filedownloadinitialized(main.java:570)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1040)
at com.uwebview.ultimatewebview._ondownloadinitialized(ultimatewebview.java:1981)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA$1.run(BA.java:352)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs: blob:https://app.evergreenelectric.in/3c18e813-abbd-408e-b56d-40625b6b896f
at android.app.DownloadManager$Request.<init>(DownloadManager.java:634)
at com.uwebview.ultimatewebview$MyDownloadListener.startDownload(ultimatewebview.java:4167)
... 24 more
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
Please help to solve the problem.
Thanks in advance
Happy Evening
i am doing student internship,
i am converting web application to android webview application.
downloaded b4a
downloaded example file "B4AExample.zip" from "https://www.b4x.com/android/forum/threads/ultimatewebview-custom-view.135666/"
and in that "txtUrl.Text" control i entered "https://app.evergreenelectric.in" and the webview display good and beautiful.
with single line of code got entire project.
Only problem i am facing is downloading the files (Excel and pdf Files) from the site within webview. but the same is working file when accessing the website.
GETTING ERROR AS BELOW :
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Download INITIALIZED
Error occurred on line: 81 (Main)
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:132)
at com.uwebview.ultimatewebview._startfiledownload(ultimatewebview.java:3708)
at com.test.net.main._ultimatewebview1_filedownloadinitialized(main.java:570)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:146)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1085)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1040)
at com.uwebview.ultimatewebview._ondownloadinitialized(ultimatewebview.java:1981)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA$1.run(BA.java:352)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs: blob:https://app.evergreenelectric.in/3c18e813-abbd-408e-b56d-40625b6b896f
at android.app.DownloadManager$Request.<init>(DownloadManager.java:634)
at com.uwebview.ultimatewebview$MyDownloadListener.startDownload(ultimatewebview.java:4167)
... 24 more
** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy (ignored)**
Please help to solve the problem.
Thanks in advance