Saturday, July 24, 2010

Again on j2me progress bar and thread model


Abstract:

This article is a "j2me progress bar and the threaded model" of a text added (later referred to as the original, not seen the proposal to look at).

Discussed the original thread model used in the inadequacies and shortcomings made for her new ways to improve it and give the improved implementation. UI part because the text has flexible scalability, without change.

Copyright Statement:

This paper also published in www.j2medev.com and my Blog (blog.csdn.net / alikeboy), if needed reproduced in three ways: 1) contact me and with my consent; 2) and www.j2medev.com have Articles in co-operation agreement 3) Rss polymerization by my Blog. Also need to full text is reproduced (including articles in the head), not out of context.

Body:

Foreground and background threads to interact with UI
Model of the original text, is a front for ProgressGaugeUI independent model with a background thread. When this design on maximum simplification of the complexity of communication, in fact, the model is a single direction (from BackgroundTask to PGUI communication). In accordance with the requirements of this model, programmers Override BackgroundTask of runTask () method, the obligation of regular training to check the operation of reception PGUI and made under such circumstances to reflect. This model fully believe that a background thread, will it respond to the user the right to cancel an order to a background thread, if the background thread does not respond to the trouble (such as access to a very expensive network connection), then the user is no use trying to cancel , the program will be a temporary deadlock, until the background thread have the time to check the front of the state. And in reality, in the end when the last query, what is the frequency of the problem. In the code snippet in excess of such code will affect the normal process of understanding.

This sequence from the following chart, you can see this particular process:



We need a way for us to force the end of the Task. This method provided by the background thread itself, named called cancel (). Of course there is no one way to force an immediate end to the thread (there was, because of security issues has been canceled). So cancel () method often by closing the resources (a connection, a stream, etc.) to force runTask abnormal interruption, runTask obligated under their agreement and immediately exit to capture these anomalies. A graph worth a thousand words, let us look at the process of this method.



Clearly, the key lies in front of the thread on the background thread for the callback, so that you can solve the problem. But the new questions, and this forced us to foreground and background threads together closely coupled in (because callback Well). Can achieve both front UI callback avoiding tight coupling with the background thread it?

Interface to reduce the coupling by Cancelable
Fortunately, I can use to interface with the door to this.

The previous model is like this:



To reduce the coupling, we build an interface

public interface Cancelable (

/ Bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only non-blocking in this way should return immediately (if necessary open a new thread)

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only addition, to avoid repeated calls to this method

backup / bin / bin_old / conf / data / eshow / log / maint / news: 10 / news: 11 / news: 12 / news: 13 / news: 14 / news: 15 / news: 16 / news: 17 / news: 18 / news: 2 / news: 3 / news: 4 / news: 5 / news: 6 / news: 7 / news: 8 / news: 9 / seeds / svn / tasks / tmp / xml2dict-read-only /

public void cancel ();

)

Then join in ProgressObserver support this method

public interface ProgressObserver (

... ...

... ...

/ Bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only set to cancel the callback function when the object Task

backup bin bin_old conf config crawler.tar.gz crawler_bin.tar.gz data eshow eshow_sitemap.html generate.sh google.html google.html.md5 log maint news: 10 news: 11 news: 12 news: 13 news: 14 news: 15 news: 16 news: 17 news: 18 news: 2 news: 3 news: 4 news: 5 news: 6 news: 7 news: 8 news: 9 outboundLinksMgr.sql seeds sitemap.html svn tasks tmp xml2dict-2008.6-tar. gz xml2dict-read-only @ param co

backup / bin / bin_old / conf / data / eshow / log / maint / news: 10 / news: 11 / news: 12 / news: 13 / news: 14 / news: 15 / news: 16 / news: 17 / news: 18 / news: 2 / news: 3 / news: 4 / news: 5 / news: 6 / news: 7 / news: 8 / news: 9 / seeds / svn / tasks / tmp / xml2dict-read-only /

public void setCancelalbeObject (Cancelable co);

)

This allows the user presses the Cancel button, you can be on the Cancelable.cancel () callback. This flexibility greatly enhanced.



New code

The updated code is as follows, in addition to the above model to use, but also on the part of the BUG was corrected, the place will change in different colors. Detailed usage, see comments






Recommended links:



Professional CD Sound RA to CD-R Cloner



CONVERTING avi to mp4



converter mp4 to avi



Youtube FLV Backup + Converter Freeware



Explosion PDA Converter



