Unsolved
This post is more than 5 years old
3 Posts
0
2252
July 30th, 2015 23:00
Call PocketCloud from another App
Call PocketCloud from another App
I downloaded the free version of PocketCloud and it works great, connects without a problem. Now I’m trying to see if I can kick it off from an App I’ve created. I have a button for a VPN connection and another for starting up PocketCloud. After successfully making a VPN connection I then click on the button to startup PocketCloud I get a message box that says, “The application ... has stopped unexpectedly. Please try again.”. Then it does a Force Close. Is there a way to do this within an App using the free version? If I can get it working I would like to purchase it but I first want to see that it will work before buying.
thanks for you help.
Mark
Josh-2015
1.3K Posts
0
July 30th, 2015 23:00
Hello Mark, unfortunately the free version does not support this. The Pro version supports the use of RDP files, so if you were to upgrade to the Pro version, this should work for you.
mandrus-2015
3 Posts
0
July 30th, 2015 23:00
That's the answer i was looking for. I just didnt want to purchase it without knowing for sure it was a version issue. Unfortunately, it took a week to get this simple answer. I first tried Sales and they sent me to a link for their support. Support said they couldn't answer the question because i was using the free version so they provided a link to this online user support. I was beginning to think i would never get this resolved
Thanks Josh!
Josh-2015
1.3K Posts
0
July 30th, 2015 23:00
What method are you launching our application with?
mandrus-2015
3 Posts
0
July 30th, 2015 23:00
Call PocketCloud from another App
Thanks for your response.
Pulled the routine over from this link:
http://wysetechnologyinc.zendesk.com...orted-rdp-keys
i taylored the below code to fit with my program name and file name. No code errors on compile just the error i reported when i click on the button i setup that uses the code below.
I'm feeling like you probably have to purchase the Pro version but i want to be sure
A quick response would be much appreciated.
Mark
----------------------------------
public class Main extends Activity {
private static final String TAG = "Example Application";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String fileName = "/test.rdp";
// Get the external storage (SD card)
File extStore = Environment.getExternalStorageDirectory();
Log.i(TAG, "Storage path: " + extStore.getAbsolutePath());
Log.i(TAG, "Loading file from: " + extStore.getAbsolutePath() + fileName);
// Build absolute file path
String absoluteFilePath = "file://" + extStore.getAbsolutePath() + "/test.rdp";
Log.w(TAG, "Loading file path: " + absoluteFilePath);
// Set up data to launch PocketCloud Pro
Uri uri = Uri.parse(absoluteFilePath);
Intent i = new Intent();
i.setAction(Intent.ACTION_VIEW);
i.setData(uri);
startActivity(i);
}
}
Josh-2015
1.3K Posts
0
August 4th, 2015 02:00
Sorry for the run around you had to go through to get the answer. I am glad I could help!