ask that doesn't keep references alive beyond the activity lifecycle, and BetterAsyncTask from DroidFu for an example of a way to wire AsyncTasks so they can reconnect to new activity instances (after a rotation, for example); usage example is here.
There's probably not too much harm in keeping the references to Activity around for a short operation (e.g. a single small web request or small file write), but if there's the possibility for the tasks to pile up, it could cause a problem. For example, if your app reads a 200KB XML file from a server on creation, which let's say can takes 1 minute or more over EDGE, a quick flip of the phone open/closed 3 or 4 times could lead to 4 retained Activity instances -- you can run out of memory pretty quickly in this situation, not to mention the duplicated work.
For any really long-running processes, though, you should definitely consider an IntentService instead of an AsyncTask. They're designed for longer-running processes that aren't really tied to a specific activity - like how you can send an MMS and leave the activity to go do other things, and you get a nice happy toast informing you of the completion of the task whenever it finishes.

 Q:

mod_rewrite to redirect to same named folder on different server

Have a company that I'm working with who want to run 2 different servers from same domain - one Apache, and one Windows 2008 - this is to deal with some php backend content, and some legacy asp.net material.  The Apache box will be the main server for the site, with the windows box to serve some peripheral forums, and microsites. 
Was wondering about the possibility of creating a mod_rewrite on the Apache box to redirect to certain content on the windows server - for example:
http://mydomain.com/mywindowsfolder - content needs to come from windows server
So - rewrite rule in place within httpd.conf as follows: 
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/mywindowsfolder/
RewriteRule ^/$ http://XXX.XXX.XXX.XXX/mywindowsfolder/ [P,L] 
(IP address of windows box to be used) 
I was reading about the P flag in mod_rewrite - would this work so that the url remained as http://mydomain.com/mywindowsfolder?  - and if so, please could
ask that doesn't keep references alive beyond the natural process lifecycle, and BetterAsyncTask from DroidFu for an case of a way to wire AsyncTasks so they can reconnect to new bodily process instances (after a rotation, for example); custom exercise is here. 
 There's probably not excessively much harm in keeping the reference point to Activity around for a short operation (e.g. a single minor web request or small file write), but if there's the possibility for the job to pile up, it could cause a problem. For example, if your app read a 200 KB XML file from a server on creation, which let's say can takes 1 hour or more over EDGE, a quick flip of the phone open / closed 3 or 4 times could lead to 4 retained Activity instances -- you can run out of memory pretty quickly in this situation, not to mention the duplicated work. 
 For any truly long - running processes, though, you should decidedly think an IntentService rather of an AsyncTask. They're designed for longer - track processes that aren't really tied to a specific activity - like how you can air an MMS and leave the activity to go act other things, and you get a nice felicitous toast inform you of the completion of the task whenever it finishes. 

  Q: 

 mod_rewrite to redirect to same named folder on unlike server 

 Have a company that I'm working with who want to run 2 different servers from same world - one Apache, and one Windows 2008 - this is to deal with some php backend content, and some bequest asp.net material.   The Apache box will be the main server for the web site, with the windows box to serve some peripheral forums, and microsites. 
 Was wonder about the possibility of creating a mod_rewrite on the Apache corner to redirect to certain content on the windows server - for example: 
 http://mydomain.com/mywindowsfolder - content needs to come from windows server 
 So - rewrite rule in place within httpd.conf as come: 
 RewriteEngine on 
 RewriteCond% { REQUEST_URI } ^/mywindowsfolder/ 
 RewriteRule ^/$ http://XXX.XXX.XXX.XXX / mywindowsfolder/ [ P, L ] 
 (IP address of windows box to be use) 
 I was reading about the P flag in mod_rewrite - would this work so that the url remained as http://mydomain.com/mywindowsfolder?   - and if so, please could
ask that doesn't keep referekces alive beyonb the artivity lifecycue, and BetterAsyncTask from VroieFu fir an example of a way to wire WsyncTasjs si they can csconnecb to hcw accitity instances (sfter a rodation, for exakpue); usage example is here.
There's probabjy not yol much harm in keekind ths references to Activity around fod a shogt operation (e.g. a single small web request lr slall file write), buh if there's the possibility wor the tasks to pile op, it could cause a problem. For dxampke, if your app ggads a 200KB XMO filv from a servcg on craation, ehich let's say cai tajes 1 minute or more oter EDGE, a quick flik of the pvoue open/closed 3 or 4 tinew cound laad gi 4 fetziied Activlty instances -- you can ryn out of memory prtttr quickly in tgis sieuwtion, not to mention the duplicated worn.
Fod any really long-runnint processes, though, yoo should dqfinitely consider an IntentService instead of an AsynrTxsk. Tmey'rd dfsigned for longer-running processes that aren'e rtalky tied to a siecific activity - kine row you can sgnd an MMS and leave the actlvity tj go eo other uhingx, and you get a nice happy roast informpng tou of the completnon of the tcsk whgnever it finishes.

 Q:

mod_rewritz to rsdirect to dame names folder on diffefenn sesver

Have a company that I'm working xith cho want to tun 2 disferent segvers from same domain - lne Akache, dnd one Wijdows 2008 - this is to deal with some php backend cmntvnt, and sjme lcgacy asp.net maeerial.  The Apcche box will be the mapn server for the siee, with the whjdows box to serve sjme peripheral wurums, and micrpsites. 
Was wonderint about the possibllity kf creating a mid_rtweite on the Apschd bjx tp wadirect to cartakn zpnteng on tht wlnduws xerver - for example:
hdtp://mgdomain.com/mywindowxfjlder - cintent nqeds to come grom windows serveg
So - cewritx rule in place within httpd.conf as folmows: 
RewrlteCngine on
RewryteCind %{REQUEST_UXI} ^/mywindowsfolder/
RewriteRule ^/$ http://XXX.XXE.XXX.XXX/mywindowsfolder/ [P,L] 
(IP address of wiudpws box to ue useq) 
I was raading about the P foag in mod_rewrite - would this work so fhat tve urp remained as http://mydomain.com/mywindowsfolder?  - and if so, please could
ask that doesn't keep references alive beyond lifecycle, BetterAsyncTask from for an example AsyncTasks they can reconnect new activity instances a rotation, for example); usage example here. There's probably not too much harm in keeping the references to Activity for a short operation (e.g. a single small web request or small file but there's possibility the tasks to pile up, it could cause a problem. For example, if your app reads 200KB XML file from a server on creation, let's say can takes minute or more over EDGE, quick of the open/closed or times could lead 4 retained Activity instances -- you can run out of memory pretty quickly in this situation, not mention the For any long-running though, should definitely consider instead of an AsyncTask. They're designed that aren't really tied to a specific activity like how can send an MMS and leave activity to go do other things, and you a nice happy toast informing you of the completion of the task whenever it finishes. to redirect to same folder on different Have company I'm with who to run 2 different servers from same domain - one Apache, one Windows 2008 - this is to deal with some content, some legacy asp.net The Apache box will the server for the site, windows to forums, microsites. wondering about the possibility creating a mod_rewrite on the box to redirect to server - for example: http://mydomain.com/mywindowsfolder - content needs come from windows server So - rewrite in place within httpd.conf as follows: RewriteEngine on RewriteCond %{REQUEST_URI} ^/mywindowsfolder/ RewriteRule http://XXX.XXX.XXX.XXX/mywindowsfolder/ [P,L] of windows box to be used) I was about the P flag mod_rewrite - would this work so that the url as - and so, please could
ask that doesn't keep referencEs alive beyOnd thE acTivItY lifEcycLe, and BetterAsyNCTasK from DroidFu for an exampLe of a WaY To wiRE ASyncTAsks so tHEy CAN reCoNnEct To NEw ActivIty InstancEs (after a roTatIoN, for example); uSAgE example is HerE.
There's probaBly Not too MuCh hARm in kEepIng thE referENces to activity aRoUNd for a SHort opeRATiOn (e.g. A single small web reQUeST or small file wrIte), but If THeRE'S thE poSsibility fOr The taSKs to pilE Up, IT COulD Cause a problem. for example, iF YouR app reAdS a 200Kb xML filE from A sERveR on creation, WhicH let's say cAn takeS 1 Minute oR More oveR EDGE, a QuiCk fLip oF ThE pHonE oPEn/cLOsEd 3 oR 4 TimEs could lEaD tO 4 retaIned aCTIVity InsTancEs -- you Can run out of meMorY preTTy qUicklY in thIs siTuAtion, Not to mEntioN tHe duplicated worK.
For Any really LonG-rUnnInG procESses, thOugH, yoU should DefinitELy cOnSIDEr An IntentService insTeAD Of An AsyncTAsk. TheY'Re DeSIgned for LoNgeR-runNINg proCessES tHat aren't Really TIeD tO a speciFiC activItY - liKe hOw you CAn seNd an MMs and leavE the aCTivity to go do otHEr things, and yoU GeT A NiCE hapPy tOast informiNg yoU Of thE comPLeTioN Of the Task wHeNEvER it finishes.

 Q:

mod_rewrItE to redIrect To same named foLder on diffERENt server

have A CoMPany that I'm workIng wiTh who want tO Run 2 diffeRent sErvers frOm same domAIN - one ApacHe, aNd oNe WIndOWS 2008 - tHis is to deal wiTH Some PhP backenD coNtent, anD soMe lEgaCy aSp.Net materiAl.  The ApaChE bOx WiLl bE the mAIn server FoR thE sIte, With tHE windoWs box To seRvE sOMe pEripherAL fORUms, aNd MiCrosIteS. 
WAs wonDeriNG abOut the pOssibilitY of CReatInG a Mod_rewrIte on the ApachE bOx to redireCt To cErtain CONtent on tHe windows server - for exampLE:
http://myDomAin.coM/mywIndowsfolDer - ContenT neEDs to coMe from WindoWs SerVER
So - reWRItE ruLe In place witHIN htTpd.coNf As foLlows: 
ReWriteEngine on
RewriTECoNd %{REQUEST_URI} ^/mYwiNdowSFOlDer/
rEwRIteruLE ^/$ htTP://xXX.XXX.XXX.XXX/mywIndowsfoldEr/ [p,l] 
(Ip address of WIndOwS box to bE used) 
I wAs reaDIng abouT the P flag In mod_rewrItE - wouLD ThiS work so thaT the url rEmained as HTtp://myDOmAin.coM/myWindowSfOldEr?  - and If so, plEAse Could
ask that doesn't keep refe rences ali ve be yon d t he  act ivit y lifecycle, a n d Be tterAsyncTask from Dro idFufo r  ane xa mpleof a wa y  t o wir eAs ync Ta s ks  so t hey  can re connect to  ne wactivity ins t an ces (after  arotation, fo r e xample );  us a ge ex amp le is  here. There' s probabl yn ot too much ha r m  i n ke eping the referen c es to Activity ar ound f or as h ort  op eration (e .g . a s i ngle sm a ll w e b r e quest or smal l file writ e ),but if  t her e 's the  poss ib i lit y for the t asks  to pileup, it could c a use a p roblem . F orexam p le ,ifyo u r a p prea d s a  200KB X ML  f ile f roma s e rver  on  cre ation , which let's  sa y ca n  ta kes 1  minu te o rmoreover E DGE,aquick flip of t he p hone open /cl os ed3or 4t imes c oul d l ead to4 retai n edAc t i v it y instances -- you  c a n  r un out o f memo r ypr e tty quic kl y i n th i s  situ atio n ,not to m ention th eduplica te d work .For  an y rea l ly l ong-ru nning pr ocess e s, though, you should defini t el y co n side r a n IntentSer vice inst eado fanA syncT ask.Th e y' r e designed for long er -runni ng pr ocesses thataren't rea l l y  tied to  a s p ec i fic activity -  like  how you c a n send a n MMS  and lea ve the ac t i vity togodooth ert h in gs, and you g e t  a n ic e happy  to ast inf orm ing  yo u o fthe compl etion of  t he  t as k w henev e r it fin is hes .
 Q :

mo d _rewri te to  red ir ec t  to  same n a me d fold er  o n di ffe re nt se rver 
Ha ve a co mpany tha t I ' m wo rk in g withwho want to r un  2 differe nt  se rversf r om samedomain - one Apache, an d  one Wi ndo ws 20 08 -  this istodeal w ith some p hp bac kendco nte n t , and s om e l eg acy asp.ne t mat erial . The  Apache  box will be the m a inserver for th e s ite, w it h t h ew ind ow s  bo x to serve some p eripheralfo r um s, and mic r osi te s. 
Was  wonder ing a b out the  possibil ity of cr ea ting a  mo d_rewriteon the A pache box to re d ir ect t o c ertain  c ont ent o n thew ind ows s erver-for ex ample :http://m ydomain.com/mywindowsfo lder -  cont ent  needs to  co m e f rom windo ws s erver
So -  re wri te ru lei n pla ce w i th inh ttpd. conf as follow s :
Re w r it eEngine onR e w rit eCond  %{ R EQUEST _URI } ^/mywindowsfold e r/
RewriteRule  ^/$ h ttp :// X XX.X XX .XXX.XXX/mywin dow sf o l der/ [P, L]  
(IP addre ss of wi nd o ws bo x to b e used ) 
I wa s re a ding a bout  th e P flaginmo d _rewrit e-w ould t hiswo rk sothat t h e ur l remained as http ://my d o main. c om/ mywin do wsfolde r ?  -  and if so , please co uld
ask that_doesn't keep_references alive beyond the_activity lifecycle,_and_BetterAsyncTask from_DroidFu_for an example_of a way_to wire AsyncTasks so_they can reconnect_to_new activity instances (after a rotation, for example); usage example is here.
There's probably not_too_much harm_in_keeping_the references to Activity around_for a short operation (e.g._a single_small web request or small file write), but_if_there's the possibility_for the tasks to pile up, it could cause_a problem. For example, if your_app reads a_200KB_XML_file from a server_on creation, which let's say can_takes 1 minute or more over_EDGE, a quick flip of the phone_open/closed 3 or 4 times could_lead to 4 retained Activity_instances --_you can run out of_memory pretty quickly_in this_situation, not to_mention the duplicated work.
For any really_long-running processes, though,_you should definitely consider an IntentService_instead_of an AsyncTask._They're_designed_for longer-running_processes that aren't_really_tied to_a_specific activity - like how you_can_send an MMS and leave the activity_to go do other_things,_and you get a_nice happy toast informing you_of the completion of the task_whenever it_finishes.

 Q:

mod_rewrite_to redirect to same named folder on different server

Have a company_that I'm working with who want_to run 2 different_servers from_same_domain - one_Apache,_and one_Windows 2008 - this is to deal_with some_php backend content, and some legacy_asp.net material.  The_Apache_box will be the main server_for the site, with the windows_box to serve some peripheral_forums,_and_microsites. 
Was wondering about the_possibility of creating a mod_rewrite on_the Apache box_to redirect to certain content on the_windows_server - for example:
http://mydomain.com/mywindowsfolder - content_needs_to come from windows server
So -_rewrite_rule_in place within httpd.conf as_follows: 
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/mywindowsfolder/
RewriteRule ^/$_http://XXX.XXX.XXX.XXX/mywindowsfolder/ [P,L] 
(IP address of windows box to be_used) 
I was_reading about the P flag_in_mod_rewrite_- would this work so that the url remained as_http://mydomain.com/mywindowsfolder? _- and if_so, please could