How can I disable the transition after a Google Sign In?
up vote
0
down vote
favorite
I'm making an application for my senior project that uses google sign in to let the user create an account more quickly. It was pretty easy to set up, but now I'm having an issue where after a sign-in occurs, a transition animation takes place which I don't want. It looks kind of like a bar falling from the top of the screen. I have looked at how to disable animations/transitions when starting a new activity, and I tried this:
private void signIn()
{
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
signInIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivityForResult(signInIntent, RC_SIGN_IN);
overridePendingTransition(0, 0);
}
The unwanted transition animation still occurs, however. I'm kind of new to Android development, and I couldn't find any more help on SO or in the documentation for google-signin, so I'm at the end of my rope here. How can I disable this unwanted animation!?
Example of unwanted transition behavior
android google-signin
New contributor
add a comment |
up vote
0
down vote
favorite
I'm making an application for my senior project that uses google sign in to let the user create an account more quickly. It was pretty easy to set up, but now I'm having an issue where after a sign-in occurs, a transition animation takes place which I don't want. It looks kind of like a bar falling from the top of the screen. I have looked at how to disable animations/transitions when starting a new activity, and I tried this:
private void signIn()
{
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
signInIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivityForResult(signInIntent, RC_SIGN_IN);
overridePendingTransition(0, 0);
}
The unwanted transition animation still occurs, however. I'm kind of new to Android development, and I couldn't find any more help on SO or in the documentation for google-signin, so I'm at the end of my rope here. How can I disable this unwanted animation!?
Example of unwanted transition behavior
android google-signin
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm making an application for my senior project that uses google sign in to let the user create an account more quickly. It was pretty easy to set up, but now I'm having an issue where after a sign-in occurs, a transition animation takes place which I don't want. It looks kind of like a bar falling from the top of the screen. I have looked at how to disable animations/transitions when starting a new activity, and I tried this:
private void signIn()
{
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
signInIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivityForResult(signInIntent, RC_SIGN_IN);
overridePendingTransition(0, 0);
}
The unwanted transition animation still occurs, however. I'm kind of new to Android development, and I couldn't find any more help on SO or in the documentation for google-signin, so I'm at the end of my rope here. How can I disable this unwanted animation!?
Example of unwanted transition behavior
android google-signin
New contributor
I'm making an application for my senior project that uses google sign in to let the user create an account more quickly. It was pretty easy to set up, but now I'm having an issue where after a sign-in occurs, a transition animation takes place which I don't want. It looks kind of like a bar falling from the top of the screen. I have looked at how to disable animations/transitions when starting a new activity, and I tried this:
private void signIn()
{
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
signInIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivityForResult(signInIntent, RC_SIGN_IN);
overridePendingTransition(0, 0);
}
The unwanted transition animation still occurs, however. I'm kind of new to Android development, and I couldn't find any more help on SO or in the documentation for google-signin, so I'm at the end of my rope here. How can I disable this unwanted animation!?
Example of unwanted transition behavior
android google-signin
android google-signin
New contributor
New contributor
New contributor
asked Nov 16 at 23:43
Michael
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Place overridePendingTransition
in onPause()
like:
public void onPause() {
super.onPause();
overridePendingTransition(0, 0);
}
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Place overridePendingTransition
in onPause()
like:
public void onPause() {
super.onPause();
overridePendingTransition(0, 0);
}
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
add a comment |
up vote
0
down vote
Place overridePendingTransition
in onPause()
like:
public void onPause() {
super.onPause();
overridePendingTransition(0, 0);
}
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
add a comment |
up vote
0
down vote
up vote
0
down vote
Place overridePendingTransition
in onPause()
like:
public void onPause() {
super.onPause();
overridePendingTransition(0, 0);
}
Place overridePendingTransition
in onPause()
like:
public void onPause() {
super.onPause();
overridePendingTransition(0, 0);
}
answered Nov 17 at 0:42
navylover
2,64021117
2,64021117
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
add a comment |
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
I added this to the activity, and it did not fix the problem
– Michael
Nov 17 at 4:18
add a comment |
Michael is a new contributor. Be nice, and check out our Code of Conduct.
Michael is a new contributor. Be nice, and check out our Code of Conduct.
Michael is a new contributor. Be nice, and check out our Code of Conduct.
Michael is a new contributor. Be nice, and check out our Code of Conduct.
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%2f53346789%2fhow-can-i-disable-the-transition-after-a-google-sign-in%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