tuvise
(Marc Röschinger)
December 14, 2019, 6:47am
#1
Hello together,
have the problem that if i use jquery mobile with webviewer for opening html files it comes a error message that it cant open pdf files ???
also i have the problem that by opening listpicker the app make a crash
whats wrong ?
please help
Skorpion_Daten_V2.aia (278.0 KB)
Peter
(Moderator)
December 14, 2019, 6:48am
#2
Welcome. Please post an image of your blocks.
1 Like
tuvise
(Marc Röschinger)
December 14, 2019, 9:18am
#3
Hello Peter,
thank you for the welcome.
attached you can find the blocks and also the jquery file script
(is there an alternativ solution for adding assets after build the apk in Kodular as apptomarket ? )
tuvise
(Marc Röschinger)
December 14, 2019, 10:05am
#4
have just find out that the listpicker is working if i use the compiled apk from kodular,
as soon i add the assets with apptomarket and recompile the file it crash as soon i open a listpicker.
how can i add assets (folders and files without apptomarket) ???
here a screenshot of the jquery issue (cant load pdf file, but its a .html file ???)
Boban
(Boban Stojmenovic)
December 14, 2019, 10:46am
#5
File structure has to be retained within the assets folder
Italo
(Italo)
December 14, 2019, 11:13am
#6
I successfully added images to an app by opening the aia with 7Zip. I’m no expert on these matters but It seems like 7Zip maintain the original structure of the aia file when updating its content while other zip file managers not so much.
tuvise
(Marc Röschinger)
December 14, 2019, 11:18am
#7
Hello Boban,
have change the Url to “file:///android_asset/leer.html” and have still the same error message
tuvise
(Marc Röschinger)
December 14, 2019, 11:19am
#8
Hello Italo have tried 7Zip but apk cant be installed after adding assets
1 Like
Italo
(Italo)
December 14, 2019, 11:20am
#9
Oh, sorry, my bad. I was talking about the aia file. You want to open the apk! Didn’t read well.
Boban
(Boban Stojmenovic)
December 14, 2019, 11:23am
#10
Sorry I just remember that this has happened before that html file tries to open as a pdf and don’t recall that this was ever fixed
Boban
(Boban Stojmenovic)
December 14, 2019, 11:38am
#11
I’m getting old and senile however, see this thread for temporary solution until it gets fixed at some point
@KodularCreator still no solution for this
2 Likes
tuvise
(Marc Röschinger)
December 14, 2019, 12:07pm
#12
thank you very much boban the jquery is working now need only now to work on the size, its very small
only thing is now the listpicker, if i press on a listpicker the app is closing but only if i have decompiled the apk with apptomarket and recompiled it with all added assets and singning
do you have any idea whats wrong ?
any other solution for adding all my stuff into the assets ?
would be very great if there is a good solution
Boban
(Boban Stojmenovic)
December 14, 2019, 12:40pm
#13
Just did a quick test with html and assets, source from here @Taifun ’s App Inventor Code Snippets | Pura Vida Apps
Even if we add folders in the aia through 7zip and upload it to Kodular creator (it works in companion) however, after exporting the apk those folders are removed (strange as this has always workt before)
Decompiling and readding the folders, app works again
You may have missed something when you did it with AppToMarket as I did it only with apktool, see here if you may have missed something because AppToMarket is old and some things need to be removed
Boban
(Boban Stojmenovic)
December 14, 2019, 1:05pm
#14
You can PM me the contents of the manifest file so I can take closer look att it
1 Like
tuvise
(Marc Röschinger)
December 14, 2019, 1:14pm
#15
Thanks for your proposal, im not able to send you private message, comes i dont have permission or rights
i remove following text from the manifest file
android:theme="@ android:style/Theme"
manifest.txt (3.3 KB)
Boban
(Boban Stojmenovic)
December 14, 2019, 1:37pm
#16
I see that you are using listpicker, try removing this as well
< android:theme="@android:style/Theme.Black" />
2 Likes
tuvise
(Marc Röschinger)
December 14, 2019, 1:54pm
#17
wow boban you are the best, it works fine
thank you very much buddy, have search 4 days and you give me the solution for both in few minutes. Thanks a lot for that !!!
3 Likes
Boban
(Boban Stojmenovic)
December 14, 2019, 2:15pm
#19
Even though you said it
I didn’t understand it until I saw it in the manifest file and as I said
2 Likes
Taifun
Split this topic
December 14, 2019, 2:59pm
#20