我正在尝试将Value保存在ProgressBar中,因此如果我关闭App(终止它)并再次运行它,则会再次显示相同的值。我通过使用共享偏好尝试了这个,但它仍然没有保存,我不知道如何解决它。我查找了我能在互联网上找到的所有东西,但它总是保持非常简单,比如“如何将一个entertext保存到txt / xml”,但这不是我想要的。
$('#MyFormId')[0].reset();
在我的onCreate中,我也宣布了那些变量
protected void onPause(){
super.onPause();
fuelBar = (ProgressBar) findViewById(R.id.fuelProgressBar);
SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);
incFuel = sharedPref.getInt(FUELBAR, fuelBar.getProgress());
fuelBar.setProgress(incFuel);
}
public void onResume(){
super.onResume();
SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putInt(FUELBAR, fuelBar.getProgress());
editor.commit();
}
public void onStop(){
super.onStop();
fuelBar = (ProgressBar) findViewById(R.id.fuelProgressBar);
SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);
incFuel = sharedPref.getInt(FUELBAR, fuelBar.getProgress());
fuelBar.setProgress(incFuel);
}
在我的MainActivity中
SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
我真的没有一点线索我缺少什么,并非常感谢一些帮助。
答案 0 :(得分:1)
我可以看到一些问题。
首先,您不需要<html>
<head>
<style type="text/css">
.st0{fill:#231F20;}
.st1{fill:#FFC510;}
.st2{fill-rule:evenodd;clip-rule:evenodd;fill:#FFC510;}
</style>
</head>
<body>
<svg>
<g>
<g id="tomato">
<path id="1" class="st0 bracketRight" d="M50.4,248.1c3.2-0.5,5.8-0.8,7.6-0.8c2.7,0,4,0.6,4,1.7v0.1c-1.5,5.6-2.5,11.9-2.9,19
c-1.2,15.9-1.8,24.5-1.9,25.8c-0.3,4.7-0.5,13.9-0.7,27.8c-1,20.9-1.3,31.4-1.1,31.4l-0.1,0.6c0,0.6-0.1,1.5-0.3,2.7h0.3
c2.8-3.5,4.2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8,2.6-1.3,4.7-1.3c2.6,0,4.8,1.2,6.6,3.6c1.3,2.2,1.9,4.7,1.9,7.6v1.8h0.1
c4.4-5.4,7-8.7,7.8-9.7c0.9-1.9,2.4-3.3,4.4-4.2c1.2-0.5,2.3-0.7,3.3-0.7h0.1C159.9,286.3,159.9,286.3,159.9,286.2z M124,302.5
v0.1c1.6,0.1,3.3,0.2,5,0.2h0.2c0.1,0,0.1-0.1,0.1-0.2v-0.6l0.1-0.9C129.3,301.2,127.5,301.6,124,302.5z"/>
<path id="4" class="st1 bracketRight " d="M258.6,282.8c0.2,0,0.3,0.2,0.3,0.5c0,0.8-0.1,3.2-0.3,7.3c0.2,6.4,0.4,9.6,0.8,9.6c2.1,2.7,3.6,6,4.3,10
c0.2,1.4,0.3,2.4,0.3,3v0.4c0,0.7-0.1,1.7-0.4,3.1c6.7,2.5,11.1,5.9,13.4,10.1c1.1,1.8,1.6,3.6,1.6,5.4c0,7.2-4.8,13.2-14.5,18
c-6,2.8-13,4.2-20.8,4.2h-1c-18.4,0-30.1-5.9-35.1-17.6c-0.9-2.7-1.4-5.3-1.4-7.6v-0.8c0-3.8,0.8-7.8,2.3-11.9
c4-9,11-15.6,21.2-19.9c4.9-1.9,9.4-2.9,13.5-2.9h0.6c3.6,0,7.1,0.7,10.6,2.1c0.9,0.5,1.8,1,2.7,1.7h0.1v-0.1c0-2.4,0.3-7.1,1-14
C257.9,283.3,258.2,283.1,258.6,282.8z M226.1,328.9c0,6.3,3.5,10.8,10.6,13.5c3.3,1,7.1,1.5,11.4,1.5c6.8,0,12.1-2.2,15.8-6.6
c1.2-1.5,1.8-3,1.8-4.5v-0.4c-0.4-1.9-2.1-4.2-5.1-7c-4.6-3.5-9.5-6.7-14.5-9.5c-4.1-2.3-6.3-3.6-6.4-3.7v-0.1
c7.6,0.9,12.8,1.8,15.6,2.6v-0.1c-0.1-1.3-0.9-3.4-2.3-6.3c-1-1.7-3.1-2.5-6.4-2.5c-4.5,0-9.1,2.2-13.9,6.6
c-2.4,2.8-3.7,4.8-4,5.8C226.9,321.1,226.1,324.7,226.1,328.9z"/>
<path id="5" class="st1 bracketRight" d="M333.9,282.8c0.2,0,0.3,0.2,0.3,0.5c0,0.8-0.1,3.2-0.3,7.3c0.2,6.4,0.4,9.6,0.8,9.6c2.1,2.7,3.6,6,4.3,10
c0.2,1.4,0.3,2.4,0.3,3v0.4c0,0.7-0.1,1.7-0.4,3.1c6.7,2.5,11.1,5.9,13.4,10.1c1.1,1.8,1.6,3.6,1.6,5.4c0,7.2-4.8,13.2-14.5,18
c-6,2.8-13,4.2-20.8,4.2h-1c-18.4,0-30.1-5.9-35.1-17.6c-0.9-2.7-1.4-5.3-1.4-7.6v-0.8c0-3.8,0.8-7.8,2.3-11.9
c4-9,11-15.6,21.2-19.9c4.9-1.9,9.4-2.9,13.5-2.9h0.6c3.6,0,7.1,0.7,10.6,2.1c0.9,0.5,1.8,1,2.7,1.7h0.1v-0.1c0-2.4,0.3-7.1,1-14
C333.2,283.3,333.4,283.1,333.9,282.8z M301.4,328.9c0,6.3,3.5,10.8,10.6,13.5c3.3,1,7.1,1.5,11.4,1.5c6.8,0,12.1-2.2,15.8-6.6
c1.2-1.5,1.8-3,1.8-4.5v-0.4c-0.4-1.9-2.1-4.2-5.1-7c-4.6-3.5-9.5-6.7-14.5-9.5c-4.1-2.3-6.3-3.6-6.4-3.7v-0.1
c7.6,0.9,12.8,1.8,15.6,2.6v-0.1c-0.1-1.3-0.9-3.4-2.3-6.3c-1-1.7-3.1-2.5-6.4-2.5c-4.5,0-9.1,2.2-13.9,6.6
c-2.4,2.8-3.7,4.8-4,5.8C302.2,321.1,301.4,324.7,301.4,328.9z"/>
<path id="6" class="st0 bracketRight" d="M379.1,289.3c2.5,0,4.4,1.4,5.8,4.2c0.6,1.6,0.9,2.9,0.9,4c0,1.9-1.3,7-4,15.3c-0.1,0.3-0.2,0.7-0.2,0.9
c0,0,1-1.1,2.8-3.2c2.9-3.1,6.6-6.8,11.2-11.1c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,7-25.8,7c-1.3,0-2.6,0-3.9-0.1h-0.2c-0.3,0-0.7,0-1.1-0.1c-0.4,0.1-0.7,0.1-0.9,0.1
c-4.3-0.8-8.1-1.5-11.6-2.3c-2.3-0.6-3.5-0.9-3.6-1.1c0.8-0.2,4.2-1.1,10-2.7c0-0.6-0.1-2.4-0.4-5.3c-0.3-2.9-1.4-10.1-3.5-21.4
c-2-11.3-3.1-16.9-3.2-16.9c-1.5,0.7-2.9,1.1-4.2,1.1c2.1-2.2,3.3-3.9,3.7-5.1c0.1,0,0.1-0.1,0.2-0.3c-0.1-1.8-0.1-3.3-0.1-4.7
c0-8.8,1.9-17.2,5.7-25.1C702.4,266.1,704.6,264.4,707.2,264.4z M711.7,346.5c15.4-1,22.8-7.7,22.2-20.1
c-0.6-12.4-8.3-11.2-23.1,3.5C710.9,333.3,711.2,338.9,711.7,346.5z"/>
</g>
<path class="st2" d="M486.6,213.5c-48,19.8-70.8,74.7-51,122.6c15.2,37,51.3,59,89.1,58.1l0-5.1l0,0c-35.7,0.9-69.9-20-84.3-54.9
c-18.7-45.3,2.9-97.3,48.3-116c34.7-14.3,73.3-5,97.9,20.6c1.6-0.8,3.1-1.7,4.7-2.4C565.3,208.5,523.8,198.2,486.6,213.5
L486.6,213.5z M542.5,224.4c6.8,1.8,13.4,4.6,19.6,8.1c8.7,5.1,11.3,11.8,4.8,19.3l-41.6,41.6l0.1-56.8
C525.4,225.1,532.1,221.7,542.5,224.4L542.5,224.4z M502.2,376.3c-6.8-1.8-13.4-4.6-19.6-8.1c-9.3-5.4-11.6-12.7-3.4-20.8
l40.3-40.1l-0.3,60.4C517.9,376.3,511.5,378.8,502.2,376.3L502.2,376.3z M454.4,339.8c-3.6-6.1-6.3-12.7-8.1-19.6
c-2.7-10.4,0.8-17.2,12.3-17.1l56.8,0.1l-40.3,40.1C467.1,351.5,459.8,349.1,454.4,339.8L454.4,339.8z M446.4,280.2
c1.8-6.8,4.6-13.4,8.1-19.6c5.4-9.3,12.7-11.6,20.8-3.4l40.1,40.3l-56.8-0.1C447.1,297.4,443.7,290.6,446.4,280.2L446.4,280.2z
M482.9,232.4c6.1-3.6,12.7-6.3,19.6-8.1c10.4-2.7,17.2,0.8,17.1,12.3l-0.1,56.8l-40.1-40.3C471.3,245,473.6,237.8,482.9,232.4
L482.9,232.4z"/>
<g>
<path class="st0" d="M227.7,374.2h-1.6l-3.1-5.8l-3,5.8h-1.6l-6.8-12.8h2.2l5.3,10.1l2.7-5.2l-2.5-4.9h2.2l5.3,10.1l5.2-10.1h2.2
L227.7,374.2z"/>
<path class="st0" d="M234.7,374.2v-12.8h12.1v1.6h-10v3.7h8.9v1.6h-8.9v4.2h10.1v1.6H234.7z"/>
<path class="st0" d="M259,373.4c-1.1,0.5-2.4,0.8-4,0.8h-7.5v-12.8h7.7c1.4,0,2.7,0.3,3.6,0.8c1.2,0.6,1.7,1.5,1.7,2.8
c0,1-0.6,1.8-1.7,2.5c1.4,0.6,2.2,1.6,2.2,3C261.1,371.8,260.4,372.8,259,373.4z M257.6,363.5c-0.6-0.3-1.4-0.5-2.4-0.5h-5.6v3.7
h5.6c1,0,1.8-0.2,2.4-0.5c0.6-0.3,0.9-0.8,0.9-1.4C258.5,364.3,258.2,363.8,257.6,363.5z M258,368.9c-0.7-0.3-1.7-0.5-2.8-0.5
h-5.6v4.2h5.7c1.1,0,2-0.2,2.7-0.5c0.8-0.4,1.1-0.9,1.1-1.6C259,369.8,258.7,369.2,258,368.9z"/>
<path class="st0" d="M282.9,372.6c-1.5,1.1-3.6,1.6-6.1,1.6h-5.5v-12.8h6.3c2.5,0,4.5,0.6,5.8,1.7c1.3,1.1,1.9,2.7,1.9,4.7
C285.3,369.9,284.5,371.5,282.9,372.6z M281.9,364.3c-0.9-0.8-2.4-1.2-4.3-1.2h-4.3v9.5h3.5c2.1,0,3.7-0.4,4.8-1.2
c1.1-0.8,1.7-2,1.7-3.5S282.8,365.1,281.9,364.3z"/>
<path class="st0" d="M286.7,374.2v-12.8h12.1v1.6h-10v3.7h8.9v1.6h-8.9v4.2h10.1v1.6H286.7z"/>
<path class="st0" d="M307.8,374.2h-1.5l-7.1-12.8h2.2l5.6,10.1l5.4-10.1h2.2L307.8,374.2z"/>
<path class="st0" d="M315.8,374.2v-12.8h12.1v1.6h-10v3.7h8.9v1.6h-8.9v4.2H328v1.6H315.8z"/>
<path class="st0" d="M329.3,374.2v-12.8h2.1v11.2h9.2v1.6H329.3z"/>
<path class="st0" d="M354.7,372.6c-1.5,1.2-3.5,1.8-6,1.8c-2.5,0-4.5-0.6-6-1.7c-1.5-1.2-2.2-2.8-2.2-4.8c0-2,0.8-3.6,2.3-4.7
c1.4-1.1,3.4-1.6,6-1.6c2.5,0,4.5,0.5,6,1.6c1.5,1.1,2.3,2.7,2.3,4.7C357,369.8,356.2,371.4,354.7,372.6z M353.3,364.3
c-1.1-0.8-2.6-1.2-4.6-1.2c-2,0-3.5,0.4-4.5,1.2c-1.1,0.8-1.6,2-1.6,3.5c0,1.5,0.5,2.7,1.6,3.6c1.1,0.9,2.6,1.3,4.5,1.3
c2,0,3.5-0.4,4.6-1.3c1.1-0.9,1.6-2.1,1.6-3.6C354.9,366.3,354.4,365.1,353.3,364.3z"/>
<path class="st0" d="M369.6,368.2c-1.1,0.5-2.4,0.8-4,0.8h-4.9v5.2h-2.1v-12.8h7.3c3.9,0,5.8,1.3,5.8,3.8
C371.6,366.5,371,367.5,369.6,368.2z M366,363h-5.3v4.3h5.3c1,0,1.9-0.2,2.5-0.5c0.7-0.4,1.1-0.9,1.1-1.5
C369.6,363.8,368.4,363,366,363z"/>
<path class="st0" d="M388.4,374.2v-9l-5.6,9h-1.5l-5.6-9v9h-2.1v-12.8h2l6.3,10.3l6.4-10.3h2v12.8H388.4z"/>
<path class="st0" d="M392.6,374.2v-12.8h12.1v1.6h-10v3.7h8.9v1.6h-8.9v4.2h10.1v1.6H392.6z"/>
<path class="st0" d="M418.8,374.2l-9.9-9.9v9.9h-2.1v-12.8h1.9c1.2,1.3,2.9,3,5,5c2.5,2.5,4.1,4.1,4.9,4.9v-9.9h2.1v12.8H418.8z"
/>
<path class="st0" d="M430.1,363v11.2h-2.1V363h-5.6v-1.6h13.2v1.6H430.1z"/>
<path class="st1" d="M552.7,374.2v-9l-5.6,9h-1.5l-5.6-9v9H538v-12.8h2l6.3,10.3l6.4-10.3h2v12.8H552.7z"/>
<path class="st1" d="M568.6,374.2l-2.1-3.8h-7.2l-2.1,3.8h-2.3l7.3-12.8h1.6l7.1,12.8H568.6z M563,364.1l-2.7,4.7h5.3L563,364.1z"
/>
<path class="st1" d="M582.7,368c1.1,0.6,1.7,1.5,1.7,2.8v3.5h-2.1v-3.4c0-1.3-1.2-2-3.5-2h-5.3v5.4h-2.1v-12.8h7.5
c3.7,0,5.6,1.2,5.6,3.5C584.6,366.3,584,367.3,582.7,368z M579,363h-5.5v4.1h5.1c1.1,0,2.1-0.2,2.7-0.5c0.7-0.4,1.1-0.9,1.1-1.7
C582.5,363.7,581.3,363,579,363z"/>
<path class="st1" d="M598.8,374.2l-8-6.2l-2.6,1.6v4.6h-2.1v-12.8h2.1v6.2l10.1-6.2h3.4l-9.2,5.6l9.3,7.2H598.8z"/>
<path class="st1" d="M603.1,374.2v-12.8h12.1v1.6h-10v3.7h8.9v1.6h-8.9v4.2h10.1v1.6H603.1z"/>
<path class="st1" d="M623.5,363v11.2h-2.1V363h-5.6v-1.6H629v1.6H623.5z"/>
<path class="st1" d="M630,374.2v-12.8h2.1v12.8H630z"/>
<path class="st1" d="M645.7,374.2l-9.9-9.9v9.9h-2.1v-12.8h1.9c1.2,1.3,2.9,3,5,5c2.5,2.5,4.1,4.1,4.9,4.9v-9.9h2.1v12.8H645.7z"
/>
<path class="st1" d="M662.8,369.2h-6.2v-1.7h8.2c0.1,0.7,0.1,1.1,0.1,1.4c0,1.8-0.8,3.1-2.4,4.1c-1.4,0.9-3.2,1.3-5.3,1.3
c-2.6,0-4.6-0.6-6.1-1.7c-1.6-1.1-2.4-2.8-2.4-4.8c0-2,0.8-3.6,2.3-4.8c1.5-1.2,3.5-1.8,6.1-1.8c1.9,0,3.5,0.3,4.7,0.9
c1.5,0.7,2.5,2.1,3,4.1h-2.1c-0.3-1.2-0.9-2.1-1.8-2.6c-0.9-0.5-2.1-0.8-3.8-0.8c-2,0-3.5,0.4-4.6,1.3c-1.1,0.9-1.7,2.1-1.7,3.6
c0,1.6,0.6,2.8,1.7,3.6c1.1,0.8,2.7,1.3,4.7,1.3c1.5,0,2.9-0.3,3.9-1C662.2,371.1,662.8,370.2,662.8,369.2z"/>
</g>
</g>
</svg>
</body>
</html>
,因为onStop()
和onPause
就足够了。
您的onResume
和onPause
相反。 (onResume在活动加载后调用,onPause在活动关闭时发生)
您还需要使用加载的值设置进度。
下面的代码应指向正确的方向。
onResume