S sweddle Member Licensed User Longtime User Dec 9, 2014 #1 Hello, I am about to write a app that will run as a service and I will need to it to open Chrome to a URL... Can a Service do that??? (My thoughts are this may be seen by Android as some sort of virus and they don't allow that but I don't know.. thus I ask) Thanks for any help on this /Shane
Hello, I am about to write a app that will run as a service and I will need to it to open Chrome to a URL... Can a Service do that??? (My thoughts are this may be seen by Android as some sort of virus and they don't allow that but I don't know.. thus I ask) Thanks for any help on this /Shane
NJDude Expert Licensed User Longtime User Dec 9, 2014 #2 You can do it using an intent, like this: B4X: Private Browser As Intent Browser.Initialize(Browser.ACTION_VIEW, "https://www.b4x.com") Browser.SetComponent("com.android.chrome/com.google.android.apps.chrome.Main") StartActivity(Browser) Of course, you will have to verify Chrome is installed on the device. Upvote 0
You can do it using an intent, like this: B4X: Private Browser As Intent Browser.Initialize(Browser.ACTION_VIEW, "https://www.b4x.com") Browser.SetComponent("com.android.chrome/com.google.android.apps.chrome.Main") StartActivity(Browser) Of course, you will have to verify Chrome is installed on the device.