开发者

search function advise

I have a folder with pictures and I'd like to make a search function to be able to find pictures that correspond to their key words. I'd like to know how you'd do this ?

I thought making a *.txt file with the name of the pictures and their corresponding key words, and then search in this text file the key wor开发者_如何学运维ds asked.

Is there a simpler way ? A better FileType (for instance *.ini) ?

Could you give me an advise. Thanks.


You could use a simple sqlite database and query it with your keyword.

There are many Android Sqlite sample out in Google to get an idea how it works. Also see the Android dev docs http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html


Is it an option that pictures contain file property -> tag and that you enter keywords to that property so you can search pictures by tags?

That way your picture will contain the keywords itself and that way there is no need to create extra files.

Just an idea...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