var canOpenURL = Ti.Platform.openURL(‘test://company/30');
if (!canOpenURL) {
}
[ERROR] : PlatformModule: (main) [83824,99750] Activity not found: test://company/30
[ERROR] : PlatformModule: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=test://company/30 }
[ERROR] : PlatformModule: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1936)
[ERROR] : PlatformModule: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1615)
[ERROR] : PlatformModule: at android.app.Activity.startActivityForResult(Activity.java:4472)
[ERROR] : PlatformModule: at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
[ERROR] : PlatformModule: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
[ERROR] : PlatformModule: at android.app.Activity.startActivityForResult(Activity.java:4430)
[ERROR] : PlatformModule: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:751)
[ERROR] : PlatformModule: at android.app.Activity.startActivity(Activity.java:4791)
[ERROR] : PlatformModule: at android.app.Activity.startActivity(Activity.java:4759)
[ERROR] : PlatformModule: at ti.modules.titanium.platform.PlatformModule.openURL(PlatformModule.java:214)
[ERROR] : PlatformModule: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
[ERROR] : PlatformModule: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)
[ERROR] : PlatformModule: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:969)
[ERROR] : PlatformModule: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1194)
[ERROR] : PlatformModule: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:394)
[ERROR] : PlatformModule: at ti.modules.titanium.ui.TableViewRowProxy.handleMessage(TableViewRowProxy.java:215)
[ERROR] : PlatformModule: at android.os.Handler.dispatchMessage(Handler.java:101)
[ERROR] : PlatformModule: at android.os.Looper.loop(Looper.java:164)
[ERROR] : PlatformModule: at android.app.ActivityThread.main(ActivityThread.java:6541)
[ERROR] : PlatformModule: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : PlatformModule: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
[ERROR] : PlatformModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
[ERROR] : PlatformModule: (main) [1,99751] Activity not found: test://company/30
[ERROR] : PlatformModule: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=test://company/30 }
[ERROR] : PlatformModule: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1936)
[ERROR] : PlatformModule: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1615)
[ERROR] : PlatformModule: at android.app.Activity.startActivityForResult(Activity.java:4472)
[ERROR] : PlatformModule: at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
[ERROR] : PlatformModule: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
[ERROR] : PlatformModule: at android.app.Activity.startActivityForResult(Activity.java:4430)
[ERROR] : PlatformModule: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:751)
[ERROR] : PlatformModule: at android.app.Activity.startActivity(Activity.java:4791)
[ERROR] : PlatformModule: at android.app.Activity.startActivity(Activity.java:4759)
[ERROR] : PlatformModule: at ti.modules.titanium.platform.PlatformModule.openURL(PlatformModule.java:214)
[ERROR] : PlatformModule: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
[ERROR] : PlatformModule: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)
[ERROR] : PlatformModule: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:969)
[ERROR] : PlatformModule: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1194)
[ERROR] : PlatformModule: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:394)
[ERROR] : PlatformModule: at ti.modules.titanium.ui.TableViewRowProxy.handleMessage(TableViewRowProxy.java:215)
[ERROR] : PlatformModule: at android.os.Handler.dispatchMessage(Handler.java:101)
[ERROR] : PlatformModule: at android.os.Looper.loop(Looper.java:164)
[ERROR] : PlatformModule: at android.app.ActivityThread.main(ActivityThread.java:6541)
[ERROR] : PlatformModule: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : PlatformModule: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
[ERROR] : PlatformModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
[ERROR] : EGL_emulation: tid 4652: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
Hello, Can you explain a bit, what you feel the issue here? Also, we need the test platform details. Thanks.
Hello [~andreas.pingas], Just passing as followup here. Are you able to get that sorted out? Please let us know if you need help with this issue.
I have two apps the one app has a button that redirects you and opens the other app. I am using the method below however when the second app is not installed the following error appears. The issue above appears on Android devices. On iOS there is the Ti.Platform.canOpenURL as a result you dont need the above.
[~andreas.pingas], Thanks for your feedback. It would be helpful if you can share a simple test case to reproduce your issues on our end and your environment details.