title: string array from onpostexecute to mainactivity
body: <p>It's been a while that I'm strugling with a question:</p>
  
  <p>At this point I'm able to: </p>
  
  <p>1-make custom listview with data from my database - this part has been acomplished.
  2-make a custom listview with search filter.</p>
  
  <p>So, I'm trying to make a custom listview with a search filter at this point. </p>
  
  <p>The thing is that I'm struggling hard and I don't have much time and the only solution I've found for this was:</p>
  
  <p>On onPostExecute, I run the following code :</p>
  
  <pre><code>  for(int i=0; i&lt;jsonArray.length();i++){
              JSONObject json = null;
              try {
                  json = jsonArray.getJSONObject(i);
  
                  listId.add(json.getString("id"));
                  listNome.add(json.getString("name"));
                  listTipo.add(json.getString("type"));
            } catch (JSONException e) {
                  e.printStackTrace();
              }
  
  
  
          }
  
          String[] arrId = listId.toArray(new String[listId.size()]);//StringArray de ID's
          String[] arrName = listNome.toArray(new String[listName.size()]); // 
          String[] arrType = listTipo.toArray(new String[listType.size()]);
  
          tvJson.setText(Arrays.toString(arrName)); 
  
          Intent i = new Intent (MainActivity.this, NextActivity.class);
          i.putExtra("KEY_ID", arrId);
          i.putExtra("KEY_TIPO", arrTipo);
          i.putExtra("KEY_NOME", arrNome);
          startActivity(i);   
  
      }
  </code></pre>
  
  <p>As you can see this is not a perfect solution but I need those string arrays to make my customlistview. </p>
  
  <p>If I have them on The NextActivity all my code runs smoothly, the thing is, I dont want to start an activity, I want to get this arrays to Main Activity and after that build my listview. </p>
  
  <p>So, is there any way I can send this 3 string[]'s to MainActivity?</p>
  
  <p>PS: It's not the most elegant code ever but I'm new to this and I have deadlines to follow for a project - that's the main reason I'm not trying to rewrite all this code.</p>