Android Radaee PDF bookmark - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Android Radaee PDF bookmark

Android Radaee PDF bookmark 1 year 9 months ago #11747

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 1
I integration Android Radaee PDF SDK.
I open iOS demo project. I can find bookmark function. But I cannot find bookmark function.
I have searched some reference in forum. I may be used BMDatabase. But I don't know how to use BMDatabase.
Please help me. Thanks

Please Log in or Create an account to join the conversation.

Last edit: by manwon.

Android Radaee PDF bookmark 1 year 9 months ago #11750

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
for Android, this article will help you : www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=75

Please Log in or Create an account to join the conversation.

Android Radaee PDF bookmark 1 year 9 months ago #11751

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 1
Thank you your replay. I just add BMDatabase to my code. I get the error.

Code:
public void getBookmark() {
        BMDatabase db = new BMDatabase();
        File db_file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
        boolean isOpen = db.OpenOrCreate( db_file.getAbsolutePath() + "/bookmark.db" );
        long recordset = db.RecOpen("/mnt/sdcard/test.pdf");
        int count = db.RecGetCount( recordset );
        int cur = 0;
        listBMName = new ArrayList<String>();
        listBMPage = new ArrayList<Integer>();
        while( cur < count )
        {
            String bm_name = db.RecItemGetName( recordset, cur );
            int bm_pageno = db.RecItemGetPage( recordset , cur );
            cur++;
            listBMName.add(bm_name);
            listBMPage.add(bm_pageno);
            Log.e("Bookmark", "bm_name = " + bm_name + " bm_pageno = " + bm_pageno + " count = " + count);
        }
        db.RecClose( recordset  );
        db.Close();
    }

Process: com.radaee.reader, PID: 5708
java.lang.UnsatisfiedLinkError: Native method not found: com.radaee.pdf.BMDatabase.openAndCreate:(Ljava/lang/String;)J
at com.radaee.pdf.BMDatabase.openAndCreate(Native Method)
at com.radaee.pdf.BMDatabase.OpenOrCreate(BMDatabase.java:27)
at com.radaee.reader.MainActivity.getBookmark(MainActivity.java:359)
at com.radaee.reader.MainActivity.onClick(MainActivity.java:319)
at android.view.View.performClick(View.java:4569)
at android.view.View$PerformClick.run(View.java:18553)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5151)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
at dalvik.system.NativeStart.main(Native Method)

Please Log in or Create an account to join the conversation.

Last edit: by manwon.

Android Radaee PDF bookmark 1 year 9 months ago #11752

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
make sure to call
Global.Init( context );
before doing all the operations to activate the license and load the native libraries.

Please Log in or Create an account to join the conversation.

Last edit: by Davide.

Android Radaee PDF bookmark 1 year 9 months ago #11753

  • manwon
  • manwon's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 1
Thank you. This is the solution.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum