Skip to content
New issue

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

A function to detect whether init had been called previously, please #2

Open
martinellison opened this issue Mar 2, 2020 · 0 comments

Comments

@martinellison
Copy link

martinellison commented Mar 2, 2020

It would be nice to have a way of finding out whether the log had been initialised already (i.e. whether init had been called already). This is because Android apps are often restarted automatically (e.g. when the phone is rotated 90 degrees), which causes a call to Activity.onCreate() in the activity, which may result in a call to android_log::init() in Rust, which is an error after the first time.

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

No branches or pull requests

1 participant