Once you add "@Override", only one will. -- Kostya Vasilyev 08.08.2011 22:18 пользователь "kypriakos" <demet...@ece.neu.edu> написал: > > One additional question - I see that both OnNewIntent and onNewIntent > compile > fine. Is there a difference between the two? > > On Aug 7, 6:38 am, Mark Murphy <mmur...@commonsware.com> wrote: >> On Sun, Aug 7, 2011 at 4:25 AM, kypriakos <demet...@ece.neu.edu> wrote: >> > I start an new intent on an activity: >> >> > Intent intent = new Intent(); >> >> > intent.seClass (..); >> >> > intent.setFlags(...NEW_TASK); >> > intent.addFlags(...SINGLE_TOP); >> >> > startActivity(intent). >> >> > In the target Activity I have the onNewIntent() that simply has code >> > for doing some processing. >> >> > I see the OnCreate get created but any subsequent executions of the >> > above block does not call the >> > OnNewIntent. Does the launcheMode="singleTask" need to be defined in >> > the manifest for this to work? >> >> No. >> >> Make sure you have the @Override annotation on onNewIntent() so you >> are implementing the right method signature. >> >> > Is there anything else that is necessary to get this to work? >> >> Not that I am aware of. >> >> -- >> Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy >> >> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0 >> Available! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en