Alive VIDEO Converter



Avc Player



Wizard Vertical Market Apps



AllRipper DVD to RMVB



China's ENVIRONMENTAL satellite data



Perpetually Cell Phone 3G2 Converter



how TO convert avi to wmv



Storage CARTOONS - Screen Savers



Adobe At The End Of Acquiring, At A Price Well



On The Implementation Of Financial Knowledge In The Use Of



Monday, July 5, 2010

ALLCapture Enterprise

ALLCapture records any screen activity and creates in minutes internet ready screen movies, presentations, software simulations and tutorials! ALLCapture records multiple soundtracks during or after video capture. Users can edit their projects with speech bubbles, text objects and special effects. The intuitive timeline makes the editing process spectacularly easy. Videos can be exported to Flash, EXE, ASF or as video files for DVD, VCD or SVCD.

Good reasons for using ALLCapture:

- Record all screen activity in real-time, even webinars or video conferences.
- Easily edit the captured video and insert captions, notes, special effects, etc.
- Record sound during the capture process or add it conveniently during playback.
- Memory manager for better recording performance.
- Small output size is ideal for e-mail and Internet use. Choose between different output formats including Flash, EXE, ASF, DVD, SVCD and VCD.
- Convert PowerPoint presentations automatically to Flash

ALLCapture records any screen activity in real-time to quickly and easily create software simulations, videos, demos, screencasts and tutorials without any programming language necessary. It's as easy as:
record - edit - export - play



Recommand Link:



Christmas-Idea VCD VOB DAT Copier



Launchers AND Task Managers reviews



WORLDCUP RM to DVD



Best Telephony



Lohan Blackberry Converter



Mpg To Mp4



Christmas-Idea FLV PS3 Deconde



WorldCup DVD To M4V



Graphic CAD evaluation



Movavi PSP Video Suite



convert Mpeg4 to avi



converter flv to 3GP



Converting wav to mp3



Thursday, June 24, 2010

Adorage for Movie Maker

Adorage for Movie Maker is the ultimate enhancement for Movie Maker! It contains more than 100 videoeffects for results like stunning transitions or decorative frames, offering new possibilities in Movie Maker. Just select an effect - that′s it. Adorage works as plugin direct in Movie Maker. 3D-objects and photo-realistic motifs offer professional results for projects like wedding videosfilmers, holiday moviesfilmer, documentariesy producers... Other proDAD products: www.heroglyph.com , excellent videotitling & compositing www.adorage.de , giant effect collection for most NLEs www.mediabooster.com , easy-to-use online multimedia content managment



相关链接:



DVD to iRiver Lplayer software



Lists Trace And Ping Tools



WorldCup MOV Converter



Audio Rippers And Converters Wizard



PSP Video Express



RM To Music Pro



Log Analysers Specialist



DVD to Sony NWZ-X1050 conversion



Youtube Movie to PS2 Box



Youtube FLV to H264 Help



Hot Video to iPod Converter Tools



PQdownload A-one Video Convertor



Ultra Apple TV Video Converter



Ps3 video formats



Youtube Video to AVI Help



Perpetually MPEG to PSP iPhone Wii



Wednesday, June 16, 2010

WMA Midi Manager

Don't take our word for it,see for yourself. WMA Midi Manager makes direct digital copies from audio CDs and saves them as MP3s, WMAs, OGGs, or WAVs. WMA Midi Manager is very easy to use and have fast speed. Just click on one button a CDs will be extracted. WMA Midi Manager can also Convert WAV files to MP3,WMA and OGG files.
Convert CD audio tracks into MP3, CD, CDA, CD-R, DVD-Audio, AAC, AC3, ID3, M3U, M4A, M4P, MP3 ID3 Tag, OGG, RA, WAV, WMA, MP2, APE, VQF, MPC, AMR, Midi, WAVE, and RM file files.



Recommand Link:



Youtube FLV to FLV Ultra



GOOD-OK Video Converter



Apolo iPod Backup



Open AVI to iPod



Ever CDA MP3 MPC to AMR Ripper



Bluesea MP3 APE To M4A Convert



IUoysoft Zune Movie/Video Converter



Youtube FLV to SWF Tools



Recommend Firewall And Proxy Servers



issue with Excel 2007



Icon Tools Introduction



Shop Chat And Instant Messaging



How to Record DVD-Audio Manager



Saturday, June 12, 2010

DVD-Audio AAC to ID3

