Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Change </p> <pre><code>jParser.makeHttpRequest(url, "GET", params); </code></pre> <p>to </p> <pre><code>jParser.makeHttpRequest(url, "POST", params); </code></pre> <p>then <strong>BEFORE</strong> that line, after your ArrayList initialization, add these values to the array, I'm assuming their the same desired values SearchPost uses.. </p> <pre><code> String companyName = cn.getText().toString(); String projectName = pn.getText().toString(); String componentName = (String) ab.getSelectedTab().getText(); List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;(); params.add(new BasicNameValuePair("company", companyName)); params.add(new BasicNameValuePair("project", projectName)); params.add(new BasicNameValuePair("component", componentName)); </code></pre> <p><strong>EDIT:</strong> Initialize the questionList afterwards.</p> <pre><code> questionList = ArrayList&lt;HashMap&lt;String, String&gt;&gt;(); </code></pre> <p><strong>EDIT 2:</strong></p> <p>Change </p> <pre><code>R.id.genA_layout </code></pre> <p>to</p> <pre><code>R.layout.genA_layout </code></pre> <p><strong>UPDATE</strong></p> <p>You should make a separate xml layout file <strong>defining how each list view row</strong> should look like with two TextViews with ids R.id.answer, R.id.name.</p> <p>A simple mockup may look like this: (please test, I've coded this straight from the answer box).</p> <p><strong>MyListViewRow.xml</strong></p> <pre><code>&lt;LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="vertical"&gt; &lt;!-- You can make orientation horizontal also --&gt; &lt;TextView android:id="@+id/answer" android:layout_height="wrap_content" android:layout_width="wrap_content"/&gt; &lt;TextView android:id="@+id/answer" android:layout_height="wrap_content" android:layout_width="wrap_content"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>Afterwards, change R.id.genA_layout to R.layout.MyListViewRow</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload