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. [Solved]How could I include new jar file on android?
QtWS25 Last Chance

[Solved]How could I include new jar file on android?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 3.7k Views
  • 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.
  • S Offline
    S Offline
    stereomatching
    wrote on last edited by
    #1

    I am trying to embed the ads of AppBucks into the android app but have no idea how to do it

    According to the website, I should place the MobileSDK.jar into the android-build/lib
    But the compiler would complaint that "package com.appbucks.sdk does not exist"
    when I include the package

    appBucksAdv.java

    @
    package adv;

    import com.appbucks.sdk.AppBucksAPI;

    import org.qtproject.qt5.android.bindings.QtApplication;
    import org.qtproject.qt5.android.bindings.QtActivity;

    import android.os.Bundle;

    public class appBucksAdv extends QtActivity
    {
    private static appBucksAdv m_instance;

    public appBucksAdv()
    {
        m_instance = this;
    }
    
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
      super.onCreate(savedInstanceState);
    
      AppBucksAPI.initialize(this, "chartUnitConverter",
      1, "4444", false, null, null);
    }
    

    }
    @

    "source codes":https://github.com/stereomatchingkiss/blogCodes2/tree/master/androidTest

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stereomatching
      wrote on last edited by
      #2

      Find out the answer, I should put at the inside of the android folder.
      Create a libs library and drop the MobileSDK.jar into it but not the folder after builded.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        It would be great if it so easy. But how do you include it and use the functions from .jar?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mellester
          wrote on last edited by
          #4

          I have been looking for ways to use third party library but to no avail.
          Anybody now links that explain how to use the methods of a third party jar file

          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