Skip to content

Instantly share code, notes, and snippets.

Avatar

Booseol Shin bsscco

View GitHub Profile
@bsscco
bsscco / UsingRxBinding.kt
Created Jul 9, 2019
RxBinding 사용 후
View UsingRxBinding.kt
class MainActivity : AppCompatActivity() {
private val compositeDisposable = CompositeDisposable()
@SuppressLint("CheckResult")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val nicknameInputField = findViewById<EditText>(R.id.nicknameInputField)
@bsscco
bsscco / NonRxBinding.kt
Created Jul 9, 2019
RxBinding 사용 전
View NonRxBinding.kt
class MainActivity : AppCompatActivity() {
private var isButtonClickProcessing = false
@SuppressLint("CheckResult")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val nicknameInputField = findViewById<EditText>(R.id.nicknameInputField)
@bsscco
bsscco / GetPlayStoryAppVersion.java
Last active Sep 20, 2018
플레이스토어 앱 버전 가져오기
View GetPlayStoryAppVersion.java
String newVersion = "";
try {
Document document = Jsoup.connect("https://play.google.com/store/apps/details?id=" + cxt.getPackageName()).timeout(5000).get();
if (document != null) {
newVersion = document.select(".hAyfc .htlgb").get(7).ownText();
}
} catch (Exception e) {
e.printStackTrace();
/*가끔 select()를 호출할 때
jsoup의 처리문제인지 앱버전을 담고있는 div를 못찾는 경우가 발생하기 때문에
You can’t perform that action at this time.