title: How to open new activity within a dialog arg
body: <p>How Can I open my SettingsActivty when I click on the "Advanced" section in my list view dialog? here is my code</p>
  
  <pre><code>public void show (){
          ListView listView = new ListView(this);
          listView.setAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.dialog_list, new String[]{"Themes", "Advanced", "Help"}));
          listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2, long arg3) {
                  // Do your stuff here.
              }
          });
          Dialog dialog = new Dialog(this);
          dialog.setTitle("Settings");
          dialog.setContentView(listView);
          dialog.show();
  
      }
  </code></pre>
  
  <p>I know it will be something like this but how can I fit that into the specific argument</p>
  
  <pre><code>Intent iinent= new Intent(Homeactivity.this,secondactivity.class);
  startActivity(iinent);
  </code></pre>