android - update a variable in another activity -


Thank you for seeing everyone and hope you will find a reply ... im updating a high-screen This is my adapter.

  Simple Adapter Adapter 1 = New Simple Adapter (this, List Normal, R.Lailout.List_Hoscor_Oro, New String [] {"catGeneral", "Score 1 "}, new int [] {r.id.text1, R.id.text2});   

This fills my list

  hashmap < String, string & gt; Temp = new Hashmap & lt; String, string & gt; (); Temp.put ("catGeneral", "Level 1"); Temp.put ("score1", String.valueOf (hScoreGen1) + "/ 10"); listGeneral.add (temporary);   

I want to change the value of hScoreGen1 , if it is low then new score ... By now I am in another activity that should change the value hScoreGen1 If (the total correction gt; scoring gt; current.scoreCatValue) {// currentScoreCatValue is the original value of hScoreGen1 if (currentScoreCat == 1) {// the current session is set to 1 from another activity HiScore .hScoreGen1 = Total Correction;

Instead of displaying the changing values ​​with my problem list view but showing prices ... hope you can help and I can add more codes if needed

update your adapter

  if (total correction> gt ; ScoreScreen. currentScoreCatValue) {// currentScoreCatValue is the original value of HScoreGen1 (currentScoreCat == 1) // // currentScoreCat is set to 1 other activity from HighScores.hScoreGen1 = Total improvements; HighScores.adapter1.notifydatachanged ();    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -