Tasker crashes when trying to export kid app.

61 views
Skip to first unread message

Evelien W

unread,
Jun 5, 2016, 9:38:58 AM6/5/16
to Tasker
Hi all,

I run into a problem.

I found a way to store actual files into tasker tasks without help from plugins. As a test I wanted to try to export a kid app with a 1 mb mp3 file inside. I have no other pictures inside my project. only 1 scene with 1 button to start the task to generate the actual mp3 file.
The xml size of the project is approx. 1.57 mb. I do not think size is a problem (but I might be wrong), because I read for including pictures that there was a approx. 16 mb limit. (https://groups.google.com/forum/#!topic/tasker/byig2XGC12E) Inside Tasker preferences I enabled Appfactory to use external storage.
But I also read that :

"App Size: Generated apps are minimally around 640K but are unlikely to be significantly larger unless a lot of images are referenced. It's possible that this minimum can be reduced in the future. "

Could it be size/memory size issues somehow.

What could be the max size of an Tasker kid app. Because it would be awesome to realy include files in the kid apps.

btw, I am on a Oneplus 2. with 4gb memory.

Hope someone could help.

Evelien W

unread,
Jun 5, 2016, 10:07:16 AM6/5/16
to Tasker
Hello Pent, If you see this: I just send you the crash log and xml file.


Op zondag 5 juni 2016 15:38:58 UTC+2 schreef Evelien W:

Pent

unread,
Jun 6, 2016, 2:55:22 AM6/6/16
to Tasker
It is a size issue in that there's a limit from Android on the amount of
data that can be passed around via intent between applications/activities which
you're unfortunately hitting internally between two Tasker UI activities due to storing all
your data in the config.

The worry I have about enabling packaging of audio is that I get mixed up
as an 'enabler' in a hypothetical legal action from record companies against Tasker users
who are publishing copyrighted works inside apps on Play Store.

Pent

Evelien W

unread,
Jun 6, 2016, 8:28:36 AM6/6/16
to Tasker
Thanks for reacting.

Yes I see. Of course we cannot publish copyrighted material inside apps on Playstore. For that reason I understand that you rather not enable audio packaging.
What I rather care for is a way (offline storage) for wallpapers or pictures that can be transferred from the apk to the phone storage, (but do it offline). So I could include a few wallpapers within the apk, store it on the sd card and to be use it with  my widescreen wallpaper changer. Wallpapers often are larger then 1 mb. How can I include that within the apk so I could store it to the sdcard offline to be used from my app. (without downloading from the net.)
If I can just include wallpapers in the apk to be visible. I can't store it to the phones storage. and use it to crop and to be set as wallpaper.
Yesterday I have been testing. attached a file to it and trying to make an apk. 1mb file: Tasker crashes, between 469,39 kb and 258 kb tasker does not crash but cancelled apk creation. When I had a picture of 176 kb the apk was finally made. So I can store data somewhere between 0 and (Max is somewhere between 167 and) 258 kb big (small) to be copied on the phones storage.
I would like to use bigger picture files inside of the apk. So I am not asking to enabling packaging of audio, but storing larger pictures inside apk to be used on the users phone storage.

Hope you have an idea.

Thanks and Greetings Evelien


Op maandag 6 juni 2016 08:55:22 UTC+2 schreef Pent:

Pent

unread,
Jun 6, 2016, 9:01:10 AM6/6/16
to Tasker

Yes I see. Of course we cannot publish copyrighted material inside apps on Playstore. For that reason I understand that you rather not enable audio packaging.
What I rather care for is a way (offline storage) for wallpapers or pictures that can be transferred from the apk to the phone storage,

You want to get the pictures out the child app on the devices where it's installed ?

(but do it offline). So I could include a few wallpapers within the apk, store it on the sd card and to be use it with  my widescreen wallpaper changer. Wallpapers often are larger then 1 mb. How can I include that within the apk so I could store it to the sdcard offline to be used from my app. (without downloading from the net.)

If it's accessible, you can unzip the child APK to get the pictures.

If I can just include wallpapers in the apk to be visible. I can't store it to the phones storage. and use it to crop and to be set as wallpaper.

Sorry, didn't understand that bit. Ik versta trouwens het Nederlands.

Yesterday I have been testing. attached a file to it and trying to make an apk. 1mb file: Tasker crashes, between 469,39 kb and 258 kb tasker does not crash but cancelled apk creation. When I had a picture of 176 kb the apk was finally made. So ore data somewhere between 0 and (Max is somewhere between 167 and) 258 kb big (small) to be copied on the phones storage.

I would like to use bigger picture files inside of the apk. So I am not asking to enabling packaging of audio, but storing larger pictures inside apk to be used on the users phone storage.

Most actions which use pictures will cause the picture to be packaged with the APK. Setting an icon for a task or an image source
in a scene is the same.

Did you try the Load Image action then a Save Image action ? That should cause the picture to be packaged in the APK, and
when the task runs it will be stored wherever you specified in Save Image.

Pent

Evelien W

unread,
Jun 7, 2016, 3:45:46 PM6/7/16
to Tasker


Op maandag 6 juni 2016 15:01:10 UTC+2 schreef Pent:

Yes I see. Of course we cannot publish copyrighted material inside apps on Playstore. For that reason I understand that you rather not enable audio packaging.
What I rather care for is a way (offline storage) for wallpapers or pictures that can be transferred from the apk to the phone storage,

You want to get the pictures out the child app on the devices where it's installed ?

Yes.

(but do it offline). So I could include a few wallpapers within the apk, store it on the sd card and to be use it with  my widescreen wallpaper changer. Wallpapers often are larger then 1 mb. How can I include that within the apk so I could store it to the sdcard offline to be used from my app. (without downloading from the net.)

If it's accessible, you can unzip the child APK to get the pictures.

Sorry, Apk is not accessible.

If I can just include wallpapers in the apk to be visible. I can't store it to the phones storage. and use it to crop and to be set as wallpaper.

Sorry, didn't understand that bit. Ik versta trouwens het Nederlands.

Wow, That you understand dutch, I did not see that coming. :-) You are truly amazing. Ik bedoelde hier dat, als de wallpaper gewoon in een scene zichtbaar was, dan kon ik de wallpaper niet naar de sd kaart kopiëren.

