This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test on real devices | |
https://www.browserstack.com/app-live |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android International Phone Number | |
https://github.com/google/libphonenumber | |
https://github.com/MichaelRocks/libphonenumber-android | |
https://github.com/joielechong/CountryCodePicker | |
https://github.com/AlmogBaku/IntlPhoneInput | |
https://github.com/hbb20/CountryCodePickerProject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android Hyperlinks in TextView | |
https://saket.me/better-url-handler-textview-android/ | |
https://github.com/saket/Better-Link-Movement-Method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Office analog for Linux | |
https://www.wps.com/ru-RU/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android Plurals | |
https://developer.android.com/guide/topics/resources/string-resource.html#Plurals | |
http://developer.alexanderklimov.ru/android/theory/plurals.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrofit upload selected image | |
// https://futurestud.io/tutorials/retrofit-2-how-to-download-files-from-server | |
// https://viblo.asia/p/android-kotlin-retrofit-2-download-file-63vKjapx52R | |
// === Retrofit service === | |
interface MediaService { | |
@Streaming | |
@GET | |
suspend fun downloadImage(@Url fileUrl: String): ResponseBody |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Android save image into gallery | |
private fun saveImage(image: File) { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { | |
saveImageWithMediaStore(image) | |
} else { | |
saveImageDirectly(image) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrofit upload selected image | |
// https://futurestud.io/tutorials/retrofit-2-how-to-upload-files-to-server | |
// === Retrofit service === | |
interface MediaService { | |
@Multipart | |
@POST("url") | |
suspend fun upload( | |
@Part("description") description: RequestBody, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android RecyclerView show date inside message list | |
https://stackoverflow.com/questions/32867823/how-to-show-date-in-between-conversation-in-recyclerview-or-in-listview/44843070 | |
https://stackoverflow.com/questions/33226491/how-do-i-display-the-calendar-date-on-the-top-of-chat-messages/33276868 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ubuntu increase inotify limit | |
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers | |
cat /proc/sys/fs/inotify/max_user_watches | |
(default is 8192) | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf | |
sudo sysctl -p |