You were correct, i tried to do it the way you suggested but ran into
a problem so tried the old way as a work around. It just caused more
issues though. i've re written it so the activity starts the service
and have got it all working.
Thanks,

The only issue i have is that when i have the second activity on the
screen (terms and conditions) and i kill it on the emulator via the
task list it restarts the first activity which restarts the second.
any ideas why? here is my log

07-14 22:43:20.885: INFO/ActivityManager(102): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.example.test/.bbClient }
07-14 22:43:21.465: INFO/ARMAssembler(102): generated
scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at
[0x3894f0:0x3895fc] in 2346763 ns
07-14 22:43:22.175: INFO/ActivityManager(102): Start proc
com.example.test for activity com.example.test/.bbClient: pid=447
uid=10028 gids={3003, 1015}
07-14 22:43:23.086: DEBUG/ddm-heap(447): Got feature list request
07-14 22:43:23.595: INFO/ARMAssembler(102): generated
scanline__00000177:03515104_00000001_00000000 [ 73 ipp] (95 ins) at
[0x333200:0x33337c] in 1673319 ns
07-14 22:43:24.315: INFO/ActivityManager(102): Starting activity:
Intent { cmp=com.example.test/.TsandCs }
07-14 22:43:26.535: INFO/ActivityManager(102): Displayed activity
com.example.test/.TsandCs: 1936 ms (total 5325 ms)
07-14 22:43:26.916: INFO/ARMAssembler(102): generated
scanline__00000077:03545404_00000A04_00000000 [ 29 ipp] (51 ins) at
[0x3335c0:0x33368c] in 5497347 ns
07-14 22:43:31.506: DEBUG/dalvikvm(447): Calling exit(1)
07-14 22:43:31.635: DEBUG/Zygote(30): Process 447 exited cleanly (1)
07-14 22:43:31.685: INFO/ActivityManager(102): Process
com.example.test (pid 447) has died.
07-14 22:43:31.697: INFO/WindowManager(102): WIN DEATH:
Window{43c3d248 com.example.test/com.example.test.TsandCs
paused=false}
07-14 22:43:31.785: INFO/WindowManager(102): WIN DEATH:
Window{43c15e10 com.example.test/com.example.test.bbClient
paused=false}
07-14 22:43:32.075: INFO/ActivityManager(102): Start proc
com.example.test for activity com.example.test/.bbClient: pid=455
uid=10028 gids={3003, 1015}
07-14 22:43:32.805: DEBUG/ddm-heap(455): Got feature list request
07-14 22:43:33.265: INFO/UsageStats(102): Unexpected resume of
com.example.test while already resumed in com.example.test
07-14 22:43:33.875: INFO/ActivityManager(102): Starting activity:
Intent { cmp=com.example.test/.TsandCs }
07-14 22:43:35.025: WARN/InputManagerService(102): Got RemoteException
sending setActive(false) notification to pid 447 uid 10028
07-14 22:43:35.625: INFO/ActivityManager(102): Displayed activity
com.example.test/.TsandCs: 1388 ms (total 3802 ms)

and thanks again i really appreciate all the help.

On Jul 14, 7:47 pm, Mark Murphy <[email protected]> wrote:
> On Wed, Jul 14, 2010 at 1:40 PM, Boozel <[email protected]> wrote:
> > finish() doesnt stop the service or any other activities that are
> > running, any way to stop all things in this package?
>
> I told you not to build your app this way. You did not listen. I will
> say it again: your concept of having a service that opens a terms of
> service activity is a mistake. Do not build your app this way.
>
> You can call stopService() to stop your service. Redesign your
> application such that there are no other activities open. Then,
> finish() on your terms-of-service activity will be all that is needed.
>
> > How do I "Fix my launch activity"?
>
> How should I know? Android does not magically cause "the launch
> activity automatically starts aggin" if it was already destroyed
> (finish(), BACK button, etc.). Something is calling startActivity() to
> start it up again. LogCat may give you some clues.
>
> --
> 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 1.9
> Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to