Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EFA9417352 for ; Fri, 23 Jan 2015 22:38:37 +0000 (UTC) Received: (qmail 221 invoked by uid 500); 23 Jan 2015 22:38:37 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 186 invoked by uid 500); 23 Jan 2015 22:38:37 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 99930 invoked by uid 99); 23 Jan 2015 22:38:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 22:38:37 +0000 Date: Fri, 23 Jan 2015 22:38:37 +0000 (UTC) From: "Michael Romanovsky (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8352) Need some way to expand an activity's functions, or relay them to a plugin. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290147#comment-14290147 ] Michael Romanovsky commented on CB-8352: ---------------------------------------- Please take a look at these links to see my current solution. (would like to keep this removable -- the pastebins are expiring in a week) I need to keep the main Activity file unchanged, since it won't work as a plugin otherwise: http://pastebin.com/3JYQGY5y http://pastebin.com/Pz8bU81V > 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