how to put images to Picture folder in the emulator, new SDK

All your problems with Audio, Video and Images.

how to put images to Picture folder in the emulator, new SDK

Postby hebbalhrk » Tue Aug 26, 2008 9:40 am

I want to put some images into the Pictures folder on the emulator. How do i do it?
Do i need to write the path of the image in some database?. Where exactly is the pictures folder pointing?

Thanks!
hebbalhrk
Developer
Developer
 
Posts: 37
Joined: Wed Jun 18, 2008 10:35 am

Top

Postby cgreen » Tue Aug 26, 2008 10:13 am

what pictures folder ? :?:

maybe you want to place your pictures into your project res/drawable/ folder and use R.drawable.YOURPICTURE to point to it ?
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Postby hebbalhrk » Tue Aug 26, 2008 10:18 am

No. You have a folder by name Pictures on the Emulator.
I need to know how to add pictures onto that particular folder

Please have a look at the screenshot below
Attachments
untitled.JPG
untitled.JPG (38.01 KiB) Viewed 528 times
hebbalhrk
Developer
Developer
 
Posts: 37
Joined: Wed Jun 18, 2008 10:35 am

Postby cgreen » Tue Aug 26, 2008 4:05 pm

ah i see :oops:

no, i don't have a clue. there is a folder /system/media/ with audio, but i havent found anything about pictures yet.
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Postby hebbalhrk » Wed Aug 27, 2008 7:00 am

i just tried clicking a picture from the camera and saved it.
A dummy image reflects in the pictures folder and the particular image gets stored in the sdcard.

The problem here is that the Picture folder points some entry in the database
did checkout /data/data/com.android.providers.media/databases/external.db
and /data/data/com.android.providers.media/databases/internal.db
coudn't find any entry under table images...

Any idea?..
hebbalhrk
Developer
Developer
 
Posts: 37
Joined: Wed Jun 18, 2008 10:35 am

Postby cgreen » Wed Aug 27, 2008 1:58 pm

i'm currently stuck with porting to the new sdk, so i couldnt check it for myself.

i saw a media.db on my sdcard. it contains a table
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. CREATE TABLE images (_id INTEGER PRIMARY KEY,_data TEXT,mime_type TEXT,drm_type TEXT,drm_content_type TEXT,title TEXT,timestamp INTEGER,description TEXT,width INTEGER,height INTEGER,picasa_id TEXT,mini_thumb_data TEXT,isprivate INTEGER,latitude DOUBLE,longitude DOUBLE,datetaken INTEGER,orientation INTEGER)
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


path to media.db is /sdcard/android/media.db
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Top

Postby living_sword » Fri Aug 29, 2008 5:57 pm

upload the pics into the sdcard image.
Image
living_sword
Junior Developer
Junior Developer
 
Posts: 23
Joined: Fri Nov 23, 2007 4:44 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 10 guests