Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. StartActivity will crash on Android because the Asset path is wrong.

StartActivity will crash on Android because the Asset path is wrong.

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hailong
    wrote on last edited by
    #1

    when I use the following code to start a new activity to play a video, it will succeed on both my phone and emulator, but when I run it on my android tv, it will crash. @
    Intent intent = new Intent(QtNative.activity(), TvVideoView.class);
    intent.putExtra("mediaUrl", mediaUrl);
    QtNative.activity().startActivity(intent);
    @

    it reports that:
    @ Asset path vendor/framework/mitv-framework-res.apk is neither a directory nor file (type=1).@

    I use adb tool to check my tv box, and mitv-framework-res.apk is located at the root path, which should be "/vendor/framework/mitv-framework-res.apk",and Qt is looking for it in the local path, is this a bug in Qt?
    How to set the correct asset path for vendor framework?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved