Click here to Skip to main content
13,252,362 members (62,224 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 4-Oct-10 0:21am
Updated 4-Oct-10 8:51am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 4 Oct 2010
Copyright © CodeProject, 1999-2017
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