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
| # Set up adb to use tcpip port | |
| adb tcpip 5555 | |
| # Default device ip when it's used as a portable hotspot | |
| adb connect 192.168.43.1 | |
| # List connected devices | |
| adb devices |
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
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.widget.EditText; | |
| /** | |
| * Original: | |
| * An EditText, which notifies when something was cut/copied/pasted inside it. | |
| * @author Lukas Knuth | |
| * @version 1.0 | |
| * |
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
| class Geo(private val lat: Double, private val lon: Double) { | |
| companion object { | |
| const val earthRadiusKm: Double = 6372.8 | |
| } | |
| /** | |
| * Haversine formula. Giving great-circle distances between two points on a sphere from their longitudes and latitudes. | |
| * It is a special case of a more general formula in spherical trigonometry, the law of haversines, relating the | |
| * sides and angles of spherical "triangles". |
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
| WEBVTT | |
| 00:00:00.000 --> 00:00:02.200 | |
| Aku meyakini ada | |
| pembunuh wanita.. | |
| 00:00:02.240 --> 00:00:03.640 | |
| ..beroperasi | |
| di skala internasional. |
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
| package com.ilisium.stokgudang.sumberrejo.helper; | |
| /* | |
| * Copyright (C) 2006 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
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
| WEBVTT | |
| 1 | |
| 00:00:34.800 --> 00:00:37.200 line:0 position:20% size:60% align:start | |
| Kau tak punya | |
| pengalaman kerja. | |
| 2 | |
| 00:00:37.320 --> 00:00:40.040 line:0 position:20% size:60% align:start | |
| Tidak, tapi aku |
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
| 1 | |
| 00:00:34,800 --> 00:00:37,200 | |
| Kau tak punya | |
| pengalaman kerja. | |
| 2 | |
| 00:00:37,320 --> 00:00:40,040 | |
| Tidak, tapi aku | |
| baru lulus dari Fordham. |
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
| webView.setWebViewClient(new WebViewClient() { | |
| @Override | |
| public boolean shouldOverrideUrlLoading(WebView view, String url) { | |
| String cookieStr = CookieManager.getInstance().getCookie(url); // android.webkit.CookieManager | |
| storeCookies(url, cookieStr); | |
| return super.shouldOverrideUrlLoading(view, url); | |
| } | |
| // Convert cookie string into a list of cookies. Persist cookies in a java.net.CookieStore |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <item | |
| android:top="-6dp" | |
| android:left="-6dp" | |
| android:right="-6dp" | |
| android:bottom="0dp"> | |
| <shape android:shape="rectangle"> | |
| <solid android:color="#88FFFF00"/> |
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
| OkHttpClient client = new OkHttpClient.Builder() | |
| .connectTimeout(60, TimeUnit.SECONDS) | |
| .readTimeout(60, TimeUnit.SECONDS) | |
| .addNetworkInterceptor(new LoggingInterceptor()) | |
| .addInterceptor(new HeaderInterceptor(mContext)) | |
| .build(); | |
| static class LoggingInterceptor implements Interceptor { |
NewerOlder