Problem in fetching images on the Android Emulator

Hi!

I am trying to fill a form "Person" using eclipse in android emulator
(version 8). I am unable to display images on the form. Here are the steps I
tried.

  • On Command prompt:
    . "adb shell"
    . "cd /sdcard/odk/forms/"
    . "mkdir Person-media"
    . "exit"
    . "adb push logo.jpg /sdcard/odk/forms/Person-media/"
    (the file copies and shows in the emulator's shell)
  • On Debugging, the ODK Collect installs and executes fine. I downloaded my
    form using "Manage Forms".
  • The form opens but I don't receive any error message when I go to this
    Logo widget.

The same happens with Videos as well. I thought it would be a file format
problem but "JPG" has to be supported anyway!

Please help me out.

Best Regards,

OWAIS AHMED

Software Engineer

IRD Pakistan

Official: +922134327697
Personal: +923453174270
Skype: owais.a.hussain

Person.xml (2.36 KB)

your syntax is very incorrect. try this form...

http://cs.washington.edu/homes/yanokwa/tmp/Forest.zip

··· On Mon, Jul 25, 2011 at 05:54, Owais Hussain wrote: > Hi! > > I am trying to fill a form "Person" using eclipse in android emulator > (version 8). I am unable to display images on the form. Here are the steps I > tried. > - On Command prompt: > . "adb shell" > . "cd /sdcard/odk/forms/" > . "mkdir Person-media" > . "exit" > . "adb push logo.jpg /sdcard/odk/forms/Person-media/" > (the file copies and shows in the emulator's shell) > - On Debugging, the ODK Collect installs and executes fine. I downloaded my > form using "Manage Forms". > - The form opens but I don't receive any error message when I go to this > Logo widget. > > The same happens with Videos as well. I thought it would be a file format > problem but "JPG" has to be supported anyway! > > Please help me out. > > Best Regards, > > OWAIS AHMED > > Software Engineer > > IRD Pakistan > www.irdresearch.org > > Official: +922134327697 > Personal: +923453174270 > Skype: owais.a.hussain > >

Hi Yaw!

I generated this XML from build.opendatakit.org. I see major differences
between the generated xml and this one. How do I do this through visual
designer (is there any for eclipse)?

Thanks,

Best Regards,

OWAIS AHMED

Software Engineer

IRD Pakistan

Official: +922134327697
Personal: +923453174270
Skype: owais.a.hussain

··· On Mon, Jul 25, 2011 at 7:38 PM, Yaw Anokwa wrote:

your syntax is very incorrect. try this form...

http://cs.washington.edu/homes/yanokwa/tmp/Forest.zip

On Mon, Jul 25, 2011 at 05:54, Owais Hussain owais.hussain@irdinformatics.org wrote:

Hi!

I am trying to fill a form "Person" using eclipse in android emulator
(version 8). I am unable to display images on the form. Here are the
steps I
tried.

  • On Command prompt:
    . "adb shell"
    . "cd /sdcard/odk/forms/"
    . "mkdir Person-media"
    . "exit"
    . "adb push logo.jpg /sdcard/odk/forms/Person-media/"
    (the file copies and shows in the emulator's shell)
  • On Debugging, the ODK Collect installs and executes fine. I downloaded
    my
    form using "Manage Forms".
  • The form opens but I don't receive any error message when I go to this
    Logo widget.

The same happens with Videos as well. I thought it would be a file format
problem but "JPG" has to be supported anyway!

Please help me out.

Best Regards,

OWAIS AHMED

Software Engineer

IRD Pakistan
www.irdresearch.org

Official: +922134327697
Personal: +923453174270
Skype: owais.a.hussain

build currently supports only capturing multimedia. there is
currently, no visual designer that supports multimedia as part of the
prompt. if you are familiar with eclipse, you can probably look at the
xml and code it up by hand. the alternative is to wait a few days for
xls2xform which will allow you to design forms in excel.

··· On Mon, Jul 25, 2011 at 23:07, Owais Hussain wrote: > Hi Yaw! > > I generated this XML from build.opendatakit.org. I see major differences > between the generated xml and this one. How do I do this through visual > designer (is there any for eclipse)? > > Thanks, > > Best Regards, > > OWAIS AHMED > > Software Engineer > > IRD Pakistan > www.irdresearch.org > > Official: +922134327697 > Personal: +923453174270 > Skype: owais.a.hussain > > > > On Mon, Jul 25, 2011 at 7:38 PM, Yaw Anokwa wrote: >> >> your syntax is very incorrect. try this form... >> >> http://cs.washington.edu/homes/yanokwa/tmp/Forest.zip >> >> On Mon, Jul 25, 2011 at 05:54, Owais Hussain wrote: >> > Hi! >> > >> > I am trying to fill a form "Person" using eclipse in android emulator >> > (version 8). I am unable to display images on the form. Here are the >> > steps I >> > tried. >> > - On Command prompt: >> > . "adb shell" >> > . "cd /sdcard/odk/forms/" >> > . "mkdir Person-media" >> > . "exit" >> > . "adb push logo.jpg /sdcard/odk/forms/Person-media/" >> > (the file copies and shows in the emulator's shell) >> > - On Debugging, the ODK Collect installs and executes fine. I downloaded >> > my >> > form using "Manage Forms". >> > - The form opens but I don't receive any error message when I go to this >> > Logo widget. >> > >> > The same happens with Videos as well. I thought it would be a file >> > format >> > problem but "JPG" has to be supported anyway! >> > >> > Please help me out. >> > >> > Best Regards, >> > >> > OWAIS AHMED >> > >> > Software Engineer >> > >> > IRD Pakistan >> > www.irdresearch.org >> > >> > Official: +922134327697 >> > Personal: +923453174270 >> > Skype: owais.a.hussain >> > >> > > >

Thanks Yaw! I already did it with eclipse and it works good.

Best Regards,

OWAIS AHMED

Software Engineer

IRD Pakistan

Official: +922134327697
Personal: +923453174270
Skype: owais.a.hussain

··· On Tue, Jul 26, 2011 at 7:02 PM, Yaw Anokwa wrote:

build currently supports only capturing multimedia. there is
currently, no visual designer that supports multimedia as part of the
prompt. if you are familiar with eclipse, you can probably look at the
xml and code it up by hand. the alternative is to wait a few days for
xls2xform which will allow you to design forms in excel.

On Mon, Jul 25, 2011 at 23:07, Owais Hussain owais.hussain@irdinformatics.org wrote:

Hi Yaw!

I generated this XML from build.opendatakit.org. I see major differences
between the generated xml and this one. How do I do this through visual
designer (is there any for eclipse)?

Thanks,

Best Regards,

OWAIS AHMED

Software Engineer

IRD Pakistan
www.irdresearch.org

Official: +922134327697
Personal: +923453174270
Skype: owais.a.hussain

On Mon, Jul 25, 2011 at 7:38 PM, Yaw Anokwa yanokwa@gmail.com wrote:

your syntax is very incorrect. try this form...

http://cs.washington.edu/homes/yanokwa/tmp/Forest.zip

On Mon, Jul 25, 2011 at 05:54, Owais Hussain owais.hussain@irdinformatics.org wrote:

Hi!

I am trying to fill a form "Person" using eclipse in android emulator
(version 8). I am unable to display images on the form. Here are the
steps I
tried.

  • On Command prompt:
    . "adb shell"
    . "cd /sdcard/odk/forms/"
    . "mkdir Person-media"
    . "exit"
    . "adb push logo.jpg /sdcard/odk/forms/Person-media/"
    (the file copies and shows in the emulator's shell)
  • On Debugging, the ODK Collect installs and executes fine. I
    downloaded

my
form using "Manage Forms".

  • The form opens but I don't receive any error message when I go to
    this

Logo widget.

The same happens with Videos as well. I thought it would be a file
format
problem but "JPG" has to be supported anyway!

Please help me out.

Best Regards,

OWAIS AHMED

Software Engineer

IRD Pakistan
www.irdresearch.org

Official: +922134327697
Personal: +923453174270
Skype: owais.a.hussain