Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>main.xml</p> <p> java file package webkul.com.todo;</p> <p>import java.util.ArrayList;</p> <p>import android.app.Activity;</p> <p>import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast;</p> <p>public class add extends Activity { private ListView Lview;</p> <pre><code>private String a[]={"aaa","aaaaafddf","bcvnxc"}; static ArrayList &lt;String&gt;arlst=new ArrayList&lt;String&gt;(); public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); Button next = (Button) findViewById(R.id.Button02); next.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Intent intent = new Intent(); setResult(RESULT_OK, intent); finish(); } }); Button next1=(Button)this.findViewById(R.id.Button01); final EditText aa=(EditText) findViewById(R.id.edtInput); //final ArrayList arlst=new ArrayList(); next1.setOnClickListener(new OnClickListener(){ public void onClick(View view){ String a1=aa.getText().toString(); arlst.add(a1); aa.setText(""); //arlst.add("aa2"); //Toast.makeText(add.this, "Position=" +a1, Toast.LENGTH_SHORT).show(); Intent myIntent = new Intent(view.getContext(), Todo.class); startActivityForResult(myIntent, 0); } }); } </code></pre> <p>}</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload