hi.. i have created login(empname , passwd) table.. I am trying to
fetch passwd from table for perticular empname by calling a function
getpwd ()from another activity ..
I am using following query..


public String getpwd(String uname)  throws SQLException

{
    Cursor c  = db.rawQuery("select passwd from emp where
empname='"+uname+"'" ,null);
          if(c!=null)
       c.moveToFirst();
          password = c.getString(4);

}

This code giving an error in logcat as
java.lang.IllegalStateException: &  initialise cursor properly..

can anyone plz tell me how to remove this errors..?

any  suggetions  are welcome..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to