[Solved] Application unfortunately stopped on clicking bookmarked item in fragment view Im using json to store title & links

hello guys i used following code & my problem got solved listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Object o = listView.getAdapter().getItem(position); if (o instanceof Map) { final Map map = (Map) o; Intent in = new Intent(getActivity(),HomeFragment.class); in.putExtra(“url”, String.valueOf(map.get(TAG_LINK))); System.out.println(“loading url…”+String.valueOf(map.get(TAG_LINK))+” please wait”); HomeFragment.wv.post(new Runnable() { public … Read more

[Solved] LogCat entry meaning 2

java.lang.NullPointerException at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394) ArrayAdapter<Comment> adapter = new ArrayAdapter<Comment>(this, android.R.layout.simple_list_item_1, values); values has at least one null object in it, which you cannot have. You can read through the source code and see this happens here: T item = getItem(position); if (item instanceof CharSequence) { text.setText((CharSequence)item); } else { text.setText(item.toString()); // Line 394, when item is … Read more