How refresh activity1 after open a popup that open another activity2 and put String to activity12019 Community Moderator ElectionAndroid ACTION_IMAGE_CAPTURE IntentWhy does startActivity work in one method and fail in another?buttons in listview help?ActivityNotFoundException even actions declared for FragmentsetText on button from another activity androidError TimePickerDialog. Here is the code:How to store the captured image from the camera into external sd card and then load it using another button into a grid?Activity can still call unbind service method. Is it normal?java.lang.NullPointerException when invoking onLoadFinished()In a single activity , I need to receive data from previous Intent,and again using Intent to open the camera?

What does おとこえしや mean?

Coworker uses her breast-pump everywhere in the office

My adviser wants to be the first author

Identifying the interval from A♭ to D♯

Good allowance savings plan?

Excess Zinc in garden soil

How to deal with a cynical class?

Potentiometer like component

Does Linux have system calls to access all the features of the file systems it supports?

Playing ONE triplet (not three)

Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlements

When were linguistics departments first established

Running a subshell from the middle of the current command

Time travel short story where dinosaur doesn't taste like chicken

Am I not good enough for you?

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?

Counter-example to the existence of left Bousfield localization of combinatorial model category

How could a female member of a species produce eggs unto death?

Rejected in 4th interview round citing insufficient years of experience

Does splitting a potentially monolithic application into several smaller ones help prevent bugs?

Sword in the Stone story where the sword was held in place by electromagnets

Should QA ask requirements to developers?

Single word request: Harming the benefactor

"However" used in a conditional clause?



How refresh activity1 after open a popup that open another activity2 and put String to activity1



2019 Community Moderator ElectionAndroid ACTION_IMAGE_CAPTURE IntentWhy does startActivity work in one method and fail in another?buttons in listview help?ActivityNotFoundException even actions declared for FragmentsetText on button from another activity androidError TimePickerDialog. Here is the code:How to store the captured image from the camera into external sd card and then load it using another button into a grid?Activity can still call unbind service method. Is it normal?java.lang.NullPointerException when invoking onLoadFinished()In a single activity , I need to receive data from previous Intent,and again using Intent to open the camera?










0















I have one activity_Menu that have a fragment Tabbusca that have a button that open one popup MenuLocation. In Menulocation the user select how the app can take your location. After choose, the user click in a button that open another activitylocationinsert for confirm, edit or insert the address data.



I got it take the string value, now i need pass the String for the activity Menu, and refresh.



The problem is, when a finish the popup the activity_Menu keeps in tem same place, and the activitylocationinser is call/create above. So... when i try to user StartActivity for call activity_Meny the app crash, cause exist a activity_Menu open.



open the fragment popup

callocation.setOnClickListener(new View.OnClickListener()
@Override
public void onClick(View view)
Intent op = new Intent (getActivity(), Location.class) ;
startActivity(op);


);

-----------------------------------------------------------
close fragment popup and open the insert/edit address


Intent intent = new Intent(Location.this, Localconfimacao.class);
startActivity(intent);
finish();


------------------------------------------------------------
take the String


@Override
public void onClick(View view)

txtgoogleend = ( ""+txtnumero.getText() +", "+ txtrua.getText()+", "+txtcidade.getText()+", "+txtcep.getText()+", "+complemento.getText());
Bundle bundle = new Bundle();
bundle.putString("txtend", ""+txtgoogleend.toString());
// set Fragmentclass Arguments
TabBusca txtMobile = new TabBusca();
txtMobile.setArguments(bundle);


Intent intent = new Intent(Localconfimacao.this, TabBusca.class);
startActivity(intent);
finish();


});
}

------------------------------------------------------------











