Open SouhaibBenFarhat opened 7 years ago
Please create superToast (not superActivityToast) in the class of Application which is independent of activity.
Thank you. that solve my problem... but i have a new issue, when i run the app that contain super toast on API 26 it always crash
Try to clear project,and rebuild it.
in your module-level build.gradle file, set your targetSdk to 25, then you get compatibility mode for SDK 26 and it works again
not how this should be handled, but it works for sdk 26
Do not set manually in your build.gradle file, try to set version of Comple and Build in "Build menu" as follow: Build-->Edit Build Types->Properties-->Comple Sdk Version OR Build Tools Version
Compile Sdk Version and Build Tools Version are not the same as targetSdk
Either way, use the platform toasts instead, they provide the same functionality and work out of the box without adding another dependency
targetSdk is a compatibility declare, if targetSdk version is same as (or higher than ) Version of Compile Sdk , then app ignores compatibility. Otherwise, if API Sdk is too low, then error in "java.lang.VerifyError".
SuperToast provides some cool functionalities which the platform toasts has not.
how to keep showing super toast even when i start a new activity