Results 1 to 1 of 1

Thread: How could I include new jar file on android?

  1. #1
    Join Date
    Jan 2011
    Posts
    127
    Thanks
    42
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How could I include new jar file on android?

    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

    Qt Code:
    1. package adv;
    2.  
    3. import com.appbucks.sdk.AppBucksAPI;
    4.  
    5. import org.qtproject.qt5.android.bindings.QtApplication;
    6. import org.qtproject.qt5.android.bindings.QtActivity;
    7.  
    8. import android.os.Bundle;
    9.  
    10. public class appBucksAdv extends QtActivity
    11. {
    12. private static appBucksAdv m_instance;
    13.  
    14. public appBucksAdv()
    15. {
    16. m_instance = this;
    17. }
    18.  
    19. @Override
    20. public void onCreate(Bundle savedInstanceState)
    21. {
    22. super.onCreate(savedInstanceState);
    23.  
    24. AppBucksAPI.initialize(this, "chartUnitConverter",
    25. 1, "4444", false, null, null);
    26. }
    27. }
    To copy to clipboard, switch view to plain text mode 

    source codes :
    https://github.com/stereomatchingkis...er/androidTest


    Added after 6 minutes:


    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.
    Last edited by stereoMatching; 31st December 2013 at 19:42.

Similar Threads

  1. Replies: 3
    Last Post: 9th November 2013, 17:03
  2. Replies: 1
    Last Post: 23rd May 2011, 05:53
  3. Replies: 3
    Last Post: 1st November 2010, 17:33
  4. Replies: 4
    Last Post: 9th May 2010, 17:18
  5. Replies: 2
    Last Post: 9th March 2010, 06:21

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.