App factory errors..

718 views
Skip to first unread message

Alok Sinha

unread,
Jul 3, 2014, 7:59:21 PM7/3/14
to tas...@googlegroups.com
Team,

I have had numerous hours of fun using tasker, appfactory and plugins. This is an awesome piece of application.

I hope this is the right forum to ask for AppFactory queries as well.

Background:
  - I am able to create apps from using appfactory.
  - However, there is this one project, which I have been working on - and have earlier created Apps from the same.

Problem statement
  - Of late, I am not able to compile this specific project.
  - It refuses to compile...(as an app)
  - it compiles upto Stage 5 - where it says, converting drawables into builtin. and then it just quits with error.

Things tried
  - Logs - Enabled the logs, there is nothing there that gives an error.
  - I have check, double-checked, triple checked the applications - without compiling all options of the application are working fine.
  - Since the error came after stage 5 - converting drawables into builtin - I thought it had to something with images. Earlier, I was using icon packs - I have since then removed all of them and am now using direct images on all places.


Where do I need to look at for these issues ?

What needs to be done for compiling.... other projects/tasks are compiling nicely.

Thanks in advance for help

Alok

Sean Williams

unread,
Jul 3, 2014, 11:51:01 PM7/3/14
to tas...@googlegroups.com
Tasker and app factory version?

Try browsing to the images with a different file browser or input the locations manually.

Alok Sinha

unread,
Jul 4, 2014, 1:47:29 AM7/4/14
to tas...@googlegroups.com
Tasker - 4.3u4
Appfactory - 4.3u4

I have checked with Es3 file explorer - the files exist.
Also, the application runs - in source format - completely with all working options. Its just that when it is exported.. the appfactory fails in the above step.

Alok

Sean Williams

unread,
Jul 4, 2014, 2:29:32 AM7/4/14
to tas...@googlegroups.com
Could be a bad icon, wrong location, missing icon (even tho it shows in Tasker). You really need to work through them eliminating all possibilities.

I'd start with moving all icons to the same location and entering the paths into Tasker manually. Or try removing icons one by one and each time export as an app.

Pent

unread,
Jul 4, 2014, 2:36:55 AM7/4/14
to tas...@googlegroups.com

  - Logs - Enabled the logs, there is nothing there that gives an error.

You've enabled debugging in the Kid configuration screen advanced settings ?

(described here: http://tasker.dinglisch.net/userguide/en/faqs/faq-appcreation.html#e2)

Pent

Alok Sinha

unread,
Jul 4, 2014, 3:27:00 AM7/4/14
to tas...@googlegroups.com
Well one can look at logs - only when the app is built... till then debug logs dont kick in.

And yes, the log - is enabled...

Alok Sinha

unread,
Jul 4, 2014, 3:29:25 AM7/4/14
to tas...@googlegroups.com
hmm... other than the system logs (log.txt) is there anything anywhere else that is created.

Sean Williams

unread,
Jul 4, 2014, 6:02:04 AM7/4/14
to tas...@googlegroups.com
I've just taken my own advice with no success.

I'm actually in a similar situation although I'm on the current Tasker b8 and app factory b6 so may not be entirely relevant.

My existing scenes with images can be exported but those with newly added images will fail.

Also since the Android 4.4.4 update the pick 'local image' option only allows the use of the built in android file picker giving an unusual file path like,

content://com.android.providers.media.documents/document/image%3A18145

instead of the usual,

file:///storage/emulated/0/icon.png

What's even stranger is entering in the file path manually has no effect on fixing app exporting. Also both file paths above display correctly in the scene when launched.

Sean Williams

unread,
Jul 4, 2014, 6:09:51 AM7/4/14
to tas...@googlegroups.com
Replaced the icons with ipack and built in icons and exporting works again. Seems to be an issue with user storage?

Pent

unread,
Jul 4, 2014, 6:14:15 AM7/4/14
to tas...@googlegroups.com
Sorry, I was thinking of the logging from the built app :-)

You need the SD log.

http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#x2

Pent

Alok Sinha

unread,
Jul 4, 2014, 7:02:15 AM7/4/14
to tas...@googlegroups.com
But I _don't_ want to use ipacks... need to use my own images....

Any guesses...

Pent

unread,
Jul 4, 2014, 9:33:26 AM7/4/14
to tas...@googlegroups.com
It actually works with 'direct' images ? What do you mean by 'direct' ? From SD/storage or builtin ?

Pent

Alok Sinha

unread,
Jul 4, 2014, 8:18:22 PM7/4/14
to tas...@googlegroups.com
I know it works with the direct images... It should.

But the problem I am facing is that the App factory still continues to fail the export to App. I am using a lot of images from one directory as the icons, scene images.

