🐙
Pinned Loading
-
Monitoring network connection for An...
Monitoring network connection for Android ( API 24+ ) with using LiveData 1public class Activity extends AppCompatActivity{
2...
3private NetworkConnectionMonitor connectionMonitor;
45@Override
-
GitHubViewer
GitHubViewer PublicGitHub Repository explorer. IceRock test task, after android part of course.
-
GitHub authentication validation (lo...
GitHub authentication validation (login, authToken) 12object Validator {
3private const val LOGIN_PATTERN = "^[a-zA-Z0-9_-]{0,38}$"
4private const val AUTHORIZATION_TOKEN_PATTERN = "^gh[pousr]_[a-zA-Z0-9]{0,40}$"
5 -
NetworkMonitoring (Android = 25+)
NetworkMonitoring (Android = 25+) 1class AppActivity : AppCompatActivity() {
2override fun onCreate(savedInstanceState: Bundle?) {
3super.onCreate(savedInstanceState)
45NetworkConnectionManager(this).startNetworkCallback()
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.