You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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.
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.
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.
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.
Activity
cavallium commentedon Mar 21, 2021
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.
vellrya commentedon Mar 21, 2021
But its possible (example with not optimized tdlib): https://github.com/osmandapp/OsmAnd/tree/master/OsmAnd-telegram
cavallium commentedon Mar 21, 2021
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.
cavallium commentedon Mar 21, 2021
By the way, the optimized variant is mainly for bots, if you are making a GUI client you should use the non-optimized variant.
vellrya commentedon Mar 21, 2021
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.
ErrorxCode commentedon Dec 16, 2021
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.
cavallium commentedon Dec 17, 2021
https://github.com/tdlight-team/tdlight-java/tree/master/example
passerbyo commentedon Jun 30, 2022
how about
tretdm commentedon Mar 3, 2024
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.cavallium commentedon Mar 3, 2024
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.
andrew-ld commentedon Mar 3, 2024
@tretdm you can try core library desugaring https://developer.android.com/studio/write/java8-support