System.openUrl does not work (RMS 4.1)

G Gerbrand Stap 3 years 6 months ago
0 4 0

Opening an image using System.openUrl does no longer seem to work on Android since RhoMobile Suite version 4.1.1
An image can be opened in the attached test app by clicking on 'Images' and 'Test'. This works fine in the simulator and worked on Android in RMS 4.0. But when I run this using RMS 4.1, I get the attached log and all available image viewers give an error.

Any thoughts on how this is possible?

Please Register or Login to post a reply

4 Replies

G Gerbrand Stap

Is there any news about this issue?
At the moment we do not have any way to open a file on Android (in another app). It seems to me that this feature should work, certainly  now that Intents are introduced in Rho 4.1. We also have customers waiting for this to be fixed.

K Kutir Mobility

Hi Gerbrand,
I can reproduce it . It's look like issue on Rho 4.1. This issue needs help from Motorola. We will raise this issue with them to get an answer.

Visnupriya R
Kutir Mobility

G Gerbrand Stap

OK, thanks!
If you could keep me informed about the progress, that would be great!

A Alexey Tikhvinsky

Hi Gerbrand,

Try to add next param to application's build.yml

android:
   no_compression: [png, html, js, css, dat, ttf, txt]

By default it contains next list: [html, htm, js, css]

The main element in the list is png for your case and you need to add other file extensions (except jpg!) which can be requested by browser using file protocol or can be accessed by third party application using System.openUrl(url)

CONTACT
Can’t find what you’re looking for?