Service module not found

DemoFreak

Member
Licensed User
Longtime User
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? :confused:
 
Last edited:
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.

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
hb1.gif


Thanks! :D
 
Upvote 0
Back
Top