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

Update android-quiz.md #1433

Merged
merged 2 commits into from
Apr 12, 2021
Merged

Update android-quiz.md #1433

merged 2 commits into from
Apr 12, 2021

Conversation

Parveshdhull
Copy link
Contributor

  1. In method "getDefaultSharedPrefarances(this).getString()" Second parameter is passed so that it can be returned, in case key doesn't exist. If we pass null as second parameter, then it will return null in case of null. Which we were trying to avoid

  2. Intent filters are used to make activities accessible to other apps using intents. So we have to choose option which have no intent filter to make sure it is not accessible by intent

19. In method "getDefaultSharedPrefarances(this).getString()" Second parameter is passed so that it can be returned, in case key doesn't exist. If we pass null as second parameter, then it will return null in case of null. Which we were trying to avoid

37. Intent filters are used to make activities accessible to other apps using intents. So we have to choose option which have no intent filter to make sure it is not accessible by intent
@Parveshdhull
Copy link
Contributor Author

First question No is 19, But second is 37. I don't know why github is showing it as 20 while I typed 37

image

@Ebazhanov
Copy link
Owner

  1. In method "getDefaultSharedPrefarances(this).getString()" Second parameter is passed so that it can be returned, in case key doesn't exist. If we pass null as second parameter, then it will return null in case of null. Which we were trying to avoid
  2. Intent filters are used to make activities accessible to other apps using intents. So we have to choose option which have no intent filter to make sure it is not accessible by intent

Hello, @Parveshdhull! Thanks a lot for your PR, I would suggest you to put your explanation inside *.md file because this will be useful in the future for other people! What do you think?

@Parveshdhull
Copy link
Contributor Author

Hey @Ebazhanov , I added explanation in android-quiz.md next to questions

Copy link
Owner

@Ebazhanov Ebazhanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks again @Parveshdhull for your valuable contribution! 👍

@Ebazhanov Ebazhanov merged commit f41c547 into Ebazhanov:master Apr 12, 2021
@Ebazhanov
Copy link
Owner

@all-contributors please add @Parveshdhull for code, design

@allcontributors
Copy link
Contributor

@Ebazhanov

I've put up a pull request to add @Parveshdhull! 🎉

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

Successfully merging this pull request may close these issues.

2 participants