2 Replies Latest reply on Jun 27, 2013 5:12 AM by Joe Teague

    Getting Current Activity

      I am working on a project that involves using a number of pre-supplied native classes from a vendor. I have created a native extension and have much of the functionality I need; however, I am unable to use one class in particular because its constructor requires an Activity as one of its parameters. By importing com.rhomobile.rhodes.RhodesActivity I am able to get the application Context when needed, but there does not seem to be a corresponding method to get the current Activity. From the documentation available I thought that RhodesActivity.getInstance() would be the method to solve my problem, but it does not work. Does anyone have any ideas?