Closed AndroXStudiO closed 1 year ago
when i used Custom Application Class its not change with sketchLogger class......see that screenshort. after changed SketchApplication to my custom, but its still available at SketchLogger.
sorry for my bad English 🙂
I feel like it should be expected that things are gonna stop working when you do that, and that the user's advanced enough to fix those issues on their own if they change the application class name. Anyway, show your custom application class, looks like it's returning null
in getContext()
which obviously breaks the toast.
See my CUSTOM Application class
Seems fine. Maybe you changed SketchLogger to not work anymore then. Can you show it, maybe as file this time?
"Maybe you changed SketchLogger to not work anymore then. Can you show it, maybe as file this time?"------------ i'm not understood this line
How did that file even compile? You used a different application class that's not SketchApplication
.
then what is my problem and how to solve it?
Try replacing all SketchApplication
references in SketchLogger.java with your custom application class' name.
SketchAplication class still available after used own application file.
already i have converted all SketchApplication codes with my custom application
Alright I think that's why it compiled. Still try changing SketchLogger though, that should fix your problem,
Upcoming bugfix will not generate SketchApplication.java when a custom application class is in use, and replace uses of SketchApplication in generated files like SketchLogger with the custom application class. Automatically adding methods like getContext()
to custom application classes won't happen though, at least not for now.
then how to change SketchLogger?
using JavaManager i have to write my own SketchLogger?
Using Java Manager, yes. Just copy the file that got generated.
Using Java Manager and Own SketchLogger class...its fix my issue ❤️ for now.
Should have been implemented with commit 09a45b7bf4b296260b3f87805e4baa75afb15396.
i got this error when i am using Custom Application Class
maybe that issue occurred for this line