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










share|improve this question







New contributor




Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    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










    share|improve this question







    New contributor




    Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      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










      share|improve this question







      New contributor




      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      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






      share|improve this question







      New contributor




      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 16 at 23:43









      Michael

      1




      1




      New contributor




      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Michael is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Place overridePendingTransition in onPause() like:



          public void onPause() {
          super.onPause();
          overridePendingTransition(0, 0);
          }





          share|improve this answer





















          • I added this to the activity, and it did not fix the problem
            – Michael
            Nov 17 at 4:18











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Michael is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          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

























          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);
          }





          share|improve this answer





















          • I added this to the activity, and it did not fix the problem
            – Michael
            Nov 17 at 4:18















          up vote
          0
          down vote













          Place overridePendingTransition in onPause() like:



          public void onPause() {
          super.onPause();
          overridePendingTransition(0, 0);
          }





          share|improve this answer





















          • I added this to the activity, and it did not fix the problem
            – Michael
            Nov 17 at 4:18













          up vote
          0
          down vote










          up vote
          0
          down vote









          Place overridePendingTransition in onPause() like:



          public void onPause() {
          super.onPause();
          overridePendingTransition(0, 0);
          }





          share|improve this answer












          Place overridePendingTransition in onPause() like:



          public void onPause() {
          super.onPause();
          overridePendingTransition(0, 0);
          }






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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










          Michael is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          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.















           


          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy