May 23Member-onlyIncluding an AdMob Anchored Adaptive Banner in Jetpack ComposeAs of now there’s still no native support for Jetpack Compose in the official AdMob SDK by Google. Therefore when it comes to adding Ad banners to our Jetpack Compose project we necessarily need to get back to the classic Android View system. Fotunately there’s a composable which comes in…Android2 min readAndroid2 min read
Apr 28Member-onlyUniversally Unique IDs as a Primary Key in a Room DatabaseThe default choice for primary key identifiers in a Room Database is usually an auto-generated Integer field, e.g. : @PrimaryKey(autoGenerate = true) val id: Int Integer IDs are plain and straightforward to implement but not so easy to handle when it comes to apps wich can run on multiple devices…Android3 min readAndroid3 min read
Mar 13Member-onlyMigrate from SharedPreferences to EncryptedSharedPreferencesAndroid Developers have always been used to save little pieces of data inside their apps with SharedPreferences. At the same time we’ve always struggled with securing information saved inside our apps because there was no standard way to do so and third party solutions have always been buggy or not…Android3 min readAndroid3 min read
Feb 1Member-onlySending a photo to a Telegram channel the easy wayToday we’ll see by practical examples how to send a picture to a Telegram channel. In order to be able to do so, you will have first to: Create a Telegram public channel Create a Telegram BOT via BotFather Set the bot as administrator in your channel Provided that you…Telegram5 min readTelegram5 min read
Apr 6, 2022Member-onlyUsing your SSL Certificate with µTorrent ServerHere’s how I managed to secure my µTorrent Server installation with my domain’s SSL certificate. First of all we have to say that µTorrent Server runs on a self generated SSL certificate which is stored along with its private key in a file called servercert.dat …Linux2 min readLinux2 min read
Dec 2, 2021Member-onlyHow I managed to install a working IntelliJ Idea CE on an ARM ChromebookDespite official Linux support in ChromeOS, ARM based Chromebook owners are still being orphans of dedicated builds for most tools. Nowadays you can easily download and install Visual Studio Code but ARM based Chromebook still lack official support from Android Studio (and we’re still a long way to it, if…Chrome OS2 min readChrome OS2 min read
Apr 16, 2021Member-onlyCreating attributed text from an HTML stringEvery now and then you might have found yourself in the need to showing attributed text in your iOS app (e.g. in a UILabel) and considered how easy it is in HTML compared to an NSAttributedString. Suppose you wanted to have a label with some underlined text, in HTML you…IOS1 min readIOS1 min read
Aug 26, 2020Member-onlyLet your Android app navigate on a WiFi w/o internet access when mobile data is onLet your Android app navigate on a WiFi w/o internet access when mobile data is on Recently a client contacted me because their mobile app could not connect to a webpage served from a WebServer located inside a WiFi network without internet access. It seemed that they could connect to…Android1 min readAndroid1 min read
Jul 27, 2020Member-onlyAndroid EditText: avoid showing software keyboard on focusHave you ever needed an EditText to not showing the software keyboard when it gets tapped? May it be because you have a custom input method for that field or whatever reason you have, you can easily achieve it by calling the setShowSoftInputOnFocus method on an EditText or if you…Android1 min readAndroid1 min read
Apr 2, 2020Member-onlyRetrieving cookies from a cURL call response in PHPMany people despise PHP because they don’t believe it to being a sufficiently structured language and they think the programmer is left free to make the worst spaghetti coding. Anyway I believe bad programming comes from a bad programmer, though some languages may enforce correctness and type safety above others. …PHP3 min readPHP3 min read