We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[문제 상황] 안드로이드 SDK 함수를 사용하다보면, context가 필요할 때가 많다. 보통 Android Native 개발할 때는 this 혹은 Activity.this 이런 식으로 사용. But Flutter에서 안됨!
context
this
Activity.this
[해결 방법]
getApplicationContext()
mRegistrar.context()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
[문제 상황]
안드로이드 SDK 함수를 사용하다보면,
context
가 필요할 때가 많다.보통 Android Native 개발할 때는
this
혹은Activity.this
이런 식으로 사용.But Flutter에서 안됨!
[해결 방법]
getApplicationContext()
메인 Activity에서는 잘 되지만 다른 클래스에서 사용하면 null이 return된다.
클래스에 register를 생성 후
mRegistrar.context()
이런 식으로 호출하면 된다.The text was updated successfully, but these errors were encountered: