Android System WebView crashes Android apps! "Tombstones are disabled on JB MR2+ user builds"
Date : March 29 2020, 07:55 AM
wish helps you It turns out it was not Chrome but Android System WebView that caused the app to crash. Several other users on Google Play Store have left responses such as Crashes apps without any error. EDIT: MONO_DEBUG=explicit-null-checks
|
Android Studio says "Cannot resolve method" but the project builds correctly
Date : March 29 2020, 07:55 AM
Any of those help Well, it turned out the project was using Lombok and those methods were auto-generated and Android Studio does not know how to how to handle them unless you install the Lombok plugin for Android Studio.
|
"Cardboard" doesn't show up as an option in Unity Android options after installing Google Cardboard Unity SDK
Tag : chash , By : Paul Schwarz
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Go to File > Build Settings. Select Android from the platform list.
|
android embedding unity: ways to initialize and call a SQLite java DB object from unity, which needs "Context"
Date : March 29 2020, 07:55 AM
I wish did fix the issue. I try to document relevant parts of my own solution, just in case that may help someone. Please if you see any problem in it, let me know (I'm only learning). I didn't know that I could pass (inject) "Context" to the constractor of a java class that need it, from Unity side. I found it on this forum, thaks to the forum! AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaObject context = activity.Call<AndroidJavaObject>("getApplicationContext");
AndroidJavaObject jo = new AndroidJavaObject("com.my.package.MyDbHelper", context);
string word = jo.Call<string>("returnData");
tx.text = word;
public class MySQLiteOpenHelper extends SQLiteOpenHelper {
// implement as documentation describes, link is provided bellow
}
// this is the class, addressed from Unity
public class MyDbHelper{
String str = null;
private SQLiteDatabase db;
MySQLiteOpenHelper mySQLiteOpenHelper;
public myDbHelper(Context context) {
mySQLiteOpenHelper = new mySQLiteOpenHelper(context);
db = mySQLiteOpenHelper.getWritableDatabase();
}
// this is the method that unity calls
public String returnData(){
return queryAndDisplayAll();
}
private String queryAndDisplayAll() {
// using Cursor and db perform query and get the result, say, in a str, and return it, that is like:
// Cursor cursor = db.query(DicSQLiteOpenHelper.TABLE_NAME,...
// str = ...result from Curson...
return (str == null ? "No result!" : str);
}
|
Firebase says "Domain not whitelisted" for a link that is whitelisted
Date : March 29 2020, 07:55 AM
To fix the issue you can do Go to Firebase Console Click Authentication Menu > Sign-in method tab Scroll Down to Authorized domains Click "Add domain" button, add your domain (website domain with parameter) and click "Add"
|