hi (my issue regarding database)

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

hi (my issue regarding database)

Postby jana » Mon Aug 10, 2009 11:46 am

Hi to all,
I done my application almost.
but i am still some issues.
in my app search option is there.


edittext button


when i enter the value in edittext box ,these value i want to use in database


i have one method in database.

public Cursor getRecord(long rowid)
{


}


i am using that one in my activity as

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. Cursor c=db.getRecord(35);
  3.  
  4.                                  if (c.moveToFirst())        
  5.  
  6.                                    Toast.makeText(this,
  7.  
  8.                         "id: " + c.getString(0) + "\n" +
  9.  
  10.                         "date: " + c.getString(1) + "\n" +
  11.  
  12.                        
  13.  
  14.                         "text:  " + c.getString(2),
  15.  
  16.                         Toast.LENGTH_LONG).show();    
  17.  
  18.            
  19.  
  20.                        
  21.  
  22.                                 else
  23.  
  24.                                         Toast.makeText(getBaseContext(), "No such record found...Try again!", Toast.LENGTH_SHORT).show();
  25.  
  26.  
  27.  
  28.                                        
  29.  
  30.                                         //Log.e("no record found", "no record display");
  31.  
  32.                                 db.close();
  33.  
  34.                                 }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4




in the above i am passing the value directly,but i dont want like that.
i want if i enter in edittext box,based on that one i want to display.


And also one more problem is i dont wnat to display thes values in toast class
i want to set these values to text r edit text box.


if i clear these problems,i almost complete my aapp



thanks and regards
janardhan
jana
Freshman
Freshman
 
Posts: 7
Joined: Tue Aug 04, 2009 8:27 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 7 guests