Android Question Target SDK version is set to 26 ،, it comes out and doesn't work on Huawei phones

zavaree

Active Member
Licensed User
Longtime User
Hi Earl, I have an application where I download a pdf file and save it to a folder on my phone. When the Target SDK version is set to 26 ،, it comes out and doesn't work on Huawei phones, what is the cause and what is the solution?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You shouldn't limit your questions to a single member.

what is the cause and what is the solution?
We can only guess as you haven't provided any information. You should explain what "doesn't work" means, post the relevant code and the logs.
 
Upvote 0

zavaree

Active Member
Licensed User
Longtime User
You shouldn't limit your questions to a single member.


We can only guess as you haven't provided any information. You should explain what "doesn't work" means, post the relevant code and the logs.


The error I get is this error:

Error occurred on line: 898 (FirstPage)
java.io.FileNotFoundException: /storage/emulated/0/Android/data/Asm.FixBox.Aseman/files/Ghavanin-converted.pdf (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:308)
at java.io.FileOutputStream.<init>(FileOutputStream.java:238)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:373)
at Asm.FixBox.Aseman.firstpage._jobdone(firstpage.java:4109)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA$2.run(BA.java:360)
at android.os.Handler.handleCallback(Handler.java:891)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:7539)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
 
Upvote 0
Top