I'm trying get the custom intent from the java part of my software. In java part, I have an broadcastreciever, it make an intent and send it as broadcast:
Intent i = new Intent();
i.setAction(CUSTOM_INTENT);
context.sendBroadcast(i);
In delphi app(I use Delphi RIO 10.3.3) in manifest file i have:
<intent-filter>
<action android:name="com.cynicrus.custom.intent.action.TEST"></action>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
On create application form i have:
MainActivity.registerIntentAction(StringToJString(TEST_INTENT));
TMessageManager.DefaultManager.SubscribeToMessage(TMessageReceivedNotification, HandleActivityMessage);
TEST_INTENT in Delphi = Custom_Intent in java and = com.cynicrus.custom.intent.action.TEST. But, whatever I try, the handler HandleActivityMessage isn't call. How I can send the custom intent action from the java to delphi and get it in delphi? Thank you!