title: Usage of onClick
body: <p>public class MainActivity extends Activity {</p>
  
  <pre><code>private String[] Numbers = 
      {"1", "2", "3", "4","5",
       "6", "7", "8", "9", "10"};
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      ListView myList=(ListView) findViewById(R.id.listView1);
  
  
      ArrayAdapter&lt;String&gt; dataAdapter=new ArrayAdapter&lt;String&gt;
      (this, android.R.layout.simple_list_item_1, android.R.id.text1, Numbers);
  
  
      myList.setAdapter(dataAdapter);
  </code></pre>
  
  <p>after this point, I couldn't use <code>myList.setOnItemClickListener</code> method that opens new screen in the app.</p>