Hi Justin,
The WindowManagerService itself had a context variable named mContext.
I used it to start an activity and It worked..

Thanks for the help.

On Mar 9, 6:30 am, Justin Anderson <janderson....@gmail.com> wrote:
> If WindowManagerService inherits from Service then you shouldn't need to use
> getContext().  You should be able to just use the this pointer (either
> implicitly or explicitly).
>
> Unfortunately, I have no experience modifying the Android source and don't
> have access to that class via the SDK so I can't help out much.
> ----------------------------------------------------------------------
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> ----------------------------------------------------------------------
>
> On Mon, Mar 1, 2010 at 8:59 AM, Revathi K J Ramanan <
>
> revathiramana...@gmail.com> wrote:
> > HI Justin,
>
> > I am modifying the android source code.
>
> > The error i am encountering is
>
> > cannot find symbol.
> > startActivity(Intent)..
>
> > Should i use getContext().startActivity(Intent)???
> > I am trying this in dispatchKey() function in windowManagerService .
>
> > Thanks in advance
>
> > On Mon, Mar 1, 2010 at 7:32 PM, Justin Anderson 
> > <janderson....@gmail.com>wrote:
>
> >> What error are you getting?  What is the code you are using to launch the
> >> activity?  Is this for an SDK app or are you modifying and building the
> >> Android source?
>
> >> On Feb 28, 2010 9:35 PM, "Gladys" <revathiramana...@gmail.com> wrote:
>
> >> Hi,
>
> >> Does the startActivity() works when used inside windowManagerService
> >> function?
>
> >> I am trying to identify a keyPress Event and if it haooens i want to
> >> start an activity before allowing the code to go to ViewRoot part and
> >> the application's onKeyDown function.
>
> >> I am trying to use startActivity() from dispatchKey() in
> >> WindowManagerService.
> >> But it is ahowing me an error.
>
> >> Can some one help me out
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Beginners" g...
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Beginners" group.
>
> >> NEW! Try asking and tagging your question on Stack Overflow at
> >>http://stackoverflow.com/questions/tagged/android
>
> >> To unsubscribe from this group, send email to
> >> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-beginners?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to