Local Database Search

Put your problem here if it does not fit any of the other categories.

Local Database Search

Postby venkat » Wed Feb 27, 2008 12:14 pm

Hi PlusMinus,
Can you tell me, how to search Local Database ( Which is created by me ) using Android Search API.

Thanks in advance,:)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Top

Postby GodsMoon » Wed Feb 27, 2008 6:22 pm

I am interested in this as well. I stumbled onto this one example just today.
http://discussandroid.blogspot.com/2008 ... earch.html

Also take a look at the Documentation page
http://code.google.com/android/referenc ... nager.html
GodsMoon
Developer
Developer
 
Posts: 26
Joined: Mon Dec 10, 2007 5:13 pm

Postby res » Wed Feb 27, 2008 6:25 pm

You will need to create a sql statement and then execute this statement on your database.

SQL basics and intro: http://www.w3schools.com/sql/default.asp
res
Senior Developer
Senior Developer
 
Posts: 146
Joined: Tue Nov 20, 2007 8:14 pm
Location: United States

Postby living_sword » Wed Feb 27, 2008 6:54 pm

Image
living_sword
Junior Developer
Junior Developer
 
Posts: 23
Joined: Fri Nov 23, 2007 4:44 am

Postby venkat » Thu Feb 28, 2008 6:29 am

GodsMoon wrote:I am interested in this as well. I stumbled onto this one example just today.
http://discussandroid.blogspot.com/2008 ... earch.html

Also take a look at the Documentation page
http://code.google.com/android/referenc ... nager.html


Thanks Guys for your quick reply. :)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Postby venkat » Thu Feb 28, 2008 2:23 pm

GodsMoon wrote:I am interested in this as well. I stumbled onto this one example just today.
http://discussandroid.blogspot.com/2008 ... earch.html

Also take a look at the Documentation page
http://code.google.com/android/referenc ... nager.html


HI GodsMoon,
Thank you for you reply. I have got sample code from your blog :).
"Displaying Images" working properly, i can view my images stored into sdcard.
"ImageSearch" is showing error to me. Can you attach Full Source code for Image Search. Please. :)

Thanks :)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Top

Postby GodsMoon » Fri Feb 29, 2008 12:33 am

I'm flattered that you think that is my blog.
However it is not mine. I think its living_sword's blog. :)
GodsMoon
Developer
Developer
 
Posts: 26
Joined: Mon Dec 10, 2007 5:13 pm

Postby venkat » Fri Feb 29, 2008 7:06 am

GodsMoon wrote:I'm flattered that you think that is my blog.
However it is not mine. I think its living_sword's blog. :)


ohh :?: oops.

neways , thanks for your replay,

I am sorry Mr. living_sword for my misunderstood. Image search is not working properly to me. here i have attached my full project. Can you go though that and tell me where i am doing mistake please.

Thanks :)
Attachments
imageSearch.rar
ImageSearch Example.
(44.87 KiB) Downloaded 86 times
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Postby venkat » Fri Feb 29, 2008 7:40 am

Thank you very much :), living_sword

I got source code from your forum.

Thanks :)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Postby living_sword » Fri Feb 29, 2008 7:46 am

1. u accidentally imported android.provider.MediaStore.Images . Due to this, the code couldn't find Images.java and kept referring to android.provider.MediaStore.Images.

2. the code for Search menu/shortcut was missing. Without that, Search cannot be launched. i've added that too. Its working fine now.
Attachments
imageSearch.rar
(49.97 KiB) Downloaded 101 times
Image
living_sword
Junior Developer
Junior Developer
 
Posts: 23
Joined: Fri Nov 23, 2007 4:44 am

Postby living_sword » Fri Feb 29, 2008 7:48 am

venkat wrote:Thank you very much :), living_sword

I got source code from your forum.

Thanks :)


cool.
Image
living_sword
Junior Developer
Junior Developer
 
Posts: 23
Joined: Fri Nov 23, 2007 4:44 am

Postby venkat » Fri Feb 29, 2008 8:12 am

Thank you very much Living Sword, it's working perfectly now. :)
Regards,
Venkat.
venkat
Senior Developer
Senior Developer
 
Posts: 152
Joined: Tue Nov 27, 2007 5:42 am
Location: India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 17 guests