Recently for no reason my app factory creation has started to crash and will not open. I ran a debug version and the crash log is as follows:
Bad notification posted from package com.gmail.pbilton.footballscoreswatchmaker: Couldn't create icon: StatusBarIcon(icon=Icon(typ=RESOURCE pkg=com.gmail.pbilton.footballscoreswatchmaker id=0x7f020138) visible user=0 )
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1775)
android.os.Handler.dispatchMessage(Handler.java:105)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6541)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
I've tried changing all my icons for the notification to a material one, originally they were the invisible icon. I'm not sure what else I can do to rectify this issue.
This has only started happening after exporting the app following the recent tasker update.
Cheers
Phil
I really don't know where to go from here.
The only action I added after the tasker update was a variable set action.
My app crashes straight away upon trying to open it and the crash report is as above, yet I've deleted all actions relating to set icons.
Both are 5.0u7. It seems to me as if it's the run in foreground that I have when my tasks are triggered that is causing the crash. The thing is I can't remove this from my tasks otherwise the app will not run.
Unfortunately the only option I can see is to down grade to the previous version. Would you happen to know if I can do that and if so, how?
Cheers
>I really don't know where to go from here.
Perhaps you're stuck with a bad icon still (from the last Set Tasker Icon), try uninstalling and
generate-install again with 5.0u7 and not setting the icon.
The next thing I'm going to remove is the run in foreground option and see how that changes anything.
The very first action is now a flash to say opened app. That is not even showing before the crash.
It's the app icon that is set to a local image. If I select a tasker icon the app then works.
What is strange is if I set the icon of another app I made to the icon in question, that app still works.
It will only not work on the app I need it to work on. I've resized the icon and it's now 7kb.
If I set the icon to any local images, the app crashes. It will only work with tasker icons.
This bug came with the material update. What was weird is that notification actions created before the update still worked but new ones would cause the app to crash as soon as the notification action was performed.
Will be gutted if we can't get this fixed as got the icon done professionally to finish my app off.
It's the app icon that is set to a local image. If I select a tasker icon the app then works.
I only stumbled across it after removing every set icon action, run in foreground option etc from my app. That was the only thing left to try and change.
I fully agree with you about the need to use local images for app icons, especially if your selling/listing the app on the play store.
Unfortunately I can't get rid of run in the foreground from my app to get around this.
No I mean the main icon that is used for app icon.I only stumbled across it after removing every set icon action, run in foreground option etc from my app. That was the only thing left to try and change.
I was using local image for my app icon that is shown on the home screen and app draw.
But using local image for app icon, was causing the error above.
First off, I want to be clear about one thing. I am referring to an app compiled with Tasker Factory.I'd rather say I am sure of the opposite.If you use a local image as app icon, it works UNLESS the app is configured to run in foreground.When the app runs in background, no notification icon is displayed, hence the app icon is correctly used as app launch icon.If the app is configured to run in foreground, the icoun would be used as a notification icon, leading to an app crash.