Skip to content

Instantly share code, notes, and snippets.

비스코(Booseol Shin) bsscco

Block or report user

Report or block bsscco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.