Size 0kb for all transferred images to sdcard (Android Emulator)

by Kevin Cherdchai » Mon, 18 Jan 2010 04:27:04 GMT

Sponsored Links
 Hey Android community, I'm actually new here, so I would like to ask
for some guidance.

I recently just setup the Android SDK and got the emulator to be up
and running. However, right now I'm not able to add files into the
sdcard.img for some strange reasons.

I entered the following command:
adb push test.jpg /sdcard/test.jpg

What happens is the file shows up inside the image, but it reports
that the file has the size 0kb which is what I don't know where to

My end goal is to get the image to pop up within the gallery, but
apparently it always show "No media found" in which i suppose it came
from the 0kb in size.

Any help or suggestions would be greatly appreciated. Thank you in

Other Threads

1. Working with the new ContactContracts API


I'm currently working on porting our Android app to 2.0 but I'm having
a rather hard time figuring out what is required to interact with the
new Contacts API.
I'm using reflection to decide whether the new API is available, if it
is I attempt to use the new features, otherwise I fall back to our old

However, I'm having a hard time finding analogs to the old
functionality in the new API.
For example in the past I was adding contacts to the database from an
external text source by creating a ContentValues object, filling it
with information on the contact and then adding it with a call to:


ContentValues personValues = new ContentValues();
personValues.put(Contacts.People.NAME, "Some Body");
Uri personUri = Contacts.People.createPersonInMyContactsGroup
(curContext().getContentResolver(), personValues);

How can I achieve the same goal in the new API?

I appreciate all the hard work going into improving the APIs but I
must admit I'm a bit frustrated by the lack of documentation and
I realize we have plenty of Javadocs on to
reference, but those only really show us what the new interfaces are.
I'm having a really hard time finding any discussion in terms of how
the new API is intended to be used.

Any help would be greatly appreciated!


2. Network Unreachable ( Exception)

Hi ,
               I am trying to connect to server through
HttpUrlConnection, but after sometimes it throws Socket.Net
Exception :Network Unreachable. I tired alarm manager to wake up the
phone and get the wifi lock but none seems to work .

Tell me what to do what should i check and alternative ?.



3. DHCP Address on WiFi

4. Pintu Air Bogor Jebol! Jakarta Siaga 1 Banjir

5. How to overlay POIs on Camera

6. Problems testing applications on HTC Hero device

7. OOT Iseng: Siapa bilang Apple dan Google bermusuhan? :P