Glass activated in the Android of the Annex



  • We've got the first activism, we're moving to 2nd, and there's a button. Come back. and there's a hardware button. Back♪ If I move on to the 2nd activism, and then I go back to one of the 2nd options, it's okay - I'm back on the first act, but if I press it again. Back, I'm throwing back on this activism, which means there's another copy in the glass. The question is, how can we arrange these transitions?

    public void cancelAction(View v) 
    { 
        Intent intent = new Intent(this, MainActivity.class); 
        startActivity(intent); 
        finish(); 
    }
    

  • QA Engineer

    You've got a bad code to get back. You're just creating a new activism that you put in the glass. I mean, if you open up the activists like this, there'll be a whole bunch of MainActivity in the glass. That's why the "Back" button doesn't work. What do you do? You don't have to create a new activism, just call the finish.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2