Is it possible to launch an other installed App from my PhoneGap-App? How can i do this?
- 4 Posts
- 0 Reply Likes
Posted 9 years ago
- 1941 Posts
- 89 Reply Likes
Hello,
So I had a talk with one of the fellows here; it really depends on what platform you need this to work on. For example with Blackberry yes it is possible via:
http://www.blackberry.com/developers/...
on IOS it seems to be a little more limited:
http://iphonedevelopertips.com/cocoa/...
And for android this maybe of some use:
http://smus.com/android-phonegap-plugins
However if you are working with build this maybe be difficult as you will not have plugins at the moment making it difficult for android.
Hope this a bit more sense,
Hardeep Shoker
So I had a talk with one of the fellows here; it really depends on what platform you need this to work on. For example with Blackberry yes it is possible via:
http://www.blackberry.com/developers/...
on IOS it seems to be a little more limited:
http://iphonedevelopertips.com/cocoa/...
And for android this maybe of some use:
http://smus.com/android-phonegap-plugins
However if you are working with build this maybe be difficult as you will not have plugins at the moment making it difficult for android.
Hope this a bit more sense,
Hardeep Shoker
- 4 Posts
- 0 Reply Likes
I will use the Android platform. Is there any way to launch an app without a plugin?
- 4 Posts
- 0 Reply Likes
For example i want to lauch the from my PhoneGapApp, the ARviewer-PhoneGap-App...
How can i lauch this app?
How can i lauch this app?
- 1941 Posts
- 89 Reply Likes
- 139 Posts
- 15 Reply Likes
One more thing: PhoneGap uses the built-in WebView (i.e. an instance of the native browser). On Android, a lot of URLs map to specific native applications. For example, a map:// URI will invoke the native mapping application, a mailto: URI will invoke the native email client, a tel: URI will invoke the dialer app, etc. Additionally, a similar sort of thing happens with file mime-types. For example, if your Android phone has a PDF viewer installed, this application should register itself with the PDF mimetype (whatever that is), so if you download / load a PDF file, this app should be invoked by default.
This system is based on the Android OS notion of Intents and Intent resolution (see http://developer.android.com/guide/to..., specifically Implied Intents.
What you are looking for is invoking an *Explicit* Intent. For this, you will need to integrate a plugin (either a plugin focused for invoking a specific app, or a more general Intent-handling plugin such as the WebIntent plugin: https://github.com/phonegap/phonegap-....
At this time, plugin support is still in alpha, but once we roll out billing sometime in the fall this feature should become available to build users.
This system is based on the Android OS notion of Intents and Intent resolution (see http://developer.android.com/guide/to..., specifically Implied Intents.
What you are looking for is invoking an *Explicit* Intent. For this, you will need to integrate a plugin (either a plugin focused for invoking a specific app, or a more general Intent-handling plugin such as the WebIntent plugin: https://github.com/phonegap/phonegap-....
At this time, plugin support is still in alpha, but once we roll out billing sometime in the fall this feature should become available to build users.
- 4 Posts
- 0 Reply Likes
Now i get an Intent for the installed app:
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("jun://channels/id=CHANNELID"));
startActivity(intent);
But I don't know how to integrate this Intent into my Phonegap-App..
I want to click on the button in my Menu from the index.html and the installed Jun-Application should start.
I don't know what i should change in the index.html or in the main.java to make it work.
Can someone help me?
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("jun://channels/id=CHANNELID"));
startActivity(intent);
But I don't know how to integrate this Intent into my Phonegap-App..
I want to click on the button in my Menu from the index.html and the installed Jun-Application should start.
I don't know what i should change in the index.html or in the main.java to make it work.
Can someone help me?
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers


