Code example for SimpleAdapter

		result.add(createElement("Local load", "In this example, you provide list of files  to display in gallery"));
		return result;
	public ListAdapter createAdapter() 
		SimpleAdapter adapter = new SimpleAdapter(this, getData(), 
				new String[]{TITLE, SUBTITLE}, 
				new int[]{,});
		return adapter;
	protected void onListItemClick(ListView l, View v, int position, long id) {
		Intent i = null;
		switch (position) 
		case 0: 
			i = new Intent(this, GalleryUrlActivity.class);
Contextual code suggestions in your IDE  Get Codota for Java