I am wondering if there is any way - but to rebuild the entire project :( ... this is going to be a long drawn story...

I also noticed in the logs, there was a pop-up about "scene destoryd" - notice the spelling on the destroyed...

I have since then upgraded to 4b8 - but still the export problem exists.

Alok

Sean Williams

unread,
Jul 5, 2014, 3:00:20 AM7/5/14
to tas...@googlegroups.com

Pent

unread,
Jul 5, 2014, 4:58:11 AM7/5/14
to tas...@googlegroups.com

https://docs.google.com/file/d/0B1P5DRf3yc2JVkljUUx1MHdlZ1E/edit?usp=docslist_api


Sorry, I'm being completely dense on this thread :-( It's actually the app factory log I need, not Tasker or the kid.
It will only be in the system log.

OP:


> I know it works with the direct images... It should.

I didn't *tell* you it worked with 'direct' images, I asked you whether it did. That's what ? means.

You didn't tell me what 'direct' images are yet.

If it's 'local media' images that are failing, could be an out-of-memory problem. Try pre-shrinking them to
see if makes a difference.

Pent

Sean Williams

unread,
Jul 7, 2014, 1:02:23 AM7/7/14
to tas...@googlegroups.com
On Saturday, 5 July 2014 09:58:11 UTC+1, Pent wrote:

Sorry, I'm being completely dense on this thread :-( It's actually the app factory log I need, not Tasker or the kid.
It will only be in the system log.

Pent

Sorry I'm not able to logcat.


I have done the following testing with the latest market 4.3u4m and betas 4.4b6m & 4.4b8m. Exporting a single project with one task, one scene and one image (image is a single PNG)

I reset app preferences in android settings before testing.


Play Store Test
---------------------------
Device: Nexus 4 KitKat 4.4.4 stock unrooted
Tasker Version: 4.3u4m
App Factory Version: 4.3u4

Scene: Element edit, Image, Local Media, invokes the android file picker. I am presented with the following options,

• Recent (Fails to import the image)
• (app) Google Drive (Fails to import the image)
• Images (Fails to import the image)
• Downloads (Fails to import the image)
• Internal storage (Fails to import the image)
• (app) Gallery (Imports the image and the kid app compiles without any issues)
• (app) Photos (Imports the image and the kid app compiles without any issues)
• (app) Es File Explorer (Imports the image from /storage/emulated/0/ directory but not from sub-directories and the kid app compiles without any issues)

Image file path in image element: file:///storage/emulated/0/REDSPIN.png

Captured Intent,
Action: android.intent.action.GET_CONTENT
Type: image/*


Beta Test
--------------------
Device: Nexus 4 KitKat 4.4.4 stock unrooted
Tasker Version: 4.4b6m & 4.4b8m
App Factory Version: 4.4b6

Scene: Element edit, Image, Local Media, invokes the android file picker. I am presented with the following options,

• Recent (Imports the image but errors on compiling the kid app)
• Images (Imports the image but errors on compiling the kid app)
• Downloads (Fails to import the image)
• Internal storage (Imports the image but errors on compiling the kid app)

Image file path in image element: content://com.android.externalstorage.documents/document/primary%3AREDSPIN.png

Captured Intent, Could not get the intent.



Pent

unread,
Jul 7, 2014, 12:29:27 PM7/7/14
to tas...@googlegroups.com

Beta Test
--------------------
Device: Nexus 4 KitKat 4.4.4 stock unrooted
Tasker Version: 4.4b6m & 4.4b8m
App Factory Version: 4.4b6

Scene: Element edit, Image, Local Media, invokes the android file picker. I am presented with the following options,

• Recent (Imports the image but errors on compiling the kid app)
• Images (Imports the image but errors on compiling the kid app)
• Downloads (Fails to import the image)
• Internal storage (Imports the image but errors on compiling the kid app) 


I see where the failed compilation is coming from, will fix.

Will try and find time to test Downloads.

Pent

Pent

unread,
Jul 8, 2014, 2:27:26 AM7/8/14
to tas...@googlegroups.com

I see where the failed compilation is coming from, will fix.

On second look, there's something else involved.

On KitKat+, when the user selects an image the system/selectionapp grants permission in the future for Tasker
to access the URI. So Tasker can show it again later on e.g. in a scene.

However, App Factory doesn't have this permission and so can't access the image to be able to build it into
the new APK.

Personally it iritates me greatly that they think this kind of thing is more important for 'security' than fixing the
useless static app permission model, but there you are.

Will have to make the images (copy of) available from Tasker to App Factory somehow.

Pent

Pent

unread,
Jul 8, 2014, 3:40:35 AM7/8/14
to tas...@googlegroups.com

Will have to make the images (copy of) available from Tasker to App Factory somehow.

Could do this relatively elegantly, hopefully it will be working for you again next update.

Pent

Pent

unread,
Jul 8, 2014, 7:07:28 AM7/8/14
to tas...@googlegroups.com

• Downloads (Fails to import the image)


I had no trouble selecting a PNG of a few 100k (Nexus 5,  stock Android 4.4.4, Tasker beta) from Downloads, maybe it's a huge file
you're trying with ?

Pent

Sean Williams

unread,
Jul 8, 2014, 7:43:31 AM7/8/14
to tas...@googlegroups.com
Strange, no its only 15kb

Thanks for looking into this I've noticed the new beta post, will test again tonight and get back to you.

Thanks again for the impeccable support!

Sean Williams

unread,
Jul 9, 2014, 12:46:44 AM7/9/14
to tas...@googlegroups.com
Tested and all working nicely on b9.

Sean Williams

unread,
Jul 9, 2014, 8:47:47 AM7/9/14
to tas...@googlegroups.com
Sorry the Downloads folder test was an error on my part. File had been moved but was still listed.

Anyway exported several apps all images exported without a hitch.

Alok Sinha

unread,
Jul 14, 2014, 5:08:59 AM7/14/14
to tas...@googlegroups.com
Have checked with b10.

Working for me, once tasker pref, appfactory pref refreshed...

Alok

srikanth nammi

unread,
Jul 19, 2014, 10:01:20 AM7/19/14
to tas...@googlegroups.com
hi alok, could you pls share the apk of app factory. 4.3u4.
Reply all
Reply to author
Forward
0 new messages