Android Open Source - Android---CSV-Contacts-Import Checked Cursor






From Project

Back to project page Android---CSV-Contacts-Import.

License

The source code is released under:

GNU General Public License

If you think the Android project Android---CSV-Contacts-Import listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.beforemadness;
/*from w ww . j a va  2  s. co  m*/
import java.util.Hashtable;

import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckedTextView;
import android.widget.SimpleCursorAdapter;

public class CheckedCursor extends SimpleCursorAdapter {
  
    private Cursor c;
    private Context context;

  public CheckedCursor(Context context, int layout, Cursor c, String[] from,
      int[] to) {
    super(context, layout, c, from, to);
    this.c = c;
    this.context = context;
  }
  
//  @Override
//  public View getView(int position, View convertView, ViewGroup parent) {
//    
//    Hashtable<String, String> o = items.get(position);
//    LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//    View row1 = vi.inflate(R.layout.check_box_list, null);
//    CheckedTextView ctv =(CheckedTextView)row1.findViewById(R.id.text1);
//    String firstname = o.get("firstname") ; 
//    if ( firstname != null) {
//      ctv.setTag(new Integer(position));
//      ctv.setText(o.get("firstname"));
//    } else {
//      items.remove(position);
//      remove(items.get(position));
//    }
//    return(row1); 
//  }

}




Java Source Code List

com.beforemadness.CSVContactsImport.java
com.beforemadness.CheckedCursor.java
com.beforemadness.CheckedList.java
com.beforemadness.FileHelper.java
com.beforemadness.IContactType.java
com.beforemadness.MainScreen.java