How to abort slow array sorting

by ls02 » Tue, 07 Sep 2010 20:01:52 GMT


Sponsored Links
 I sort very long array with Collections.sort method. This is done in a
worker thread. I need to abort the sort. I didn't find how I can do
this, Comparator.compare does not seem to allow throwing any exception
and I didn't find how I can set any flag to abort the sort.

--



How to abort slow array sorting

by Kostya Vasilyev » Tue, 07 Sep 2010 20:16:40 GMT


 07.09.2010 16:00, ls02 :
I sort very long array with Collections.sort method. This is done in a worker thread. I need to abort the sort. I didn't find how I can do this, Comparator.compare does not seem to allow throwing any exception and I didn't find how I can set any flag to abort the sort.
You can throw a subclass of RuntimeException, even if the method signature doesn't allow it. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --


Sponsored Links


Other Threads

1. [0xlab-devel] Android Compile system remove Google application

2011/2/5 tommy.hong <hongjiuj...@gmail.com>:

Why couldn't you simply remove some APK files?
You can look up the results from logcat in order to indicate the exact
Google related
APK.


What if some directories in /data/cache are read only?

Sincerely,
Jim Huang (jserv)
http://0xlab.org/

-- 

2. Ti-phone A88 鈥?Android, Touch screen, Qwerty, TV, Radio, Wifi, Dual Camera, bisa unlimited internet 50rb/bulan

Sesuai Subject di jual 1 unit Android Phone merek Ti-phone A88 dengan
spesifikasi sbb:

General
Multimedia Music Player FM Radio TV Tuner Analog Video Player, OS
Android OS 1.6, WLAN Wi-Fi 802.11 b/g, 2G Network GSM 850 / 900 / 1800 /
1900

Size
Dimensions 109 x 60 x 14 mm

Display
Type TFT resistive touchscreen, Resolution 320 x 240 pixels, Diagonal 2
inchi, Color Depth 65K colors, Others - Mouse, - Qwerty keypad

Sound
Ringtone AAC MP3 True tone, Others - 3.5 mm audio jack

Memory Internal 256 MB, External microSD, up to 8GB

Data Transfer GPRS Class 10, Bluetooth v2.0, USB Yes, v20 microUSB

Camera Primary 2 MP, 1600x1200 pixels, Secondary VGA, 640x480 pixels, video
recorder

Other Features
Processor Marvell PXA310 (624MHz)
Messaging SMS MMS E-mail
Browser HTML WAP 2.0/xHTML


*Future Tambahannya :
*Bisa Akses Internet Unlimited 50rb mempergunakan paket TIS (khusus
Telkomsel)



Barang segel dan garansi resmi.

*Harga : 1.300.000 NET*

Bonus : Microsd 1GB

Lokasi: serpong tangerang selatan bisa COD



 Berminat japri aza HUB 0817 164 285 atau 0838 9780 1655

-- 
===============

3. Android Compile system remove Google application

4. procedure to add a new device driver to an image?

5. Online Android Market

6. Issue 13044: Android Browser does not correctly support XMLHttpRequest streaming

7. How to store a timestamp to the sd card?