D DemoFreak Member Licensed User Longtime User Jan 17, 2012 #1 Hi, when I tried to start a service module, I've got an "ActivityNotFoundException", even though this activity exists definitely. I inserted a service module named "TCPConnection", filled in some variables and code and then tried to start it in Main like this: Code: Copy Sub Activity_Create(FirstTime As Boolean) ' ...some other code StartActivity(TCPConnection) ' the IDE colored the activity name in purple and auto-capitalized the first four chars, so I think the activity name should be right End Sub and got: Code: Copy android.content.ActivityNotFoundException: Unable to find explicit activity class {de.xyz.test/de.xyz.test.tcpconnection}; have you declared this activity in your AndroidManifest.xml? Where I'm wrong here? Last edited: Jan 17, 2012
Hi, when I tried to start a service module, I've got an "ActivityNotFoundException", even though this activity exists definitely. I inserted a service module named "TCPConnection", filled in some variables and code and then tried to start it in Main like this: Code: Copy Sub Activity_Create(FirstTime As Boolean) ' ...some other code StartActivity(TCPConnection) ' the IDE colored the activity name in purple and auto-capitalized the first four chars, so I think the activity name should be right End Sub and got: Code: Copy android.content.ActivityNotFoundException: Unable to find explicit activity class {de.xyz.test/de.xyz.test.tcpconnection}; have you declared this activity in your AndroidManifest.xml? Where I'm wrong here?
NJDude Expert Licensed User Longtime User Jan 17, 2012 #2 Check if the AndroidManifest.xml file is read-only, adding modules in the designer will work, but if your manifest is read only it won't add the newly created activities to the XML. Upvote 0
Check if the AndroidManifest.xml file is read-only, adding modules in the designer will work, but if your manifest is read only it won't add the newly created activities to the XML.
D DemoFreak Member Licensed User Longtime User Jan 17, 2012 #3 NJDude said: Check if the AndroidManifest.xml file is read-only, adding modules in the designer will work, but if your manifest is read only it won't add the newly created activities to the XML. Click to expand... The AndroidManifest.xml is not readonly, and contains the following lines at its end HTML: Copy <service android:name=".tcpconnection"> </service> <receiver android:name=".tcpconnection$tcpconnection_BR"> </receiver> </application> </manifest> Upvote 0
NJDude said: Check if the AndroidManifest.xml file is read-only, adding modules in the designer will work, but if your manifest is read only it won't add the newly created activities to the XML. Click to expand... The AndroidManifest.xml is not readonly, and contains the following lines at its end HTML: Copy <service android:name=".tcpconnection"> </service> <receiver android:name=".tcpconnection$tcpconnection_BR"> </receiver> </application> </manifest>
agraham Expert Licensed User Longtime User Jan 17, 2012 #4 A Service is not an Activity so StartActivity will not work. Use StartService. Upvote 0