cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8352) Need some way to expand an activity's functions, or relay them to a plugin.
Date Thu, 22 Jan 2015 20:19:36 GMT

    [ https://issues.apache.org/jira/browse/CB-8352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14288156#comment-14288156
] 

Andrew Grieve commented on CB-8352:
-----------------------------------

The link you sent seems to be missing information e.g.

{quote}
Import Pollfish classes with the following lines at the top of your Activity’s class file:

{quote}

A good example of what can currently be done is the SplashScreen plugin - 
It runs on start-up via pluginInitialize.

https://github.com/apache/cordova-plugin-splashscreen/blob/master/src/android/SplashScreen.java


> Need some way to expand an activity's functions, or relay them to a plugin.
> ---------------------------------------------------------------------------
>
>                 Key: CB-8352
>                 URL: https://issues.apache.org/jira/browse/CB-8352
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, CordovaJS
>            Reporter: Michael Romanovsky
>              Labels: cordova, cordova-lib
>
> There is already startActivityForResult, which helps me run onActivityResult.
> I am having trouble integrating this: http://tinyurl.com/kptdph5
>  as a plugin, however. It calls for extending the main Activity to run the events, but
as far as I know, only onActivityResult will forward back to a plugin.
> Some ideas:
> 1) A pre-processing step that rewrites the main Activity and adds functions from a specific
class into the Activity.
> 2) ???
> 3) PROFIT.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message