Yesterday I have been testing. attached a file to it and trying to make an apk. 1mb file: Tasker crashes, between 469,39 kb and 258 kb tasker does not crash but cancelled apk creation. When I had a picture of 176 kb the apk was finally made. So ore data somewhere between 0 and (Max is somewhere between 167 and) 258 kb big (small) to be copied on the phones storage.
I would like to use bigger picture files inside of the apk. So I am not asking to enabling packaging of audio, but storing larger pictures inside apk to be used on the users phone storage.

Most actions which use pictures will cause the picture to be packaged with the APK. Setting an icon for a task or an image source
in a scene is the same.

Understood that part. So I was trying to intercept the new file source location in the apk, but that did not work.

Did you try the Load Image action then a Save Image action ? That should cause the picture to be packaged in the APK, and
when the task runs it will be stored wherever you specified in Save Image.

Oh my, I was thinking way to difficult. I have used that function before but not in an exported apk. Always thought when exported within an apk, the Load Image action does not store the wallpaper inside of the apk.
Maybe that is because I used that always with a variable. Glad I was wrong. Thanks for pointing me in the right direction.

Tested it with a 2 mb wallpaper and it works.

 I am very happy. Thank you very much.

Wishing all the best to you and your family.

Evelien


Pent

unread,
Jun 8, 2016, 1:41:45 AM6/8/16
to Tasker
Mooi zo :-)

Pent
Reply all
Reply to author
Forward
0 new messages