Skip to content

[Question] Support for Android #29

Open

Description

@vellrya

Hello, thank you for your fantastic work!

I searched carefully for any information in your git repository, but did not find an answer to the question, can tdlight be used on Android?
If not, maybe I can use wrapper with the official library?

I have not worked with native libraries before, thanks in advance for the clarification)

Activity

  1. cavallium commented on Mar 21, 2021

    @cavallium
    Member

    Unfortunately this wrapper is not made for Android because I don't know the limitations/peculiarities of the Android runtime.

    Also, it seems that tdlib itself is very difficult to build for Android, so I can't compile the natives for Android.

  2. vellrya commented on Mar 21, 2021

    @vellrya
    Author

    But its possible (example with not optimized tdlib): https://github.com/osmandapp/OsmAnd/tree/master/OsmAnd-telegram

  3. cavallium commented on Mar 21, 2021

    @cavallium
    Member

    It's possible but I don't have the time and the necessary skills to add Android support to tdlight-java.

    I'm leaving this issue open, if someone wants to make a pull request with this feature in the future I'll appreciate.

  4. cavallium commented on Mar 21, 2021

    @cavallium
    Member

    By the way, the optimized variant is mainly for bots, if you are making a GUI client you should use the non-optimized variant.

  5. vellrya commented on Mar 21, 2021

    @vellrya
    Author

    I think I cannot create something better then official client :)

    I need to use only small part of telegram client api such as file/media download as part of my app (I don't even need messages), thats why I think optimized library should be good for this purpose.

  6. ErrorxCode commented on Dec 16, 2021

    @ErrorxCode

    It's possible but I don't have the time and the necessary skills to add Android support to tdlight-java.

    I'm leaving this issue open, if someone wants to make a pull request with this feature in the future I'll appreciate.

    I can help you. I am an android developer and had great experience in building android libraries. But, I need a reference guide for using this lib.

  7. cavallium commented on Dec 17, 2021

    @cavallium
    Member

    I can help you. I am an android developer and had great experience in building android libraries. But, I need a reference guide for using this lib.

    https://github.com/tdlight-team/tdlight-java/tree/master/example

  8. passerbyo commented on Jun 30, 2022

    @passerbyo

    It's possible but I don't have the time and the necessary skills to add Android support to tdlight-java.
    I'm leaving this issue open, if someone wants to make a pull request with this feature in the future I'll appreciate.

    I can help you. I am an android developer and had great experience in building android libraries. But, I need a reference guide for using this lib.

    how about

  9. tretdm commented on Mar 3, 2024

    @tretdm

    SCR_20240303_101027

    In addition to Android support, it is also necessary to resolve the issue of compatibility with some methods that use classes that are only available in Android O and above.

    For example, java.nio.file.Path.

  10. cavallium commented on Mar 3, 2024

    @cavallium
    Member

    SCR_20240303_101027

    In addition to Android support, it is also necessary to resolve the issue of compatibility with some methods that use classes that are only available in Android O and above.

    For example, java.nio.file.Path.

    java Path has existed for 13 years, I will not use the 1996 alternative because Android refused to support basic java APIs until Android O.
    However, Android O has been around since 2017, so I'd say it's more than enough to support the 6 most recent versions.

  11. andrew-ld commented on Mar 3, 2024

    @andrew-ld
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions