[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-21 Thread Matt Kanninen

Restarting the emulator didn't help.  Shutting it down then going to
my run configuations->target and selecting wipe user data worked.  I
think forced it to rebuild the database of images.  The wipe user data
option doesn't wipe the virtual sdcard I had attached to the emulator.

On Oct 21, 10:21 am, Matt Kanninen  wrote:
> I am having the same issue, SDK 1.6, on snow leopard.  I recall the
> pictures showing up in the default agllery applciation more easily on
> an earlier versions of the SDK, on windows.
>
> I'll try with more images of different types to see if that fixes it.
>
> On Oct 7, 6:15 pm, wahib haq  wrote:
>
> > i want to know how to push images to the emulator gallery. I tried
> > using with push command but its not displayed in gallery and not
> > accessed by my code. Actually i have to access the image taken by the
> > camera in my code. i tried to push a jpeg image to sdcard/DCIM/Camera
> > and file is shown there using shell. but its not displayed in camera
> > pictures folder in gallery and also not accessible by my code :S
>
> > plz help
>
> > On 10/8/09, Jeffrey Blattman  wrote:
>
> > >http://developer.android.com/guide/tutorials/views/hello-gallery.html
>
> > > On 10/7/09 5:03 PM, wahib haq wrote:
> > >> thanks john. how to enter images in the gallery ???
>
> > >> On 10/7/09, jbrohan  wrote:
>
> > >>> I'm a beginner too.
> > >>> I use ddms. Run the command window in Windows, then type ddms here. If
> > >>> you have the paths set up properly it will work, else you need to go
> > >>> to/tools and enter ddms. This program links with
> > >>> the debugger and provides real time readings of logcat and also
> > >>> device>file explorer shows the files and offers an easy upload and
> > >>> download.
>
> > >>> Images as such do not show up in teh gallery, they need to be entered
> > >>> into the gallery which creates a thumbnail for them.
> > >>> best of luck
> > >>> John
> > >>> On Oct 5, 10:40 pm, wahib  wrote:
>
> >  hi !! I have created a image file in a folder /androidimages and when
> >  i try to run emulator from terminal giving path to this image file it
> >  gives error:
>
> >  i try =>  $ emulator -sdcard /home/soms/androidemuimages/androidnew.img
> >  -avd androidnew
> >  error=>  SDL init failure, reason is: No available video device
>
> >  as a second alternative i give path to this image file in AVD manager
> >  in eclipse but even it doesnt recognises it i guess. coz when i try to
> >  use camera it display the toast that sdcard is not enabled.
>
> >  =
>
> >  second problem is that when i try to push a .bmp file to sdcard using
> >  $ adb push bar3.bmp /sdcard
> >  there is no error but there is no change in logcat and no image added
> >  to gallery. or is it somewhere else?:S
>
> >  Plz forgive if i sound childish.
>
> >  Thanks in advance,
> >  regards,
> >  wahib
>
> > > --
>
> > --
> > Wahib-ul-haq
>
> > Communications Engineering Student,
> > NUST, Pakistan.www.sizzlotech.com
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-21 Thread Matt Kanninen

I am having the same issue, SDK 1.6, on snow leopard.  I recall the
pictures showing up in the default agllery applciation more easily on
an earlier versions of the SDK, on windows.

I'll try with more images of different types to see if that fixes it.

On Oct 7, 6:15 pm, wahib haq  wrote:
> i want to know how to push images to the emulator gallery. I tried
> using with push command but its not displayed in gallery and not
> accessed by my code. Actually i have to access the image taken by the
> camera in my code. i tried to push a jpeg image to sdcard/DCIM/Camera
> and file is shown there using shell. but its not displayed in camera
> pictures folder in gallery and also not accessible by my code :S
>
> plz help
>
> On 10/8/09, Jeffrey Blattman  wrote:
>
>
>
> >http://developer.android.com/guide/tutorials/views/hello-gallery.html
>
> > On 10/7/09 5:03 PM, wahib haq wrote:
> >> thanks john. how to enter images in the gallery ???
>
> >> On 10/7/09, jbrohan  wrote:
>
> >>> I'm a beginner too.
> >>> I use ddms. Run the command window in Windows, then type ddms here. If
> >>> you have the paths set up properly it will work, else you need to go
> >>> to/tools and enter ddms. This program links with
> >>> the debugger and provides real time readings of logcat and also
> >>> device>file explorer shows the files and offers an easy upload and
> >>> download.
>
> >>> Images as such do not show up in teh gallery, they need to be entered
> >>> into the gallery which creates a thumbnail for them.
> >>> best of luck
> >>> John
> >>> On Oct 5, 10:40 pm, wahib  wrote:
>
>  hi !! I have created a image file in a folder /androidimages and when
>  i try to run emulator from terminal giving path to this image file it
>  gives error:
>
>  i try =>  $ emulator -sdcard /home/soms/androidemuimages/androidnew.img
>  -avd androidnew
>  error=>  SDL init failure, reason is: No available video device
>
>  as a second alternative i give path to this image file in AVD manager
>  in eclipse but even it doesnt recognises it i guess. coz when i try to
>  use camera it display the toast that sdcard is not enabled.
>
>  =
>
>  second problem is that when i try to push a .bmp file to sdcard using
>  $ adb push bar3.bmp /sdcard
>  there is no error but there is no change in logcat and no image added
>  to gallery. or is it somewhere else?:S
>
>  Plz forgive if i sound childish.
>
>  Thanks in advance,
>  regards,
>  wahib
>
> > --
>
> --
> Wahib-ul-haq
>
> Communications Engineering Student,
> NUST, Pakistan.www.sizzlotech.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-07 Thread wahib haq

i want to know how to push images to the emulator gallery. I tried
using with push command but its not displayed in gallery and not
accessed by my code. Actually i have to access the image taken by the
camera in my code. i tried to push a jpeg image to sdcard/DCIM/Camera
and file is shown there using shell. but its not displayed in camera
pictures folder in gallery and also not accessible by my code :S

plz help

On 10/8/09, Jeffrey Blattman  wrote:
> http://developer.android.com/guide/tutorials/views/hello-gallery.html
>
> On 10/7/09 5:03 PM, wahib haq wrote:
>> thanks john. how to enter images in the gallery ???
>>
>> On 10/7/09, jbrohan  wrote:
>>
>>> I'm a beginner too.
>>> I use ddms. Run the command window in Windows, then type ddms here. If
>>> you have the paths set up properly it will work, else you need to go
>>> to/tools and enter ddms. This program links with
>>> the debugger and provides real time readings of logcat and also
>>> device>file explorer shows the files and offers an easy upload and
>>> download.
>>>
>>> Images as such do not show up in teh gallery, they need to be entered
>>> into the gallery which creates a thumbnail for them.
>>> best of luck
>>> John
>>> On Oct 5, 10:40 pm, wahib  wrote:
>>>
 hi !! I have created a image file in a folder /androidimages and when
 i try to run emulator from terminal giving path to this image file it
 gives error:

 i try =>  $ emulator -sdcard /home/soms/androidemuimages/androidnew.img
 -avd androidnew
 error=>  SDL init failure, reason is: No available video device

 as a second alternative i give path to this image file in AVD manager
 in eclipse but even it doesnt recognises it i guess. coz when i try to
 use camera it display the toast that sdcard is not enabled.

 =

 second problem is that when i try to push a .bmp file to sdcard using
 $ adb push bar3.bmp /sdcard
 there is no error but there is no change in logcat and no image added
 to gallery. or is it somewhere else?:S

 Plz forgive if i sound childish.

 Thanks in advance,
 regards,
 wahib


>>>
>>
>>
>
> --
>
> >
>


-- 
Wahib-ul-haq

Communications Engineering Student,
NUST, Pakistan.
www.sizzlotech.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-07 Thread Jeffrey Blattman




http://developer.android.com/guide/tutorials/views/hello-gallery.html

On 10/7/09 5:03 PM, wahib haq wrote:

  
thanks john. how to enter images in the gallery ???

On 10/7/09, jbrohan  wrote:
  
  

I'm a beginner too.
I use ddms. Run the command window in Windows, then type ddms here. If
you have the paths set up properly it will work, else you need to go
to /tools and enter ddms. This program links with
the debugger and provides real time readings of logcat and also
device>file explorer shows the files and offers an easy upload and
download.

Images as such do not show up in teh gallery, they need to be entered
into the gallery which creates a thumbnail for them.
best of luck
John
On Oct 5, 10:40 pm, wahib  wrote:


  hi !! I have created a image file in a folder /androidimages and when
i try to run emulator from terminal giving path to this image file it
gives error:

i try => $ emulator -sdcard /home/soms/androidemuimages/androidnew.img
-avd androidnew
error=> SDL init failure, reason is: No available video device

as a second alternative i give path to this image file in AVD manager
in eclipse but even it doesnt recognises it i guess. coz when i try to
use camera it display the toast that sdcard is not enabled.

=

second problem is that when i try to push a .bmp file to sdcard using
$ adb push bar3.bmp /sdcard
there is no error but there is no change in logcat and no image added
to gallery. or is it somewhere else?:S

Plz forgive if i sound childish.

Thanks in advance,
regards,
wahib

  



  
  

  


-- 





[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-07 Thread wahib haq

thanks john. how to enter images in the gallery ???

On 10/7/09, jbrohan  wrote:
>
> I'm a beginner too.
> I use ddms. Run the command window in Windows, then type ddms here. If
> you have the paths set up properly it will work, else you need to go
> to /tools and enter ddms. This program links with
> the debugger and provides real time readings of logcat and also
> device>file explorer shows the files and offers an easy upload and
> download.
>
> Images as such do not show up in teh gallery, they need to be entered
> into the gallery which creates a thumbnail for them.
> best of luck
> John
> On Oct 5, 10:40 pm, wahib  wrote:
>> hi !! I have created a image file in a folder /androidimages and when
>> i try to run emulator from terminal giving path to this image file it
>> gives error:
>>
>> i try => $ emulator -sdcard /home/soms/androidemuimages/androidnew.img
>> -avd androidnew
>> error=> SDL init failure, reason is: No available video device
>>
>> as a second alternative i give path to this image file in AVD manager
>> in eclipse but even it doesnt recognises it i guess. coz when i try to
>> use camera it display the toast that sdcard is not enabled.
>>
>> =
>>
>> second problem is that when i try to push a .bmp file to sdcard using
>> $ adb push bar3.bmp /sdcard
>> there is no error but there is no change in logcat and no image added
>> to gallery. or is it somewhere else?:S
>>
>> Plz forgive if i sound childish.
>>
>> Thanks in advance,
>> regards,
>> wahib
> >
>


-- 
Wahib-ul-haq

Communications Engineering Student,
NUST, Pakistan.
www.sizzlotech.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-07 Thread jbrohan

I'm a beginner too.
I use ddms. Run the command window in Windows, then type ddms here. If
you have the paths set up properly it will work, else you need to go
to /tools and enter ddms. This program links with
the debugger and provides real time readings of logcat and also
device>file explorer shows the files and offers an easy upload and
download.

Images as such do not show up in teh gallery, they need to be entered
into the gallery which creates a thumbnail for them.
best of luck
John
On Oct 5, 10:40 pm, wahib  wrote:
> hi !! I have created a image file in a folder /androidimages and when
> i try to run emulator from terminal giving path to this image file it
> gives error:
>
> i try => $ emulator -sdcard /home/soms/androidemuimages/androidnew.img
> -avd androidnew
> error=> SDL init failure, reason is: No available video device
>
> as a second alternative i give path to this image file in AVD manager
> in eclipse but even it doesnt recognises it i guess. coz when i try to
> use camera it display the toast that sdcard is not enabled.
>
> =
>
> second problem is that when i try to push a .bmp file to sdcard using
> $ adb push bar3.bmp /sdcard
> there is no error but there is no change in logcat and no image added
> to gallery. or is it somewhere else?:S
>
> Plz forgive if i sound childish.
>
> Thanks in advance,
> regards,
> wahib
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-05 Thread wahib

the push command worked now as i tried chmod 777 /sdcard using shell.
Then i tried copying it to sdcard/Camera/DCIM/bar3.bmp and it is
successfully copied but problem is that it isnt shown in the gallery.
I even tried moving jpeg image but same problem even after restarting
the emulator
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---