File tree Expand file tree Collapse file tree
core/template/android/activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,6 +262,8 @@ void initCredentials()
262262 @ Override
263263 protected void onCreate (Bundle arg0 ) {
264264
265+ m_instance = this ;
266+
265267 init (this );
266268 FMOD .init (this );
267269 initCredentials ();
@@ -363,8 +365,10 @@ public static void showKeyboard(boolean show)
363365
364366 public static void openURL (String url )
365367 {
366- Intent web_intent = new Intent (Intent .ACTION_VIEW , android .net .Uri .parse (url ));
367- m_instance .startActivity (web_intent );
368+ m_instance .runOnUiThread (() -> {
369+ Intent webIntent = new Intent (Intent .ACTION_VIEW , android .net .Uri .parse (url ));
370+ m_instance .startActivity (webIntent );
371+ });
368372 }
369373
370374 public static void createDirectory (String strdir )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ solution ("pmtech_examples_" .. platform)
3333 }
3434 androiddependencies {
3535 " androidx.appcompat:appcompat:1.7.0" ,
36- " com.google.android.material:material:1.12.0"
36+ " com.google.android.material:material:1.12.0" ,
3737 " androidx.security:security-crypto:1.1.0-alpha06"
3838 }
3939 gradleproperties {
You can’t perform that action at this time.
0 commit comments