목록IT (1045)
올해는 머신러닝이다.
https://github.com/amitshekhariitbhu/RxJava2-Android-Sampleshttps://github.com/kaushikgopal/RxJava-Android-Samples
Do these modifications to your animation files:enter.xml: exit.xml: You'll have your second activity sliding in from right to the left.For a better understadnig on how to play around with the fromXDelta and toXDelta values for the animations, here is a very basic illustration on the values: This way you can easily understand why you add android:fromXDelta="0%" and android:toXDelta="-100%" for yo..
public class TileBitmapProvider implements BitmapProvider { private final TileProvider provider; private final Bitmap.Config bitmapConfig; private final int backgroundColor; private final BitmapPool bitmapPool; private final Rect frameRect = new Rect(); public TileBitmapProvider(final TileProvider provider, final BitmapPool bitmapPool, final Bitmap.Config bitmapConfig, final int backgroundColor)..
class ViewController: UIViewController { @IBOutlet weak var imgMain: UIImageView! @IBOutlet weak var btnPrev: UIButton! @IBOutlet weak var btnNext: UIButton! var idx = 0 var array_img = ["img1.jpeg" , "img2.jpeg" , "img3.jpeg"] override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. initView(_pos : 0); } func initView(_pos : Int)..
List list = new ArrayList(); Iterator iterator = list.iterator(); // while (iterator.hasNext()) { for (Iterator iterator = list.iterator(); iterator.hasNext();) { String string = iterator.next(); if (string.isEmpty()) { // Remove the current element from the iterator and the list. iterator.remove(); } }
출처 : http://blog.danlew.net/2016/06/13/multicasting-in-rxjava/ 멀티 캐스팅은 RxJava에서 중복 된 작업을 줄이기위한 핵심 방법입니다.당신이 이벤트를 멀티 캐스트하면 보내 같은 이벤트를 모두 다운 스트림 사업자 / 가입자. 이 기능은 네트워크 요청과 같이 값 비싼 작업을 수행 할 때 유용합니다. 각 가입자마다 똑같은 네트워크 요청을 반복적으로 실행하고 싶지는 않습니다. 결과를 멀티 캐스팅하기 만하면됩니다.멀티 캐스트에는 두 가지 방법이 있습니다.를 사용 ConnectableObservable을 통해 ( publish()또는replay()1 )사용 SubjectConnectableObservable또는 전에 수행 된 Subject작업은 한 번만 발생합니다..
아이폰 공부 시작합니다
출처 : http://kunny.github.io/community/2016/02/08/gdg_korea_android_weekly_02_1/MissingBackpressureExceptionMissingBackpressureException은 Observable에서 항목(item)을 보내는(emit) 속도보다 처리하는 속도가 느릴 때 발생합니다.RxJava 가이드 문서 내 Backpressure 항목에도 이와 관련된 항목이 기술되어 있는데, 문서에서 예로 든 사례(zip 연산자를 사용하는 경우)를 사용하지 않는 경우에도 상당히 높은 확률로 경험할 수 있습니다.RxAndroid를 사용하는 경우, 수신된 데이터를 UI에 표시하기 위해 observeOn(AndroidSchedulers.mainThread()..
you may use Observable for example: handling GUI eventsworking with short sequences (less than 1000 elements total) ========================================================= You may use Flowable for example: cold and non-timed sourcesgenerator like sourcesnetwork and database accessors
출처 : http://www.introtorx.com/Content/v1.0.10621.0/12_CombiningSequences.htmlCombining sequencesData sources are everywhere, and sometimes we need to consume data from more than just a single source. Common examples that have many inputs include: multi touch surfaces, news feeds, price feeds, social media aggregators, file watchers, heart-beating/polling servers, etc. The way we deal with these ..
오픈소스 라이버러리 모음 http://pluu.github.io/blog/android/oepnsource/2015/05/11/android-opensource/
Jabber/XMPP Protocol NamespacesThis is the official registry of Jabber/XMPP protocol namespaces as maintained by the XMPP Registrar. This registry contains only namespaces that are defined in the XMPP RFCs (published by the IETF) or in XMPP Extension Protocols that have advanced to a status of Active, Draft, or Final within the standards process of the XMPP Standards Foundation. Other namespaces..
ConfigureForm form = new ConfigureForm(FormType.submit); form.setPersistentItems(false); form.setDeliverPayloads(true); form.setAccessModel(AccessModel.open); PubSubManager manager = new PubSubManager(connection, "pubsub.my.openfire.server"); Node myNode = manager.createNode("TestNode", form); SimplePayload payload = new SimplePayload("book","pubsub:test:book", "Lord of the Rings"); Item item = ..
출처 : https://www.ucert.co.kr/tech/sslinstall/openfire_all.html1. 웹 콘솔 접속1) 브라우저를 기동하여 openfire 콘솔에 접속(예. http://localhost:9090)2. SSL정의 작성1) 상단 탭 메뉴의 Server를 선택2) 왼쪽 메뉴의 System Properties를 선택3. SSL 설정 추가1) JKS 파일을 ${openfire_HOME}/resources/security/에 파일을 복사하여 truststore와 keystore로 이름을 변경합니다.* ${openfire_HOME} = openfire 설치 경로 2) Add new property 항목의 property Name:와 property Value:에 아래 내용을 추가A) ..
출처 : http://forum.theorex.tech/t/xmpp-register-login-and-chat-simple-example/198 compile 'org.igniterealtime.smack:smack-android:4.2.0' compile 'org.igniterealtime.smack:smack-tcp:4.2.0' compile 'org.igniterealtime.smack:smack-im:4.2.0' compile 'org.igniterealtime.smack:smack-android-extensions:4.2.0' public void getSrvDeliveryManager(Context context){ ServiceDiscoveryManager sdm = ServiceDiscov..
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
[ANDROID(안드로이드) 앱 개발 기초] MEDIAPLAYER 음악 재생하기 http://unikys.tistory.com/350
출처 : http://johnfeng.github.io/blog/2015/05/31/fragment-activity-has-been-destoryed-problem/ When fixing projects' bugs, I found a really wired one with error info shown as below:Error Info1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 java.lang.IllegalStateException: Activity has been destroyed at android.support.v4.app.FragmentManagerImpl.enqueueAction(Unknown Source) at android.s..
http://makerj.tistory.com/179 스프레쉬 에니메이션 라이버리리 어플
List of Android Top 1000 LibrariesA curated list of awesome Android Top 1000 libraries.Mantainers iamdaiyuanTop 1000NameDemonostra13/Android-Universal-Image-Loaderjfeinstein10/SlidingMenugoogle/ioschedJakeWharton/ActionBarSherlockforkhubs/androidlibgdx/libgdxloopj/android-async-httpsquare/picassosquare/retrofitJakeWharton/ViewPagerIndicatorexcilys/androidannotationschrisbanes/Android-PullToRefre..
출처 : http://www.programkr.com/blog/MYDNzADMwYTy.html 애니메이션 효과 프로그래밍 기초--AnimationAndroid 애니메이션 스타일 Android의 animation by 네 종류의 구성 XML 중 alpha 그라디언트 투명도 애니메이션 효과 scale 그라디언트 사이즈 신축 애니메이션 효과 translate 화면 전환 애니메이션 효과 자리 이동 rotate 화면 회전 애니메이션 효과 이동 JavaCode중 AlphaAnimation 그라디언트 투명도 애니메이션 효과 ScaleAnimation 그라디언트 사이즈 신축 애니메이션 효과 TranslateAnimation 화면 전환 애니메이션 효과 자리 이동 RotateAnimation 화면 회전 애니메이션 효과 이..
출처 : https://raw.githubusercontent.com/Polidea/android-zoom-view/master/src/pl/polidea/view/ZoomView.java public class ZoomListView extends ListView { private static final int INVALID_POINTER_ID = -1; private int mActivePointerId = INVALID_POINTER_ID; private ScaleGestureDetector mScaleDetector; private float mScaleFactor = 1.f; private float maxWidth = 0.0f; private float maxHeight = 0.0f; priv..