incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Bowser <bows...@gmail.com>
Subject Re: Android devs
Date Fri, 08 Jun 2012 18:40:49 GMT
No, it means that ctx.getContext() will have to be change to
ctx.getActivity(), since Activities are Contexts.
http://developer.android.com/reference/android/app/Activity.html

On Fri, Jun 8, 2012 at 11:31 AM, Simon MacDonald
<simon.macdonald@gmail.com>wrote:

> Okay, I'll pull it out. It just means all those folks we told to change:
> ctx
>
> to: ctx.getContext() in 1.5+
>
> will now need to make it: ctx.getActivity().getContext() in 1.9+.
>
> Simon Mac Donald
> http://hi.im/simonmacdonald
>
>
> On Fri, Jun 8, 2012 at 2:27 PM, Bryce Curtis <curtis.bryce@gmail.com>
> wrote:
>
> > getContext was not added to interface since it is available from
> > getActivity().getContext().
> >
> > On Fri, Jun 8, 2012 at 1:24 PM, Simon MacDonald
> > <simon.macdonald@gmail.com> wrote:
> > > Yeah, the video player plugin uses it to start playing video.
> > >
> > > Simon Mac Donald
> > > http://hi.im/simonmacdonald
> > >
> > >
> > > On Fri, Jun 8, 2012 at 2:10 PM, Joe Bowser <bowserj@gmail.com> wrote:
> > >
> > >> Why would you want to start an activity where you wouldn't get a
> result?
> > >> Just to put it on the stack?
> > >>
> > >> On Fri, Jun 8, 2012 at 11:05 AM, Simon MacDonald
> > >> <simon.macdonald@gmail.com>wrote:
> > >>
> > >> > Please take a look at:
> > >> >
> > >> >
> > >> >
> > >>
> >
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=95b48705fea2cac0f2561f84d3f1ecf017357b58
> > >> >
> > >> > I added getContext and startActivity back into CordovaInterface.
> Does
> > >> > anyone see any problems with this? I've done it to make life with
> the
> > >> > current crop of plugins easier.
> > >> >
> > >> > Simon Mac Donald
> > >> > http://hi.im/simonmacdonald
> > >> >
> > >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message