Post, Code and Quiet Time.

Welcome to Errong's Post, Code and Quiet Time.

Android how to detect/register language/locale change listener/receiver

The easy way is to register a BroadcastReceiver for Intent.ACTION_LOCALE_CHANGED. Example: change your ViewModel data when language/locale changed. public class QASViewModel extends ViewModel { @SuppressLint("StaticFieldLeak") private final FragmentActivity activity; public QASViewModel(@NonNull FragmentActivity activity) { this.activity = activity; setLangReceiver(); } private void setLangReceiver() { final QASViewModel qasViewModel = this;

AWS : how to play a video file from s3 bucket in browser

URI all you have to do is to sign a request like: https://s3.amazonaws.com/yourbucket/key?response-content-disposition=inline&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJWWH7EGSUBWE34IQ/20181228/us-east-1/s3/aws4_request&X-Amz-Date=20181228T074135Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=b3143f8442812e176fd61838813a33f53cfd7e198e1c6e68fab5d03d4a642403 and set it as src attribue to a video element. Player component import
2 min read