share|improve this question




























    0















    I have one activity_Menu that have a fragment Tabbusca that have a button that open one popup MenuLocation. In Menulocation the user select how the app can take your location. After choose, the user click in a button that open another activitylocationinsert for confirm, edit or insert the address data.



    I got it take the string value, now i need pass the String for the activity Menu, and refresh.



    The problem is, when a finish the popup the activity_Menu keeps in tem same place, and the activitylocationinser is call/create above. So... when i try to user StartActivity for call activity_Meny the app crash, cause exist a activity_Menu open.



    open the fragment popup

    callocation.setOnClickListener(new View.OnClickListener()
    @Override
    public void onClick(View view)
    Intent op = new Intent (getActivity(), Location.class) ;
    startActivity(op);


    );

    -----------------------------------------------------------
    close fragment popup and open the insert/edit address


    Intent intent = new Intent(Location.this, Localconfimacao.class);
    startActivity(intent);
    finish();


    ------------------------------------------------------------
    take the String


    @Override
    public void onClick(View view)

    txtgoogleend = ( ""+txtnumero.getText() +", "+ txtrua.getText()+", "+txtcidade.getText()+", "+txtcep.getText()+", "+complemento.getText());
    Bundle bundle = new Bundle();
    bundle.putString("txtend", ""+txtgoogleend.toString());
    // set Fragmentclass Arguments
    TabBusca txtMobile = new TabBusca();
    txtMobile.setArguments(bundle);


    Intent intent = new Intent(Localconfimacao.this, TabBusca.class);
    startActivity(intent);
    finish();


    });
    }

    ------------------------------------------------------------











    share|improve this question


























      0












      0








      0








      I have one activity_Menu that have a fragment Tabbusca that have a button that open one popup MenuLocation. In Menulocation the user select how the app can take your location. After choose, the user click in a button that open another activitylocationinsert for confirm, edit or insert the address data.



      I got it take the string value, now i need pass the String for the activity Menu, and refresh.



      The problem is, when a finish the popup the activity_Menu keeps in tem same place, and the activitylocationinser is call/create above. So... when i try to user StartActivity for call activity_Meny the app crash, cause exist a activity_Menu open.



      open the fragment popup

      callocation.setOnClickListener(new View.OnClickListener()
      @Override
      public void onClick(View view)
      Intent op = new Intent (getActivity(), Location.class) ;
      startActivity(op);


      );

      -----------------------------------------------------------
      close fragment popup and open the insert/edit address


      Intent intent = new Intent(Location.this, Localconfimacao.class);
      startActivity(intent);
      finish();


      ------------------------------------------------------------
      take the String


      @Override
      public void onClick(View view)

      txtgoogleend = ( ""+txtnumero.getText() +", "+ txtrua.getText()+", "+txtcidade.getText()+", "+txtcep.getText()+", "+complemento.getText());
      Bundle bundle = new Bundle();
      bundle.putString("txtend", ""+txtgoogleend.toString());
      // set Fragmentclass Arguments
      TabBusca txtMobile = new TabBusca();
      txtMobile.setArguments(bundle);


      Intent intent = new Intent(Localconfimacao.this, TabBusca.class);
      startActivity(intent);
      finish();


      });
      }

      ------------------------------------------------------------











      share|improve this question
















      I have one activity_Menu that have a fragment Tabbusca that have a button that open one popup MenuLocation. In Menulocation the user select how the app can take your location. After choose, the user click in a button that open another activitylocationinsert for confirm, edit or insert the address data.



      I got it take the string value, now i need pass the String for the activity Menu, and refresh.



      The problem is, when a finish the popup the activity_Menu keeps in tem same place, and the activitylocationinser is call/create above. So... when i try to user StartActivity for call activity_Meny the app crash, cause exist a activity_Menu open.



      open the fragment popup

      callocation.setOnClickListener(new View.OnClickListener()
      @Override
      public void onClick(View view)
      Intent op = new Intent (getActivity(), Location.class) ;
      startActivity(op);


      );

      -----------------------------------------------------------
      close fragment popup and open the insert/edit address


      Intent intent = new Intent(Location.this, Localconfimacao.class);
      startActivity(intent);
      finish();


      ------------------------------------------------------------
      take the String


      @Override
      public void onClick(View view)

      txtgoogleend = ( ""+txtnumero.getText() +", "+ txtrua.getText()+", "+txtcidade.getText()+", "+txtcep.getText()+", "+complemento.getText());
      Bundle bundle = new Bundle();
      bundle.putString("txtend", ""+txtgoogleend.toString());
      // set Fragmentclass Arguments
      TabBusca txtMobile = new TabBusca();
      txtMobile.setArguments(bundle);


      Intent intent = new Intent(Localconfimacao.this, TabBusca.class);
      startActivity(intent);
      finish();


      });
      }

      ------------------------------------------------------------








      android refresh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 6 at 18:32









      Zoe

      12.5k74784




      12.5k74784










      asked Mar 6 at 17:32









      Joo Gabriel Arajo Gomes AlvesJoo Gabriel Arajo Gomes Alves

      11




      11






















          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          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
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55029023%2fhow-refresh-activity1-after-open-a-popup-that-open-another-activity2-and-put-str%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55029023%2fhow-refresh-activity1-after-open-a-popup-that-open-another-activity2-and-put-str%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

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко