Observable android understanding
<p>I'm trying to understand how the observer pattern works in Android.</p>

<p>I've created this method to load a sample list of object, pushing each items to the subscriber and loading it to into the recyclerview.</p>

<p>I don't understand why if i load 10 items everything is working fine, but if i load 100/1000 or in general more items, the recyclerView is empty and onNext, onComplete are not fired.</p>

<pre><code>private Observable&lt;AppInfo&gt; getAppList() {

    return Observable.create(new Observable.OnSubscribe&lt;AppInfo&gt;() {
        @Override
        public void call(Subscriber&lt;? super AppInfo&gt; subscriber) {

            for (int i = 0; i&lt;10; i++){
                AppInfo appInfo = new AppInfo(
                        "Test item "+i,
                        ContextCompat.getDrawable(getApplicationContext(), R.mipmap.ic_launcher),
                        i
                );
                subscriber.onNext(appInfo);
            }

            if (!subscriber.isUnsubscribed()) {
                subscriber.onCompleted();
            }
        }
    });
}
</code></pre>

<p>And this is how i use the Observable:</p>

<pre><code>Observable&lt;AppInfo&gt; appInfoObserver = getAppList();

    appInfoObserver
            .subscribeOn(Schedulers.newThread())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(new Subscriber&lt;AppInfo&gt;() {
                @Override
                public void onCompleted() {
                    Toast.makeText(getApplicationContext(), "App List Load Completed!", Toast.LENGTH_LONG).show();
                }

                @Override
                public void onError(Throwable e) {}

                @Override
                public void onNext(AppInfo appInfo) {

                    if(mAppInfoList != null){
                        mAppInfoList.add(appInfo);

                        adapter.notifyItemInserted(appInfo.getAppPosition());
                    }
                }
            });
</code></pre>

<p>Thanks for the help and advices.</p>