tag:blogger.com,1999:blog-7893207765857027452.post3606730955456034868..comments2024-03-28T20:17:54.972-07:00Comments on FalsinSoft: Qt Creator: include additional files inside Android apkUnknownnoreply@blogger.comBlogger13125tag:blogger.com,1999:blog-7893207765857027452.post-32246401279253635702020-03-05T04:08:42.720-08:002020-03-05T04:08:42.720-08:00If you a have question like that how to build an a...If you a have question like that <a href="https://www.whatech.com/mobile-apps/blog/638985-how-to-build-your-app-without-any-programming-knowledge" rel="nofollow">how to build an app</a>? Then you should know that there are some popular names like Weebly, Wix, and Squarespace which let you create a website with just a drag-and-drop option. While using sites like Woocommerce and Shopify, you can easily develop a web store in no time.<br />Johny Depphhttps://www.blogger.com/profile/03464459137949271055noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-63992896228417340822019-01-22T13:46:51.704-08:002019-01-22T13:46:51.704-08:00If you still are interested in this solution I jus...If you still are interested in this solution I just released a library allowing to manage apk expansion files in an easier way. You can find the library here:<br /><br />https://github.com/FalsinSoft/QtAndroidToolsFalsinSofthttps://www.blogger.com/profile/15067366220089501188noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-73512382240445397502018-11-29T05:37:10.473-08:002018-11-29T05:37:10.473-08:00I did use your example. It is working now based o...I did use your example. It is working now based on fixing the gradle file.chrishttps://www.blogger.com/profile/04773726122452993316noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-11502288353166977442018-11-29T00:51:57.674-08:002018-11-29T00:51:57.674-08:00Hi, sorry for delay in reply but didn't node t...Hi, sorry for delay in reply but didn't node the new comment. It seem very strange about all these problems. have you tried the example linked on top of the post as base to start from for your tests?FalsinSofthttps://www.blogger.com/profile/15067366220089501188noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-90107378889459899452018-11-21T10:57:53.943-08:002018-11-21T10:57:53.943-08:00I tried this again, by first deleting all contents...I tried this again, by first deleting all contents of my build folder. I did the above fix to the pro file and this time I used a different folder name, instead of assets. I know that androiddeployqt.exe will remove that folder every time. It hurled the first time, deleted build contents and voila my new folder and files are in the build area. But it doesn't seem to place my folders in the assets folder nor does it get into the APK file. I tried to incorporate a build step to move the files to the assets folder, but once again androiddeployqt.exe removed the files. So I tried to do the copy after the androiddeployqt.exe step and then call androiddeployqt.exe again. Still no files in assets folder. I had to make a change to build.gradle by adding my "new folder" into the assets.srcDirs variable. Sorry for the long comment but I wanted others to know that aside from the above mentioned fix, you also need to tweek the gradle file too. chrishttps://www.blogger.com/profile/04773726122452993316noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-65734721877558178322018-11-20T20:19:52.333-08:002018-11-20T20:19:52.333-08:00This seems to be a good solution, however, my file...This seems to be a good solution, however, my files don't get into the APK. I tried to place the files in another folder and they were there. Something about androiddeployqt.exe is deleting the folder first and then I lose my files.chrishttps://www.blogger.com/profile/04773726122452993316noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-33203694577158793532018-03-24T13:56:26.284-07:002018-03-24T13:56:26.284-07:00I recommend the next article to be Qt for Android ...I recommend the next article to be Qt for Android and "Google Play Store APK Expansion Files 2GB" :) ... if you search this topic there is almost nothing, just scattered information, no clear guides, and would be really helpful.<br />https://developer.android.com/google/play/expansion-files.htmlArtemishttps://www.blogger.com/profile/06238633016365741953noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-86581896861498969362018-03-24T10:42:31.423-07:002018-03-24T10:42:31.423-07:00From what I remeber Google increase the apk file s...From what I remeber Google increase the apk file size limit but surely not to 1GB. The reasons qslite database file doesn't work by opening directly from assets virtual file system is explained in the post (basically because assets is a read only file system). The only solution you have is to use some online storage service from where download all required files at first initialization. This is the way followed by all major navigator app for download maps as you surely know. However, cause the large amount of byte do download, I don't think it will be possible to find some free service. I guess you'll have to pay for it...FalsinSofthttps://www.blogger.com/profile/15067366220089501188noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-78618530114267098472018-03-24T10:14:01.272-07:002018-03-24T10:14:01.272-07:00configuration Qt5.10.1 on tablet Android API25 V7....configuration Qt5.10.1 on tablet Android API25 V7.1 <br /><br />Yes the test project is working as expected ... thank you<br />digging deeper i came to the following conclusion: <br /><br />The assets file system is not compatible (as expected) to the rest android file system.<br /><br />The result of my tests: (maybe there are even more issues) <br />---------------------------------------------------- <br />"assets:/logo.png" ok<br />"assets:/logo.PNG" error (case sensitive)<br /><br />"assets:/set_tings.ini" error (not acceptable underscore char)<br />"assets:/settings.ini" ok <br /><br />FILE *file; error (C object opens nothing)<br />QFile file("assets:/settings.ini"); ok<br /><br />ifnt = QFontDatabase::addApplicationFont("assets:/main.ttf"); error (returns -1)<br /><br />db = QSqlDatabase::addDatabase("QSQLITE", "db");<br />db.setDatabaseName("assets:/airnavigation.db"); error (doesn't open the database)<br />---------------------------------------------------- <br /><br />1) The above 'errors' are not compile errors, means doesn't work with the "assets:/" path file.<br />2) Under the "/sdcard/" path, all are working as expected .<br />3) Reading the relative documentations in Internet there are no such references, notices etc, i think would be good this information and results to be included here in this article. <br /><br />Unfortunately for my own project the mission seems to be impossible,<br />speaking for an "air navigation system" with a hundred of external files wanting to include all of them in one apk file, will be a painful story,<br />not mentioning the 50 MB limit of "Google Play Store", so i have not idea how to publish easily for customers this free appl. If you have a good idea how to handle the 1GB needed external files, am here to listen.<br /><br />again many thanks<br />ArtemisArtemishttps://www.blogger.com/profile/06238633016365741953noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-79740404728473163252018-03-23T03:18:29.050-07:002018-03-23T03:18:29.050-07:00Create a project example on the fly. I added the l...Create a project example on the fly. I added the link to the project at the begining of the post. Please try to test this working example for check if work on your environment.FalsinSofthttps://www.blogger.com/profile/15067366220089501188noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-89126092108401185482018-03-23T02:23:07.538-07:002018-03-23T02:23:07.538-07:00thank you ... seems the error insist ... i have no...thank you ... seems the error insist ... i have not any clue ... without the assets file the project is working right ... i could send you the pro file in case you want in your emailArtemishttps://www.blogger.com/profile/06238633016365741953noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-91979564929685138042018-03-22T01:28:59.647-07:002018-03-22T01:28:59.647-07:00my_files is defined in the same time you declared ...my_files is defined in the same time you declared my_files.path and my_files.files as in the first snippet. Are you sure you used the correct syntax inisde the pro file?FalsinSofthttps://www.blogger.com/profile/15067366220089501188noreply@blogger.comtag:blogger.com,1999:blog-7893207765857027452.post-45793755334756478502018-03-21T13:17:39.363-07:002018-03-21T13:17:39.363-07:00nice article ... with an obvious question ... wher...nice article ... with an obvious question ... where is defined the name "my_files" in pro ?<br />the compiler is giving me this error: -1: error: [install_my_files] Error 3 (ignored)Artemishttps://www.blogger.com/profile/06238633016365741953noreply@blogger.com