1. Marc James
  2. PowerServer Mobile (Obsolete)
  3. Tuesday, 18 August 2020 12:01 PM UTC

Hi,

I wrote a simple app which captures a pictures using the camera , I have deployed it to Android 10 Tablet and it works fine.

 

But there is an issue , after each picture is taken a file called image(1).jpg is created in the pictrues folder It keeps creating new images in there until it reaches image(32).jpg and then the app stops taking pictures and crashes.

 

Not sure how this relates to my app as I'm not storing images in the pictures folder but it seems to affect the app.

 

Once I delete them it carries on, not sure how to solve this.

 

 

Marc James Accepted Answer Pending Moderation
  1. Wednesday, 19 August 2020 09:00 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi,

 

Thanks for the replies.

Making the file option true or false makes no difference the files remain in the pictures folder, I have tried it on my Samsung S8 and it does not appear to suffer the same problem so I think it could be a Android 10 issue?

The device I am trying it on is a

Galaxy Tab A - Model SM-T515

Android 10 Build QP1A.190711

Power server 2020 Build 2323

Using the Build 2323 template

 

What it appears to do is create images in the folder every time you take a picture

/Internal storage/Pictures/Image.jpg

as well as creating the images in the plugin folder.

Then it carries on creating Image (2).jpg , Image (3).jpg until it reaches Image (32).jpg and then the program stops.

If you delete the pictures in the folder its ok again until it reaches Image (32).jpg which happens after 33 pictures are taken.

By the way I have tried in the both the workspace and making a APK and the problem is exactly the same.

 

 

 

 

 

 

Comment
  1. Kai Zhao @Appeon
  2. Thursday, 20 August 2020 01:44 AM UTC
Hi Marc,



Thanks for providing the information. Another customer reported a similar bug, this issue occurred on some Samsung Android 10 devices. But I did not reproduce the issue on Samsung Galaxy S20+(Android 10) on our end.



The issue may be related to a certain update on the Samsung device. Please try updating your Samsung device’s OS to the latest patch. We will escalate this problem to our development team for further analysis



Regards,

ZhaoKai
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 19 August 2020 01:22 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Hi Marc,

We haven’t seen this issue before, please provide the information below to us for more study, thanks.

1 Do other devices have the same issue?
2 The device you used, for example: Samsung Galaxy Tab S2.
3 A simple PB case and the detailed reproducible steps.
4 What the picture folder you are referring to, album?
5 Please try the script below to see if it works well.

eon_mobile_cameraex ln_camera
eon_mobile_str_cameraoption lstr_option
int li_return
string ls_filepath

ln_camera = create eon_mobile_cameraex
lstr_option.i_filetype = 1
lstr_option.b_allowedit = false

li_return = ln_camera.of_takefile (lstr_option, ls_filepath)

destroy ln_camera


Regards,
ZhaoKai

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 August 2020 17:44 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 3

Hi Marc;

  In the "of_takeFile()" method, you you set the "allowedit" property to ON (True)? If so, does your App try to perform a FileDelete() command to clean-up afterwards?

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.