tchegito / zildo

The Land of Alembrume
GNU Lesser General Public License v3.0
4 stars 1 forks source link

[2.43] ActivityNotFoundException #131

Closed tchegito closed 6 years ago

tchegito commented 6 years ago

A failure happened inside CrashReporter:

special=We have an additional failure here !null android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=http://www.alembrume.fr flg=0x10000000 } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1663) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1431) at android.app.ContextImpl.startActivity(ContextImpl.java:1274) at android.app.ContextImpl.startActivity(ContextImpl.java:1256) at android.content.ContextWrapper.startActivity(ContextWrapper.java:330) at com.alembrum.AndroidFileUtil.openLink(AndroidFileUtil.java:123) at zildo.client.PlatformDependentPlugin.openLink(PlatformDependentPlugin.java:147) at zildo.client.gui.menu.StartMenu$2.run(StartMenu.java:76) at zildo.client.Client.mainLoop(Client.java:242) at com.alembrum.OpenGLRenderer.onDrawFrame(OpenGLRenderer.java:107) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)

It seems to be a lack of exeception catch in onCreate() method in Activity: https://stackoverflow.com/questions/3533370/android-activity-not-found-exception

tchegito commented 6 years ago

Fixed in 2.44 (just a try/catch block added to understand where it crashes in onCreate() method)

e5df84cb29b007def11994f4480625276613d05c

tchegito commented 6 years ago

This happens where there is no browser available to handle the intent.

We need to check if one is available and display message in this case to avoid a crash.

tchegito commented 6 years ago

Fixed in 2.46

Now we display a message when no browser has been found.

96d6c64b2749bcb75bfa9742fdc550d9fe6b8005