i can get the context with this way, but i got error when the app is run