Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7160 Reply

    just_deko

    Hello, If I try to open the document and there is no internet connection, I get the usual error “HTTP ERROR -1 null”. I couldn’t find the string for this error anywhere in my whole project, do you know a way to change the text of this error message?

    #7169 Reply

    Dr. Plug
    Moderator

    Hello Just_deko,

    I’m so sorry but there is no way to change the text.
    But you can chose whether see a “HTTP ERROR -1 null” message or not.
    use PlugPDF.setUpdateCheckEnabled function at onCreate method in PlugPDFLauncherApplication.java like this.
    PlugPDF.setUpdateCheckEnabled(NO);
    Then you don’t see a “HTTP ERROR -1 null” message

    Best Regards
    Dr.Plug

    • This reply was modified 1 year, 7 months ago by  Dr. Plug.
    #7184 Reply

    just_deko

    Could I somehow deactivate the message (as you said) and then create my own, if the loading of the document fails?

    #7187 Reply

    Dr. Plug
    Moderator

    Hello Just_deko,

    I’m so sorry but there is no way to create your own message.
    Because that’s our core part. But if you use below code you don’t have to worry about coming out message.
    PlugPDF.setUpdateCheckEnabled(NO);
    Because if you use that code, PlugPDF doesn’t try to connect to network.

    Best Regards
    Dr.Plug

    #7303 Reply

    just_deko

    I know this is a bit late, but:
    What am I doing wrong here:

    Somehow the error is still being displayed if I open the activity without an internet connection

    #7314 Reply

    Dr. Plug
    Moderator

    Hello just_deko,

    There were lots of people asking about UpdateCheck. (Because of speed.)
    So we decided to remove a setUpdateCheckEnabled function. (after 2.5.81 version)
    Now, you don’t have to worry about UpdateCheck.
    for example.

    Best Regards,
    Dr.Plug.

    • This reply was modified 1 year, 7 months ago by  Dr. Plug.
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Change Error message
Your information: