#[SOLVED] Facing error while passing context

15 messages · Page 1 of 1 (latest)

azure vector
halcyon canyon
#

can you show how the context is passed into that class?

#

if you are in MainActivity use getContext() instead of context

azure vector
#

getContext() or getApplicationContext() ?

halcyon canyon
#

getContext if you are inside of an Activity

halcyon canyon
#

@dense relic if you want to use my repo as Jetpack Compose example i don't have any problem with that 🙂

dense relic
halcyon canyon
dense relic
halcyon canyon
azure vector
#

@halcyon canyon Thanks for help, but I am still finding the solution,

azure vector
#

@dense relic Oh I looked into it and It helped to resolve my problem, thanks 🫡