Hi,
I’m trying to make a broadcast receiver to get data from my other application. The broadcast receiver was done in Java and works fine, when working just on Java. I made some dummy functions in it, to test that Unity can access the class and it can. Basically, whenever my sender sends the first message, the receiver crashes. My guess is that the problem is within the manifest, since I don’t know Unity and Android too well. Here is the code snippet for the receiver manifest:
<receiver android:name="com.example.testing" >
<intent-filter>
<action android:name="com.example.testing" ></action>
</intent-filter>
</receiver>
When I run it on my Android device, it gives me java.lang.RuntimeException: Unable to instantiate receiver “com.example.testing” on path DexPathList [[zip file “/data/apps/com.example.testing-2.apk”], nativeLibraryDirectories…
From what I understand the receiver android:name attribute is incorrect because when I change it, the error changes for the class I’m looking for. My class for the receiver in java is called MyReceiver, but that doesn’t work either. Thank you for your help.