Code example for CursorAdapter

Methods: swapCursor, notifyDataSetChanged

0
	private GetChartData chart_data;
	 
	private AreaApplication area;
	 
	public ChartsGridCursorAdapter(Context context, Cursor c, int flags) {
		super(context, c, flags);
		this.swapCursor(runQueryOnBackgroundThread(""));
		this.notifyDataSetChanged();
		//area = (AreaApplication) mContext.getApplicationContext(); 
	} 
 
	@Override 
	public void bindView(View view, Context context, Cursor cursor) {
		Log.d(TAG, "Bind View");
		layout 		= (LinearLayout) view.findViewById(R.id.home_chart_view);
		dialog = new ProgressDialog(mContext);
		 
		indicator = area.areaData.getIndicatorName(cursor.getInt(cursor
				.getColumnIndexOrThrow(I_ID)));
		countryList = area.areaData.getSearchCountries(cursor.getInt(cursor
Contextual code suggestions in your IDE  Get Codota for Java