Hi All so I've got a problem. In an app I have:
StartActivity(pI.OpenBrowser(URL))
(pi = PhoneIntents, URL = string web page destination being passed in)
So digging around a little found some ways to use Intent instead of Phone Intents:
pI.Initialize(pI.ACTION_VIEW,URL)
StartActivity(pI)
So then I tried SetComponent as follows:
pI.Initialize(pI.ACTION_VIEW,URL)
pI.SetComponent("com.android.browser/.BrowserActivity")
StartActivity(pI)
I also looked around some more and tried:
pI.Initialize(pI.ACTION_VIEW,URL)
pI.SetComponent("com.google.android.browser/com.android.browser.BrowserActivity")
StartActivity(pI)
Any ideas?
StartActivity(pI.OpenBrowser(URL))
(pi = PhoneIntents, URL = string web page destination being passed in)
- and that worked fine in the emulator and on an old HTC phone.
- However on a new Samsung Note 2 I got ActivityNotFound Exception
So digging around a little found some ways to use Intent instead of Phone Intents:
pI.Initialize(pI.ACTION_VIEW,URL)
StartActivity(pI)
- This got rid of the error but the Phone did not know what to use to carry out the ACTION_VIEW and didn't even list browser as an option
So then I tried SetComponent as follows:
pI.Initialize(pI.ACTION_VIEW,URL)
pI.SetComponent("com.android.browser/.BrowserActivity")
StartActivity(pI)
- Same result as above, no page navigation
I also looked around some more and tried:
pI.Initialize(pI.ACTION_VIEW,URL)
pI.SetComponent("com.google.android.browser/com.android.browser.BrowserActivity")
StartActivity(pI)
- But again I got ActivityNotFound Exception
Any ideas?