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):
-MyActivity0
-MyActivity1
-MyService0

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/
app_name">
        <activity android:name=".MyActivity0">
                <intent-filter>
                        <action android:name="android.intent.action.MAIN" />
                        <category 
android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
        </activity>
        <activity android:name=".MyActivity1" />
        <service android:name=".MyService0" android:enabled="true" />
</application>

-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,
Glenn

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to