I am creating an offline wallpaper app. I have added upto 50 images.
The app code is really simple. On my phone ( tested on multiple phones ) The app crashes.
I found out that the app crashed because i had the option of load high quality images in screen 1 enabled. without this option the app runs fine but the images that are loading are blurred.
Can anyone please give me a solution of how to fix this.
the images that i have in assets are .png and .jpg
A solution will be highly appreciated. Thanks.
Edits: The app is working fine on android 8+.
Is is only crashing on android 7 and below.
first of all you are not switching screens properly, you just open screen for button click but never close it, for that check out this guide: How to switch screens correctly
second, try to use dynamic image component to create dynamic images and set their images from assets, and i will highly recommend to call procedure Asynchronously using image utilities,
I have added “open other screen with start value” on the click of image… Is it correct? or should i make buttons and add images on the button? Please guide me.
So reduce your images to the dimensions actually required (on Screen1: 178x96 px) and load them into the required dimensions on the “wallScreen” screen.
And consider whether it is necessary to load / display all images at the same time on Screen1.Initialize.
For that i have to upload multiple images right? Or can i use different dimensions of one image in different parts of the app.
If i can then what is the process to change dimensions of image and use it?
Thanks.
u can do it manually by many editors but if you are in search of extension than https://puravidaapps.com/image.php
its better to edit images manually and than upload in assets or anywhere you upload
Kodular app size is limited. If you store more images then the app will definitely crash. So first build the app without the images from kodular and later on insert images on the app by decoding it using external softwares like apkstudio.