Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Super toast does not keep showing when i finish the activity #117

Open
SouhaibBenFarhat opened this issue Jul 10, 2017 · 8 comments
Open

Comments

@SouhaibBenFarhat
Copy link

how to keep showing super toast even when i start a new activity

@ga25
Copy link

ga25 commented Jul 22, 2017

Please create superToast (not superActivityToast) in the class of Application which is independent of activity.

@SouhaibBenFarhat
Copy link
Author

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

@ga25
Copy link

ga25 commented Jul 23, 2017

Try to clear project,and rebuild it.

@SennaGehenna
Copy link

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

@ga25
Copy link

ga25 commented Oct 31, 2017

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

@SennaGehenna
Copy link

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

@ga25
Copy link

ga25 commented Oct 31, 2017

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".

@ga25
Copy link

ga25 commented Oct 31, 2017

SuperToast provides some cool functionalities which the platform toasts has not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants