Problem with image in question text

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
chirawat
Posts: 11
Joined: July 27th, 2021, 5:57 am
Location: BKK, Thailand

Problem with image in question text

Post by chirawat »

Dear CSPro experts,

I included an image (.png) in a question text and it is shown properly when running in Windows system.
However, when running in Android tablet, the image is gone.
I've tried to 'put in the resource folder' and to 'include in pen file as image resource' but the problem still exists.

This is happened since I updated CSEntry 7.6.2 released on 2nd of August.
The image was shown perfectly in version 7.6.2 before the current release in August .

Please suggest me the solution.
Thank you in advance,

Chira
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Problem with image in question text

Post by Gregory Martin »

We haven't yet heard of problems displaying images in the latest version. Can you send your .pen file to cspro@lists.census.gov? We'll take a look at what might be happening.
copernix2
Posts: 18
Joined: November 23rd, 2014, 7:46 am

Re: Problem with image in question text

Post by copernix2 »

Hi I have the same issu.
chirawat
Posts: 11
Joined: July 27th, 2021, 5:57 am
Location: BKK, Thailand

Re: Problem with image in question text

Post by chirawat »

Gregory Martin wrote: September 2nd, 2021, 8:04 am We haven't yet heard of problems displaying images in the latest version. Can you send your .pen file to cspro@lists.census.gov? We'll take a look at what might be happening.
Thank you for your reponse. I just sent you the .pen file to the above e-mail.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Problem with image in question text

Post by Gregory Martin »

Thank you for reporting this problem. We will try to fix it soon.

In the meantime, a workaround is to include images in the same directory or a subdirectory of the location of your application. In other words, if my application is here:

csentry/app/app.pen

Images here will work:

csentry/app/image.jpg
csentry/app/images/image.jpg

But not the way you have it:

csentry/images/image.jpg

Sorry for the inconvenience.
chirawat
Posts: 11
Joined: July 27th, 2021, 5:57 am
Location: BKK, Thailand

Re: Problem with image in question text

Post by chirawat »

Dear Martin,

Thank you for your workaround. But the app still does not display the image.
My application is located in 'csentry/appName/Menu/Menu.pen'

I tried out to put the image in several locations as belows;

csentry/appName/image.jpg
csentry/appName/images/image.jpg
csentry/appName/Menu/image.jpg
csentry/appName/Menu/images/image.jpg
csentry/appName/Resources/images/image.jpg

(I can confirm that the image exists in all above locations in the tablet.)

However, I've not yet tried to move my app to 'csentry/appName/Menu.pen' because it will affect some defined paths in the logic.

Your further recommendation is appreciated.
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: Problem with image in question text

Post by sherrell »

Hi Chira,

Your application needs to be here: csentry/app/appName/Menu/Menu.pen

Was this a typo, or do you have it in csentry/appName/Menu/Menu.pen ?

Thanks,
Sherrell
chirawat
Posts: 11
Joined: July 27th, 2021, 5:57 am
Location: BKK, Thailand

Re: Problem with image in question text

Post by chirawat »

sherrell wrote: September 7th, 2021, 11:51 am Hi Chira,

Your application needs to be here: csentry/app/appName/Menu/Menu.pen

Was this a typo, or do you have it in csentry/appName/Menu/Menu.pen ?

Thanks,
Sherrell
Hi Sherrell,

There is no 'app' folder in the tablet.

The location in the tablet is exactly in csentry/appName/Menu/Menu.pen.
(Although appName is not the real name but the location is as above)
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Problem with image in question text

Post by Gregory Martin »

We believe that we fixed the problem and we plan on updating the version of CSEntry in Google Play on Monday. If you still see the problem after that date, please let us know. Sorry again for the inconvenience.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Problem with image in question text

Post by Gregory Martin »

The version of CSEntry now in Google Play (September 14) has the fix. Let us know if you still have a problem after your device updates CSEntry.
Post Reply