Click here to Skip to main content
11,709,537 members (49,872 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Android
Hi Everyone,

I have a background service that sleeps for a minute then starts an
activity that I've created. The problem is everytime the service calls the activity, an FC error displays.

My project so far is very simple, these are the components (3):
How it works:
a. MyActivity0 has a button that starts MyService0.
b. MyService0 then runs and should start MyActivity1 (but this is
where I get an FC).

This is the calling code the crashes:
startActivity(new Intent(MyService0.this, MyActivity1.class));
This is the AndroidManifest.xml:
<application android:icon="@drawable/icon" android:label="string/
        <activity android:name=".MyActivity">
                        <action android:name="android.intent.action.MAIN">
                        <category android:name="android.intent.category.LAUNCHER">
       <activity android:name=".MyActivity1">
        <service android:name="MyService0"; android:enabled="true">
-I'm using Eclipse with the latest Android SDK targetting 2.2.
-I'm seeing it crash both on the emulator and on the NexusOne.
-I've tried searching the group, and haven't found a similar problem.

Any help would be much appreciated for this beginner.

Thanks in advance.
Best Regards,
Posted 3-Oct-10 23:21pm
Edited 4-Oct-10 7:51am
(no name)502.4K

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 525
1 OriginalGriff 250
2 Peter Leow 219
3 Maciej Los 185
4 Mika Wendelius 160
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,037
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 4 Oct 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100