Hi,
I need to launch an app thats a service, in "monitor" mode when my app starts. I can launch it, but it starts in debug no matter what I try.
here is the android code of what I need to replicate, but am having trouble with, in B4A:
This is the output from Log(pm.GetApplicationIntent("com.five_ten_sg.connectbot.monitor.MonitorService")):
(Intent) Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.five_ten_sg.connectbot.monitor cmp=com.five_ten_sg.connectbot.monitor/.MonitorActivity }
Thanks!
I need to launch an app thats a service, in "monitor" mode when my app starts. I can launch it, but it starts in debug no matter what I try.
here is the android code of what I need to replicate, but am having trouble with, in B4A:
Sample Code:
Intent intent = new Intent("com.five_ten_sg.connectbot.monitor.MonitorService");
intent.setPackage("com.five_ten_sg.connectbot.monitor");
parent.bindService(intent, monitor_connection, Context.BIND_AUTO_CREATE);
This is the output from Log(pm.GetApplicationIntent("com.five_ten_sg.connectbot.monitor.MonitorService")):
(Intent) Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.five_ten_sg.connectbot.monitor cmp=com.five_ten_sg.connectbot.monitor/.MonitorActivity }
Thanks!