Code Monkey home page Code Monkey logo

Comments (7)

dji-dev avatar dji-dev commented on June 30, 2024

Agent comment from yating.liao in Zendesk ticket #104656:

I can successfully initialize by running blank directly. If this is caused by a logic error in the code, it should occur on multiple devices.
Have you tried delaying for a longer period of time?

°°°

from mobile-sdk-android-v5.

Mulham6 avatar Mulham6 commented on June 30, 2024

Using Handler().postDelayed I tried a whole two minutes delay and still got the same error.

from mobile-sdk-android-v5.

dji-dev avatar dji-dev commented on June 30, 2024

Agent comment from yating.liao in Zendesk ticket #104656:

Could you please run the sample code of MSDK on the device where this crash occurs? Will the sample code also experience the same crash?
https://github.com/dji-sdk/Mobile-SDK-Android-V5

The crash you are currently experiencing indicates that the program cannot find SDKManager. If the sample code also encounters the same crash, there may be compatibility issues with the SDK.

°°°

from mobile-sdk-android-v5.

danekpilar01 avatar danekpilar01 commented on June 30, 2024

Had the same issue, tried to call the SDKManager.getInstance.init() method in the ActivityClass (in onCreate method), not in the Application class, as they told us to do so in the tutorial, and it worked. Try it and see if it helps. Also try to run the method on the main thread (using getMainLooper for example).

from mobile-sdk-android-v5.

dji-dev avatar dji-dev commented on June 30, 2024

Agent comment from yating.liao in Zendesk ticket #104656:

The purpose of switching the main thread and moving interface calls to the Activity should be to place the interface calls after the decryption of the SDK. The role of com.secneo.sdk.Helper.install is to trigger the decryption of the SDK, and before the decryption is completed, the SDK interfaces cannot be used properly.

°°°

from mobile-sdk-android-v5.

Mulham6 avatar Mulham6 commented on June 30, 2024

I called SDKManager.getInstance.init() in the onCreate method of MainActivity class and it worked! Even without forcing a delay or execution on main thread.
Thanks a lot for the help!

from mobile-sdk-android-v5.

dji-dev avatar dji-dev commented on June 30, 2024

Agent comment from yating.liao in Zendesk ticket #104656:

I'm glad to hear that your issue has been resolved.

°°°

from mobile-sdk-android-v5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.