DVD-Audio AAC to ID3 is a easy and flexible tool used to extract audio from AVI, MPG, VOB, WMV, ASF, DAT, RM, RMVB, MP2, OGG format medium files. You can get your favorate audio from video files, and also you can convert audio to other formats and save to mp3,ogg,wma,wav formats. DVD-Audio AAC to ID3 supports edit or change audio file information.
It supports ID3v1,2 tagging that allows you to save and edit song information such as title of a song and album, name of artist, year etc. in MP3, OGG and WMA files. Encode WAV to MP3, OGG, WMA;



Recommand Link:



DVD-Audio to RA Creator



Youtube Video To PS2 Plus



Youtube To Laptops Program



New Seasonal - Screen Savers



Youtube to RM Box



Youtube Video to BDMV Online



AllRipper IPhone Converter



Save2pc Pro



Explosion DVD to Apple TV



Youtube to PSP Box



Nevo DVD Audio Ripper



Help Tools Storage



Largest Freeware Site



Youtube Movie to Windows Mobile Popular



Evaluate Web Servers



Friday, June 11, 2010

Acala DVD Ripper PSP Bundle

Acala DVD Ripper is a intuitive to use program which rips your DVD movies to AVI, VCD, SVCD format video regardless DVD CSS and DVD Region. The build-up enhanced encoder deep compress output min files with high speed and lossless movie quality. With Acala DVD Ripper, you will be able to backup or copy your favorite DVD movies to your hard disk as freely.With Acala DVD Ripper, don't worry about your media knowledge base, for it does all for you.

Key Features:

Intuitive interface make you free and professional.
Build-up enhanced encoder ensure the output AVI file less than 200MB lossless movie quality.
One click profile settings solution and easy customize settings for video size, frame rate, video bitrate(quality), audio bitrate(quality), aspect ratio, split size and TV mode.
Subtitle and Audio Track selectable for each episode.
Set the start position and end position for any episodes to convert.( cut movie clip to convert ).
Batch convert main movie and any episodes.
Batch files conversion.
Preview playback movies and any episodes..
Automatically Shutdown Computer When ripping done.

Acala AVI DivX MPEG XviD VOB to PSP is a professional PSP movies converter software, it design for anyone who wants to enjoy the most pop movies from internet on PSP.

Key Features:
1) World classic converting speed and quality.
2) Support Set the start position and end position of source file to convert.( cut movie clip to convert ).
3) Support almost popular video files (DIVX, XVID, AVI, MPG, MPEG,VOB,VCD,SVCD,etc.)
4) Support Batch files conversion.
5) Best quality: the support for the latest industry standards ensures the videos you create with best picture and audio quality.
6) User-friendly interface : one click settings solution, need not any basic knowledge.
7) Preview display: you can playback the video clip in preview window.
8) Perfect PSP movies manager attached.
9) Automatically Shutdown Computer .



Recommand Link:



Explosion FLV Converter



ChrisTWEAK



Youtube FLV to Treo Mixer



Tools And Editors Directory



Easy to use Kids Education



How-to DAT to DVD



Evaluate Pager Tools



largest FREEWARE site



Christmasgift SWF Converter



Christmas-Idea VOB DAT to DivX



Lohan DVD Manager



Youtube Movie to RM PROGRAM



Video to Apple TV Converter



Youtube Video to 3G2 Professional



YOUTUBE Video to FLV Utility



Thursday, June 3, 2010

Lohan DVD to Apple TV

Lohan DVD to Apple TV is a very easy convert DVD to Apple TV, and your favorite movies from AVI, DIVX, MOV, MPEG, QuickTime, VCD, DVD, WMV, ASF, RM, RMVB to Apple TV. and convert popular audio files including WMA, MP2, OGG, RA, AC3, APE, CDA, etc to Apple TV MP3, AAC. Extremely fast conversion speed and friendly user interface let you convert video files between many formats with ease. The powerful features and unbeatable price make Lohan DVD to Apple TV an affordable and powerful video conversion solution on personal computer.



Recommand Link:



Youtube FLV to ASX Shareware



Youtube Movie To H264 Ultra



Open DVD to PSP



Hot Science Education



Free Programs Download



How-to DVD to PDA



Good Recreation



Youtube Movie To DVD Program



Compare Converters And Optimizers



3GP Video Converter tool



5Star DVD to AVI Ripper



Digital MP3 APE M4P To VQF Converter



Youtube To M4V Plus