خرید بک لینک

Vote count: 0

Hi I am getting this message in log every time when execute query. But query is executing in background thread only and Table has not more 500 rows and also I always apply limit 100. Please don't simply give some link and say this question already answered.

I have read lots of answers in SO regarding this. But still it did not solved my issue. can anybody give me proper reason or solution to my problem?

Choreographer: Skipped 98 frames! The application may be doing too much work on its main thread.

Following is my ruable class and I am calling it like new Thread(new MessageLoaderThread(limit)).start();

private class MessageLoaderThread implements Ruable {

        int limit;
        ArrayList<MESSAGE_HEADER> result;

        public MessageLoaderThread(int limit) {
            this.limit = limit;
        }

        @Override
        public void run() {

            showProgressRing(true);

           result = Helper.getRows("Select * from TABLE_NAME LIMIT "+limit);

                    if (result != null) {
                        int count = result.size();

                        if (count > 0) {
                            firstVisibleMessageSeqId = result.get(0).getsequenceId();
                            lastVisibleMessageSeqId = result.get(count - 1).getsequenceId();
                        }
                    }

            if (result != null && result.size() > 0) {
                updateAdapter(result);
            }
            showProgressRing(false);
        }
    }

Thanks

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 31 فروردين 1395 ساعت: 19:41

صفحه بندی