嗨,我正在创建一个应用程序来显示来自服务的警报计数,我将在我的屏幕锁定时更新.
但我得到了一个输出,但它没有更新可以任何人帮助我

这是我用于在锁定屏幕中显示文本的代码
String message ="New alarm :"+ alarmnew.size()+"\n old alarm :"+alarmold.size();
Settings.System.putString(this.getContentResolver(),
Settings.System.NEXT_ALARM_FORMATTED, message);
Run Code Online (Sandbox Code Playgroud) 我尝试了很多方法来修复,Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE但到现在为止,我可以增加实习存储空间.
我试过的方法:
右键单击Android项目的根目录,转到"运行方式",然后转到"运行配置...",找到左侧树中的"Android应用程序"节点,然后选择您的项目并转到"目标"窗口右侧的选项卡向下看"附加模拟器命令行选项"字段(有时您需要使窗口变大),最后在那里粘贴"-partition-size 1024".单击"应用",然后单击"运行"以使用模拟器.
转到Eclipse的首选项,然后选择"启动"在"默认模拟器选项"字段中添加"--partition-size 1024",然后单击"应用"并像往常一样使用模拟器.
打开.Android目录.通常在您的主目录中.然后转到avd,然后打开具有您想要更改的avd名称的目录.
现在编辑config.ini文件并添加以下行或修改以下行: disk.dataPartition.size=1024
这在Linux中对我有用.
我使用我的应用程序存储在外部存储中:
android:installLocation="preferExternal"
Run Code Online (Sandbox Code Playgroud)
但后来我收到了
安装错误:INSTALL_FAILED_MEDIA_UNAVAILABLE
在我的应用程序中,我有10个Edittext和10个TextView
我已经为EditText和TextView创建了实例
String[] messageText=new String[10];
String[] messageEdit=new String[10];
TextView oTextView1 = (TextView) findViewById(R.id.Tab_common1_EditText);
TextView oTextView2 = (TextView) findViewById(R.id.Tab_common2_EditText);
TextView oTextView3 = (TextView) findViewById(R.id.Tab_common3_EditText);
TextView oTextView4 = (TextView) findViewById(R.id.Tab_common4_EditText);
TextView oTextView5 = (TextView) findViewById(R.id.Tab_common5_EditText);
TextView oTextView6 = (TextView) findViewById(R.id.Tab_common6_EditText);
TextView oTextView7 = (TextView) findViewById(R.id.Tab_common7_EditText);
TextView oTextView8 = (TextView) findViewById(R.id.Tab_common8_EditText);
TextView oTextView9 = (TextView) findViewById(R.id.Tab_common9_EditText);
TextView oTextView10 = (TextView) findViewById(R.id.Tab_common10_EditText);
EditText oEditTextHiden1 = (EditText) findViewById(R.id.Tab_Hidencommon1_EditText);
EditText oEditTextHiden2 = (EditText) findViewById(R.id.Tab_Hidencommon2_EditText);
EditText oEditTextHiden3 = (EditText) findViewById(R.id.Tab_Hidencommon3_EditText);
EditText oEditTextHiden4 = (EditText) findViewById(R.id.Tab_Hidencommon4_EditText);
EditText oEditTextHiden5 …Run Code Online (Sandbox Code Playgroud)