What is field type in db table for audio and image? here is code from Media provider, in that it is 'data' type is text, same is for image table its data type too text.
so what is data type for images, audio or video for database table. will you clear me for the this stuff. In one tut I saw he stored the file as it is with field name file, is this perfect way? // Contains meta data about audio files db.execSQL("CREATE TABLE IF NOT EXISTS audio_meta (" + "_id INTEGER PRIMARY KEY," + "_data TEXT NOT NULL," + "_display_name TEXT," + "_size INTEGER," + "mime_type TEXT," + "date_added INTEGER," + "date_modified INTEGER," + "title TEXT NOT NULL," + "title_key TEXT NOT NULL," + "duration INTEGER," + "artist_id INTEGER," + "composer TEXT," + "album_id INTEGER," + "track INTEGER," + // track is an integer to allow proper sorting "year INTEGER CHECK(year!=0)," + "is_ringtone INTEGER," + "is_music INTEGER," + "is_alarm INTEGER," + "is_notification INTEGER" + ");"); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---