목록전체 글 (1350)
오늘도 공부
I think you are missing the implementation of auto accepting Group chat joining Request in your code.Below code is working for AMACK group chat using Openfire Server1. Creating XMPP Connection XMPPTCPConnection connection = new XMPPTCPConnection(config); connection.connect(); connection.login(ID1, password1); Presence presence = new Presence(Presence.Type.available); connection.sendPacket(presen..
What protocols do they use?Application like Whats app,G-talk ,facebook etc they uses XMPP protocol for IM services.What is XMPP?The Extensible Messaging and Presence Protocol (XMPP) is an open technology for real-time communication, using the Extensible Markup Language (XML) as the base format for exchanging information. In essence, XMPP provides a way to send small pieces of XML from one entity..
XMPP 관련 자료 http://nekomimi.tistory.com/660
출처 : http://www.cnblogs.com/zhaoyanjun/p/5535651.html Button 防抖处理 button = (Button) findViewById( R.id.bt ) ; RxView.clicks( button ) .throttleFirst( 2 , TimeUnit.SECONDS ) //两秒钟之内只取一个点击事件,防抖操作 .subscribe(new Action1() { @Override public void call(Void aVoid) { Toast.makeText(MainActivity.this, "点击了", Toast.LENGTH_SHORT).show(); } }) ; 按钮的长按时间监听 button = (Button) findViewById( R.id.bt ) ; //监听长按..
출처 : http://beust.com/weblog/2015/06/01/easy-sqlite-on-android-with-rxjava/Easy SQLite on Android with RxJavaWhenever I consider using an ORM library on my Android projects, I always end up abandoning the idea and rolling my own layer instead for a few reasons:My database models have never reached the level of complexity that ORM’s help with.Every ounce of performance counts on Android and I can..
adb shell "run-as [패키지명] ls -l" adb shell "run-as [패키지명] ls -l databases" adb shell "run-as [패키지명] cat databases/[디비파일] > [복사할 디렉토리와 파일명]"
링크 모음 Grokking RxJava, Part 1: The Basics Grokking RxJava, Part 2: Operator, Operator Grokking RxJava, Part 3: Reactive with Benefits Grokking RxJava, Part 4: Reactive Android
출처 : http://chuumong.tistory.com/entry/RxJava-%EC%A0%95%EB%A6%AC RxJava ClassObservable : 이벤트를 발생시키는 주체, onNext / onCompleted / onError를 이용하여 이벤트를 발생 시킴Subscriber : 이벤트를 전달받는 객체PublishSubject : 구독한 시점으로 부터(subscribe 호출) 발생되는 이벤트(onNext, onError, onCompleted)를 전달 받음BehaviorSubject : 구독 전 (subscribe 호출 전) 발생된 이벤트가 한 건이라도 있으면 구독 시점에 해당 이벤트(한 건만)를 전달 받음CompositeSubscription : Subscriber를 그룹화 함, add로..
RxJava – PublishSubject, BehaviorSubject, ReplaySubject 링크 : http://ohlab.kr/w/archives/436