Click here to Skip to main content
Rate this: bad
good
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):
-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=".MyActivity">
                <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,
Posted 4-Oct-10 0:21am
Edited 4-Oct-10 8:51am
(no name)499K
v3

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

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 PIEBALDconsult 110
4 Sergey Alexandrovich Kryukov 104
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 4 Oct 2010
Copyright © CodeProject, 1999-2014
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