jBroadcastReceiver lazarus / 43-Android ---------------------------------------------------------------------- schumi · 2024-04-08 20:37 Hi, I need to replicate this java code for broadcast receiver Code: Java  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i                filter = new IntentFilter();                filter.addAction(ACTION_BROADCAST_RECEIVER);                filter.addCategory(CATEGORY_BROADCAST_RECEIVER);                registerReceiver(receiver, filter);  I try to modify jBroadcastReceiver.java but don't work (I don't know java) Code: Java  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i public void RegisterIntentActionFilter(String _intentAction, String _intentCategory) {            //intentFilter.addDataScheme("http");                               //intentFilter.addDataScheme("ftp");          //intentFilter.addAction(BluetoothDevice.ACTION_FOUND);                filter = new IntentFilter();           filter.addAction(_intentAction);           if (_intentCategory != null) {                        filter.addCategory(_intentCategory);     }                           controls.activity.registerReceiver(this, filter);           //Log.i("receiver","Register ....");   } ---------------------------------------------------------------------- schumi · 2024-04-12 08:15 Hi, I have find solutions add to broadcastreceiver.pas Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure RegisterIntentActionFilter(_intentActionFilter: string; _intentCategory: string); overload; add to jBroadcastReceiver.java Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i private IntentFilter filter = null; public void RegisterIntentActionFilter(String _intentAction, String _intentCategory) {           filter = new IntentFilter(_intentAction);           filter.addCategory(_intentCategory);                                  controls.activity.registerReceiver(this, filter);           //Log.i("receiver","Register ....");   } ---------------------------------------------------------------------- Guser979 · 2024-04-12 09:25 Congratulations. You said you don't know Java. But LAWM ends up making us know a little after so much research. I think that despite the time we spent on this and all the work to test each change, it is worth keeping LAMW alive. ---------------------------------------------------------------------- schumi · 2024-04-12 16:42 thanks to copy and paste ---------------------------------------------------------------------- Guser979 · 2024-04-12 20:03 Quote from: schumi on April 12, 2024, 06:42:28 pmthanks to copy and paste Copying and pasting is laborious too. That's part of the job. haha ha