Android adding information to a table when the alarm started <p>Hi stackoverflow users I have the next problem: I have created a program that compare in a countdown timer 2 values( a feedback and a counter ) The counter is the value I set of the temperature for example and the feedback another value I get from outside.</p> <p>When the countdown timer reach 0 if the counter is not equal with the feedback value the alarm start and I want to add the feedback and the counter to a log.</p> <p>Example of a small piece of code is below, here I compare the counter with </p> <pre><code>if(Integer.parseInt(feedback.getText().toString()) != midvalue) { btnbool.setBackgroundColor(Color.RED); btnbool.setText("FALSE"); showup.setText(""+counter); letme = 2; if(alarmapornita == 0) { alarmapornita = 1; handler.post(thread); } alarma = 1; myhandler.post(mythread); healthy = false; Intent i = new Intent(getApplicationContext(), Log.class); i.putExtra("mymidvalue",midvalue); i.putExtra("myfeedback",Integer.parseInt(feedback.getText().toString())); startActivity(i); } </code></pre> <p>The problem is that with Intent I get only one entry to the table and when I get the alarm on it switch to the other activity. I don't know anything else how to use, is there any option to replace intent ?</p>