简体   繁体   中英

DJI SDK implement Helper.install() in android dynamic function

I want to implement DJI functions in a dynamic model(), but to do that it needs cal function Helper.install() in Application class while base model do not know anything about DJI SDK.

There are anyways to go around this?

In the current SDK I see no good solution; the install() accesses information only available in the Application class.

You need to have your own Application class so it can extend MultiDexApplication (yes, DJI's sample shows the code making a call MultiDex.install(this); but the more "Android" correct way is to have you application class extend MultiDexApplication).

So you need the Application class anyway.

I don't fully understand what you mean by a "base model" but my information above would apply no matter what (or how) you are implementing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM