I've never tried option #2 (it should work only in theory, but involves a bunch of hackery using reflection, since most of what you need is not exposed as public).
#GETINTENT().GETDATA() HOW TO#
AFAIK, there's no way to represent a null response from a method using Unity's AndroidJavaObject or AndroidJavaClass - in case a null is returned, the code will throw an exception (you cannot initialize a AndroidJavaObject class with a null reference). getData () The following examples show how to use getData (). For the above dependency you will need the following maven repo, add it to your project level adle. It only crashes when I try to open a file from the SD card, not from the system.
#GETINTENT().GETDATA() ANDROID#
It works below Android Nougat, but on Android Nougat it crashes. To enable this support, add the following dependency and ensure that proguard rules are set accordingly: implementation ':ads-identifier:3.4.28.305. The app is crashing when I’m trying to open a file. SOLVED: I forwent declaring getting the Intent explicitly and just created Uri object and used getIntent() method to get data directly like: Uri blogUri getIntent().getData() Posting to the forum is only allowed for members with active accounts. Click to expand.This means that this method can return null. Branch SDK supports Huawei devices without Google Mobile Services.