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

Android: undefined Intent #10

Open
josh-m-sharpe opened this issue Jun 1, 2020 · 2 comments
Open

Android: undefined Intent #10

josh-m-sharpe opened this issue Jun 1, 2020 · 2 comments

Comments

@josh-m-sharpe
Copy link

Per the readme, I added:

+   @Override
+   protected void onNewIntent(Intent intent) {
+     this.setIntent(intent);
+     super.onNewIntent(intent);
+   }

to my activity, and now I see build errors like:

   protected void onNewIntent(Intent intent) {
                              ^
  symbol:   class Intent
  location: class MainActivity

Is the README incomplete? Maybe missing an import statement?

@mikejpeters
Copy link
Contributor

Yes I forgot to put in the readme that you should add: import android.content.Intent;

@josh-m-sharpe
Copy link
Author

I've been seeing issues with android links this morning (per my other ticket). Do you think it's better to use master now?

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

2 participants