Unsolved
This post is more than 5 years old
5 Posts
0
3428
August 1st, 2015 00:00
HELP!! Launch pocket cloud from a file uri
HELP!! Launch pocket cloud from a file uri
Device: Nexus One
Android Version: 2.2.1
PocketCloud Version: Pro 1.1
I need to start pocket cloud activity from an application. This is the code I am trying:
Uri uri = Uri.parse("file://mnt/sdcard/mysfa.rdp");
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
Log.d(TAG, uri.toString());
i.setData(uri);
try {
startActivity(i);
} catch(ActivityNotFoundException e) {
Toast.makeText(this, R.string.install_rdp_client , 10 ).show();
}
The problem is that it does not work. PocketCloud crashes. The messase is:
The application PocketCloud has stopped unexpectedly. Please try again.
The rdp configuration file is a correct. I have try it downloading from a web server and pocketCloud works.
What I am doing wrong? Does PocketCloud understand file uris?
Thanks
sonicwall25
1 Message
0
August 3rd, 2015 09:00
I would like to have the same functionality. Is there any solution to fix the issue? The app crashes with "java.lang.IllegalArgumentException: width and height must be > 0".
kens-2015
3 Posts
0
August 3rd, 2015 09:00
The product update on 14th April seemed to have solved some problem around .rdp setting. Thanks !
kens-2015
3 Posts
0
August 3rd, 2015 09:00
My collegue found out a way to progress a bit.
file://mnt/sdcard/mysfa.rdp --> file:///mnt/sdcard/mysfa.rdp (add one more slash)
But, personally, I can't make .rdp file that works. I am not sure why. Still he can make that work.
I'd appreciate if the document around this function is updated.
By the way, the sticky memo about rdp that was available yesterday is not found...
Chris-2015
544 Posts
0
August 3rd, 2015 09:00
See if this helps: http://wysetechnologyinc.zendesk.com...orted-rdp-keys
-Chris
kens-2015
3 Posts
0
August 3rd, 2015 09:00
Thanks
It will help a lot. Thanks Chris.
Kens