Telegram, I need to get channel’s data list. I use for this case TdApi. Documentation: https://javadoc.tlgrm.ru/org/drinkless/td/libcore/telegram/TdApi.html I do it based on this example: https://core.telegram.org/tdlib/tdlib.zip. I still got chat’s list by this example. Check here my way: I tried…
Tag: android
Downloaded file share to other app like Whasapp, Facebook from my app
THIS error show my code i try set share option in my app for downloaded video java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/VideoDownloadFAST/20200816190612.mp4 at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:744) …
Android Sensor return null?
The Android Java app that I am writing has a simple principle of operation: it reads data from sensors and displays it in a TextView. The first version of the application worked without any problems, but I wanted to improve it and work on the design. I decided to add a slideout side menu and that’s when…
How to access an enum member of a Java interface using Kotlin?
I have a Java interface, and need to access it throught my Kotlin application. But it is not working. // On Java public interface IMyInterface { int TEST_OK = 1; enum MyEnum { NOK(0), …
Children of CollapsingToolbarLayout with different collapse modes
I would like to create a CollapsingToolbarLayout that contains two views (one below the other – like a LinearLayout manner). The problem is that i would like these views to have different collapse modes – upper one parallax, the other – none. When I put them in one LinearLayout I can only se…
Is it possible to open 2 microphones in Android at same time with Oboe library?
I’m trying to open 2 microphone streams with google’s Oboe library like this, for each microphone: oboe::AudioStreamBuilder builder; builder.setChannelCount(channelCount) ->…
requestLegacyExternalStorage is not working in Android 11 – API 30
Google has introduced some changes recently related to storage APIs in API 29 like scoped storage and we opted out by adding ‘requestLegacyExternalStorage=true’ in Manifest. But now when I targetSdkVersion 30, this no longer seems to work. Some of the files in the download directories were not lis…
How to prevent activity to restart after changing its orientation
I’m new to android development using KOTLIN, i have activity that contain fragments like the image below (Image 1), the problem is whenever i try to change the orientation from potrait to landscape, the activity return to the previous activity (Like restart it). I’ve tried to add android:configCha…
Change PreferenceFragmentCompat dialog background color in Android
I recently started working with PreferenceFragmentCompat and MaterialComponents and noticed that in Dark mode, Dialogs generated by preferences like ListPreference always have that weird grey android background no matter how many background attributes I change in the style. (source: pocketnow.com) This I̵…
Parsing instagram with java jsoup not give Elements gives source
I’m trying to get reels video URL with jsoup using java on Android Studio. I want to get Elements in inspect but code returns page source. I use jsoup in other projects on different web pages and never encounter this situation. Can you tell me what ı doing wrong and how can ı get the Elements in inspect…