Can't resolve symbol FLAG_ACTIVITY_LAUNCH_TO_ADJACENT
up vote
0
down vote
favorite
When I add the code below Android Studio shows it's not resolved, knowing that I'm targeting API 28
intent.setFlags(Intent.FLAG_ACTIVITY_LAUNCH_TO_ADJACENT);
I tried to use its integer value
intent.setFlags(4096);
It showed me another error that I must used one or more of predefined flags.
add a comment |
up vote
0
down vote
favorite
When I add the code below Android Studio shows it's not resolved, knowing that I'm targeting API 28
intent.setFlags(Intent.FLAG_ACTIVITY_LAUNCH_TO_ADJACENT);
I tried to use its integer value
intent.setFlags(4096);
It showed me another error that I must used one or more of predefined flags.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When I add the code below Android Studio shows it's not resolved, knowing that I'm targeting API 28
intent.setFlags(Intent.FLAG_ACTIVITY_LAUNCH_TO_ADJACENT);
I tried to use its integer value
intent.setFlags(4096);
It showed me another error that I must used one or more of predefined flags.
When I add the code below Android Studio shows it's not resolved, knowing that I'm targeting API 28
intent.setFlags(Intent.FLAG_ACTIVITY_LAUNCH_TO_ADJACENT);
I tried to use its integer value
intent.setFlags(4096);
It showed me another error that I must used one or more of predefined flags.
asked Nov 14 at 2:20
Jack
153112
153112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You have a typo, it should be Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, and available for API 24 and above.
1
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You have a typo, it should be Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, and available for API 24 and above.
1
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
add a comment |
up vote
1
down vote
accepted
You have a typo, it should be Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, and available for API 24 and above.
1
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You have a typo, it should be Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, and available for API 24 and above.
You have a typo, it should be Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, and available for API 24 and above.
answered Nov 14 at 2:25
Aaron
1,6151212
1,6151212
1
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
add a comment |
1
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
1
1
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
You're welcome, usually when you get "Can't resolve symbol ...", chances are it's a spelling mistake, or a typo.
– Aaron
Nov 14 at 2:32
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292285%2fcant-resolve-symbol-flag-activity-launch-to-adjacent%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown