Need help white adding items
Can somebody say whats wrong whit my code. When I add item in to a list in application, It wont come there. And if I click somewhere else in android application couple of times, then show added "item" sometimes.
This is my code:
package com.example.proov;
import java.util.ArrayList;
import com.example.proov.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
public class proovin extends Activity {
private ListView LView;
ArrayList ar = new ArrayList();
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSt
setContentView(R.layout.main);
LView = (ListView) findViewById(R.id.ListView01);
// Set option as Multiple Choice. So that user can able to select more the one option
LView.setAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_i
LView.setChoiceMode(ListView.C
Button b = (Button) findViewById(R.id.add_item);
final EditText d = (EditText) findViewById(R.id.title);
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ar.add(d.getText().toString())
}
});
}
}
Way back in Pandora I was approached by Sid’s mother to do a book about Sid Vicious, obviously. With Pandora Bracelets crystal ball in one hand
New tutorials from Helloandroid
Recent Apps
Android on Twitter
-
@SetseniaSasori (Sasori)I've just received an achievement: Responsible http://t.co/ORofuGkn #Android #Androidgames
4 min 9 sec ago -
@dan89_x (Daniel Edwards)I've just received an achievement: Entrepreneur https://t.co/L0IyulT6 #Android #Androidgames
4 min 14 sec ago -
@hachemadness (Anita Hache)I've just received an achievement: Responsible https://t.co/VkwSxZHi #Android #Androidgames
4 min 24 sec ago -
@amcerr (Anthony Cerra)I've just received an achievement: Conductor https://t.co/TnJQUrUN #Android #Androidgames
4 min 46 sec ago -
@Fraudster_1 (Nick Leeson(NOT))RT @BerriePelser: Google is introducing Chrome for Android : http://t.co/rfMkgPIp - #Google #Chrome #Android
4 min 47 sec ago
Poll
Useful resources
Android Development Projects
- Android App wanted immediately by JoePublic
- LIST DATA PROJ by nhammoud
- Nonpublic project #1433932 by subpariq
- Alarm Android Application Design by globalheed
- Simple Album App for Android by ayfonfan
- iOS and Android photo manipulation 'Morph App' by whatwedomedia
- Onsite Software Engineers in Germany by sudhirshree
- Augmented reality by merder99
- Nonpublic project #1433560 by vobla73
- Mobile app coder needed for quick, simple app by Ergometrix



prada bags discount gently move, who place constantly. Make the eyes of tentacles, birds, plants must be leaves, branches of the image is clear, these figures are remarkably true. Wear it on the head, no doubt, will increase a JiaoTai beautiful appearance.