How to store facebook friends name in android mobile application
<p>i am trying to get all facebook friends name in my application and store them in list.</p>

<p>i go through with the following code but i don't understand that after storing name in string format how to display that in my application.</p>

<p>Bundle parameters = new Bundle();
    mAccessToken = facebook.getAccessToken();</p>

<pre><code>try {

    parameters.putString("format", "json");
    parameters.putString(TOKEN, mAccessToken);

    String url = "https://graph.facebook.com/me/friends";
    String response = Util.openUrl(url, "GET", parameters);
    JSONObject obj = Util.parseJson(response);

    Log.i("json Response", obj.toString());
    JSONArray array = obj.optJSONArray("data");

    if (array != null) {
        for (int i = 0; i &lt; array.length(); i++) {
            String name = array.getJSONObject(i).getString("name");

            String id = array.getJSONObject(i).getString("id");

            Log.i(name,id);
        }
    } 
</code></pre>

<p>Please help me.
My further project is stopped because of this.</p>

<p>Thanks in advanced....</p>
