title: not getting ListView Item in Android
body: <p>When I can click on ListView item with new Activity, ListView is not opening. I'm not understand why it is not open.</p>
  
  <pre><code>public class ActivityListOfSearchIDProfiles extends AppCompatActivity implements AdapterView.OnItemClickListener {
  
      private ListView mListOfProfiles;
      private ArrayList&lt;Registration&gt; mArrayListOfRegistrations;
      private SearchByIDAdapter mSearchByIDAdapter;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.lay_activitylistview);
  
          mListOfProfiles = (ListView) findViewById(R.id.listOFSerachProfiles);
  
          Toolbar toolbar= (Toolbar) findViewById(R.id.toolbarCommon);
          setSupportActionBar(toolbar);
          toolbar.setTitleTextColor(Color.parseColor("#FFFFFF"));
          toolbar.setNavigationIcon(R.drawable.ic_action_navigation_arrow_back_inverted);
          getSupportActionBar().setIcon(R.mipmap.ic_action_account_circle);
          getSupportActionBar().setTitle("Profile");
  
          mArrayListOfRegistrations = new ArrayList&lt;Registration&gt;();
  
          toolbar.setNavigationOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  finish();
                  overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
              }
          });
  
          final Intent intent = getIntent();
          String hjID = intent.getStringExtra("hjID");
  
          if (isConnected())
          {
              Toast.makeText(ActivityListOfSearchIDProfiles.this, "Profile:"+hjID, Toast.LENGTH_SHORT).show();
          }
          else {
              Toast.makeText(ActivityListOfSearchIDProfiles.this, "No Internet Connection Available", Toast.LENGTH_SHORT).show();
          }
  
          new SearchByIDGETThread(ActivityListOfSearchIDProfiles.this, new HandlerRegisterSearchProfile(), hjID).execute();
          System.out.println("With Thread");
  
          mListOfProfiles.setOnItemClickListener(this);
  
      }
  
      public boolean isConnected() {
          ConnectivityManager conManager = (ConnectivityManager) getSystemService(Activity.CONNECTIVITY_SERVICE);
          NetworkInfo networkInfo = conManager.getActiveNetworkInfo();
          if (networkInfo != null &amp;&amp; networkInfo.isConnected()) {
              return true;
          } else {
              return false;
          }
      }
  
      @Override
      public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
  
          System.out.println("Open Listview Item");
  
          Registration mRegistration = mArrayListOfRegistrations.get(i);
  
          System.out.println("In listView Item");
  
          Intent intent = new Intent(ActivityListOfSearchIDProfiles.this, ActivityShowProfileDetails.class);
  
          intent.putExtra("fname", mRegistration.getFname());
          intent.putExtra("lname", mRegistration.getLname());
          intent.putExtra("hjID", mRegistration.getData());
          intent.putExtra("gender", mRegistration.getGender());
          intent.putExtra("dob", mRegistration.getDob());
          intent.putExtra("tob", mRegistration.getTob());
          intent.putExtra("age", mRegistration.getAge());
  
          intent.putExtra("height", mRegistration.getHeight());
          intent.putExtra("complexion", mRegistration.getComplexion());
          intent.putExtra("blood_group", mRegistration.getBlood_group());
          intent.putExtra("spect", mRegistration.getSpect());
          intent.putExtra("ph_dis", mRegistration.getPh_dis());
          intent.putExtra("nri", mRegistration.getNri());
          intent.putExtra("caste", mRegistration.getCast());
          intent.putExtra("rashi", mRegistration.getRashi());
          intent.putExtra("hob", mRegistration.getHob());
          intent.putExtra("city", mRegistration.getCity());
          intent.putExtra("state", mRegistration.getState());
  
          intent.putExtra("edu", mRegistration.getEdu());
          intent.putExtra("occupation", mRegistration.getOcc());
          intent.putExtra("place_occupation", mRegistration.getPlace_occ());
          intent.putExtra("income", mRegistration.getIncome());
          intent.putExtra("cat", mRegistration.getCat());
  
          intent.putExtra("father", mRegistration.getFather());
          intent.putExtra("mother", mRegistration.getMother());
          intent.putExtra("father_name", mRegistration.getFather_name());
          intent.putExtra("mother_name", mRegistration.getMother_name());
          intent.putExtra("mama_name", mRegistration.getMama_name());
          intent.putExtra("mama_place", mRegistration.getMama_place());
          intent.putExtra("rel_name", mRegistration.getRel_name());
          intent.putExtra("native_place", mRegistration.getNative_place());
          intent.putExtra("no_brothers", mRegistration.getNo_brothers());
          intent.putExtra("no_mar_bro", mRegistration.getNo_sisters());
          intent.putExtra("no_sisters", mRegistration.getNo_mar_bro());
          intent.putExtra("no_mar_sis", mRegistration.getNo_mar_sis());
          intent.putExtra("parent_occ", mRegistration.getParent_occ());
          intent.putExtra("family_property", mRegistration.getFamily_prop());
          intent.putExtra("expect", mRegistration.getExpectations());
          intent.putExtra("photo", mRegistration.getPhoto());
          intent.putExtra("photo2", mRegistration.getPhoto2());
  
          System.out.println("In ITem Search");
  
          System.out.println(intent.putExtra("family_property", mRegistration.getFamily_prop()));
  
          startActivity(intent);
      }
  }
  </code></pre>