How to see image and media files in SDCard from emulator

by Nithin » Fri, 06 Mar 2009 17:18:01 GMT


Sponsored Links
 Hi ,

When we insert images or media files to sdcard, how we can see this in
emulator, means in which folder, i inserted some images and checked in
"pictures", but i cant see anything there, just blank only --"No
Pictures found" displaying.

For media i checked in "Media scanner" under 'Dev tools", there also
cant see anything.

Can anybody guide me in this issue.

Thanks
Nithin
--~--~---------~--~----~------------~-------~--~----~



How to see image and media files in SDCard from emulator

by zeeshan » Fri, 06 Mar 2009 17:26:49 GMT


 make sure you are running your emulator in sdcard mode.

emulator -sdcard [sdcard link]



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Seeking advice on a first program (includes general idea, just implementation advice.)

Hello all, to start with I've gone through the entire notepad
tutorial, I'm a professional game programmer who has some extra time.
(though most of my time has been in C++, I did take a year or two of
Java classes in college, and remember some of it).

I'm not sure the group is a good site to ask questions like this.. If
someone has a Forum that might be a good place to ask these newbie
questions, please feel free to point me in the direction.

I've examined a few of the samples, and think I've a grasp of what I
want to do.  I've a three to four project plan for some Android
releases to sharpen my skills, but since this is my first project and
I have never really developed for a mobile phone or the android
before, I'd like to make sure I have a solid plan.

The first project is an example of the license plate game, however I
want to do a few things to change it.  Heck maybe when I'm done it'll
become a bingo style game, with bluetooth connectivity, you never
know.

The base idea is I want to offer a list of states, with checkboxes
next to them.  so to do this, I'll be starting with a Linear List
layout similar to the note pad example, and then have a row that is
only a Checkbox.  I can use text and call strike through if it's been
checked off.   Perhaps offer an option to not show them if they are
checked.

But I want the list to be generated from a set of lists.  Maybe all of
America's states, maybe reasonable American states (no Hawaii, no
Alaska) maybe a North American list, (add in Mexico and some Canadian
provinces), a European list, who knows.

I'd probably have to have a pop up window that lists all of the lists
I suppose using a radiogroup of some sort.

So then as far as the data, after weighing options I think best
solution is to make a database with two fields, "checked" and "name".

I figure I can use the menu for most of the user interaction (aside
from clicking on stuff we want to check off) with maybe a few context
menu items, I understand how to make all of those already so I should
be good.

The question I have is what is the best way to populate the lists?
Should I create raw data, and have different files for all the
lists?   Or is there some other way to do this?  I've seen this done
on the searchable dictionary, but I'd like to hear what people who
have actually generated the data like this before.

In addition is there an easy way to look at the sql database these
applications create, or do you have to run searches on them and output
the data?

Finally any other suggestion or advice?   I definitely want to try to
get something like this on the market so I can see the full life cycle
and see if anyone actually likes it.  (luckily there's not a plethora
of them already) but I also want a few people to look over my code if
they're willing when I'm done to make sure I've done this right or at
least not missing any basic mistakes.

Thank you for your time,

Frank

-- 

2. Contact added through API does not get synced

Hello everyone!
Yes, I know there are plenty of troubles in the current contacts API,
but still I want to ask one more question on the subject. I have
succesfully managed to add contact with some details to the phone
contacts list using this code (it may not work out-of-the-box since I
copy-pasted it from different parts of my program, but it's working
there)


ArrayList<ContentProviderOperation> operations = new
ArrayList<ContentProviderOperation>();

Uri.Builder builder = RAW_CONTACT_URI.buildUpon();

ContentProviderOperation operation =
ContentProviderOperation.newInsert(builder.build())
                                                          
.withValue(ContactsContract.RawContacts.ACCOUNT_TYPE,
"my_em...@gmail.com")
                                                          
.withValue(ContactsContract.RawContacts.ACCOUNT_NAME,
"com.google")
                                                          .build();
operations.add(operation);

ContentProviderOperation.Builder cpBuilder;

Uri.Builder uriBuilder =
ContactsContract.Data.CONTENT_URI.buildUpon();

cpBbuilder = ContentProviderOperation.newInsert(uriBuilder.build());

cpBuilder =
builder.withValue(CommonDataKinds.StructuredName.DISPLAY_NAME,
"Gugl1")
                                   .withValue(ContactsContract.Data.MIMETYPE,
 
CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE);

operation = cpBuilder.build();

operations.add(operation);

resolver.applyBatch(ContactsContract.AUTHORITY, operations);

/*
...
contact is created, I get his id and add to some group
...
*/

operations.clear();

operations.add(ContentProviderOperation.newInsert(Data.CONTENT_URI)
                        .withValue(GroupMembership.RAW_CONTACT_ID, id)
                        .withValue(GroupMembership.GROUP_ROW_ID, SOME_GROUP_ID)
                        .withValue(Data.MIMETYPE,
GroupMembership.CONTENT_ITEM_TYPE)
                        .build());

resolver.applyBatch(ContactsContract.AUTHORITY, operations);

After this code works, I get a gmail contact listed on my phone, the
group is "Starred in Android", but no matter what I do after - edit(if
I edit it's displayed as gmail contact) it, open/close etc. - this
contact never appears on my Gmail's contact list. Maybe some
additional fields should be added to contact's record in order to make
it be synced with Gmail? I am confused. Please, help.

-- 

3. Trying to move multiple widgets at the same time

4. Senior Android developer Position- Las Vegas; 6 months min

5. how to disable auto pdp context activate feature?

6. Weird contact behavior in 2.1 - adding phone number

7. How to access clipboard through Android shell