Re: [android-developers] Re: Comms with Intent

2011-08-07 Thread Kostya Vasilyev
May I also suggest using "@Override". It doesn't change what the code means, but tells the compiler that you are overriding a method. The compiler then checks that this is actually the case. -- Kostya 07.08.2011 11:28, Nikolay Elenkov пишет: On Sun, Aug 7, 2011 at 4:20 PM, kypriakos wrote:

Re: [android-developers] Re: Comms with Intent

2011-08-07 Thread Nikolay Elenkov
On Sun, Aug 7, 2011 at 4:20 PM, kypriakos wrote: > And in fact the onNewIntent (which still compiles if it is > OnNewIntent!) > is never called .. so something is not being set right. > Obviously. It will compile as OnNeWiNtEnT or anything you write. You need to override the proper Activity metho

[android-developers] Re: Comms with Intent

2011-08-07 Thread kypriakos
And in fact the onNewIntent (which still compiles if it is OnNewIntent!) is never called .. so something is not being set right. On Aug 7, 1:39 am, kypriakos wrote: > Actually never mind that - I should have been using addFlags the > second time and > not setFlags on both flags. Still the issue s

[android-developers] Re: Comms with Intent

2011-08-06 Thread kypriakos
Actually never mind that - I should have been using addFlags the second time and not setFlags on both flags. Still the issue seems to be that the preview freezes after the first pic is snapped and every additional call to the service takes pictures the same size as before regardless of where the

[android-developers] Re: Comms with Intent

2011-08-06 Thread kypriakos
Well - the issue I am running into now is this: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? I start the activity with the NEW_TASK flag and it works fine. If I use the SINGLE_TOP then the exception above occur

[android-developers] Re: Comms with Intent

2011-08-02 Thread kypriakos
Sure will man thanks. But that was the idea so you were right on! On Aug 2, 10:35 am, Nikolay Elenkov wrote: > On Tue, Aug 2, 2011 at 11:29 PM, kypriakos wrote: > > > Actually one more question - since I want the Activity to keep alive > > with the camera preview on, would the subsequent Intent

Re: [android-developers] Re: Comms with Intent

2011-08-02 Thread Nikolay Elenkov
On Tue, Aug 2, 2011 at 11:29 PM, kypriakos wrote: > > Actually one more question - since I want the Activity to keep alive > with the camera preview on, would the subsequent Intent launching > (and calls to OnNewIntent) allow me to control the open preview. I > think > yes since the Activity (unle

[android-developers] Re: Comms with Intent

2011-08-02 Thread kypriakos
Actually one more question - since I want the Activity to keep alive with the camera preview on, would the subsequent Intent launching (and calls to OnNewIntent) allow me to control the open preview. I think yes since the Activity (unless I call finish()) should still be active right? On Aug 1, 9

[android-developers] Re: Comms with Intent

2011-08-02 Thread kypriakos
Well that's what I was actually aiming at and I think we agree - OnNewIntent is afterall a method in the Activity called by the underlying framework on each launching - makes sense! Thanks NE On Aug 1, 9:56 pm, Nikolay Elenkov wrote: > On Tue, Aug 2, 2011 at 4:18 AM, kypriakos wrote: > > >> You

Re: [android-developers] Re: Comms with Intent

2011-08-01 Thread Nikolay Elenkov
On Tue, Aug 2, 2011 at 4:18 AM, kypriakos wrote: > >> You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP >> flag. Then when you call startActivity() again, a new instance >> won't be created, the intent will be delivered to onNewIntent(). > > So if I still have a handle to the intent

[android-developers] Re: Comms with Intent

2011-08-01 Thread kypriakos
> You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP > flag. Then when you call startActivity() again, a new instance > won't be created, the intent will be delivered to onNewIntent(). So if I still have a handle to the intent when I relaunch it as you describe above, would I still

[android-developers] Re: Comms with Intent

2011-07-31 Thread kypriakos
Thanks for the response Nikolay --- > Assuming the servlet runs in a separate thread, no. Not directly > at least. That's what I was afraid of ... > You could launch the activity using the FLAG_ACTIVITY_SINGLE_TOP > flag. Then when you call startActivity() again, a new instance > won't be creat