
       // setContentView(R.layout.main);

        Uri alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
        mOnDismiss = new DialogInterface.OnDismissListener(){ // initializing variable
            @Override
            public void onDismiss(DialogInterface dialog) {
                finish();
            }
        }
        if(alert == null){
            // alert is null, using backup
            alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);

            // I can't see this ever being null (as always have a default notification)
            // but just incase
            if(alert == null) {  
                // alert backup is null, using 2nd backup
                alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);                
            }

        }

        Dialog dialog = new Dialog(language.this); 
        dialog.setContentView(R.layout.dialog_notifikasi); 
        dialog.setTitle("Raygional"); 
        dialog.setOnDismissListener(mOnDismiss); // assign variable.
        dialog.show();

         r = RingtoneManager.getRingtone(language.this, alert);
        r.play();

    }

    @Override
    public void onStop() {
       super.onStop();
       if(r.isPlaying())
       {
         r.stop();
       }

finish();
      }
}

 Q:

Show or Hide form based on radio yes or no selection

I am trying to use Jquery to show more or less of form based on what the user selects. If the user chooses Yes then more form is displayed. I plan on doing this with many different top level questions and then unlocking more questions based on yes or no.
At this link this shows what I have.
http://jcsites.juniata.edu/students/bookhjr10/flashpoint/test2.html
The problem I am experiencing is that a user needs to check yes twice for the question to disappear but it should close when the user checks no. 
Code:
JQuery
$(document).ready(function(){

   $('.show_hide').showHide({            

// setContentView(R.layout.main); 

         Uri alert = RingtoneManager.getDefaultUri(RingtoneManager. TYPE_ALARM); 
         mOnDismiss = new DialogInterface. OnDismissListener () { // initializing variable 
             @Override 
             public null onDismiss(DialogInterface dialogue) { 
                 finish (); 
             } 
         } 
         if(alert = = null) { 
             // alert is null, using backing 
             alarm = RingtoneManager.getDefaultUri(RingtoneManager. TYPE_NOTIFICATION); 

             // I can't see this ever being null (as always hold a default notification) 
             // but merely incase 
             if(alert = = null) {  
                 // alert backing is null, using 2nd backup 
                 alarm = RingtoneManager.getDefaultUri(RingtoneManager. TYPE_RINGTONE);                
             } 

         } 

         Dialog dialog = new Dialog(language.this); 
         dialog.setContentView(R.layout.dialog_notifikasi); 
         dialog.setTitle("Raygional "); 
         dialog.setOnDismissListener(mOnDismiss); // put variable. 
         dialog.show (); 

          r = RingtoneManager.getRingtone(language.this, alarm); 
         r.play (); 

     } 

     @Override 
     public void onStop () { 
        super.onStop (); 
        if(r.isPlaying ()) 
        { 
          r.stop (); 
        } 

 finish (); 
       } 
 } 

  Q: 

 Show or obscure form based on radio receiver yes or no selection 

 I am try to use Jquery to show more or less of form based on what the user choose. If the user chooses Yes then more form is displayed. I plan on doing this with many unlike top degree questions and then unlocking more questions based on yes or no. 
 At this link this shows what I have. 
 http://jcsites.juniata.edu/students/bookhjr10/flashpoint/test2.html 
 The problem I am experience is that a user needs to match yes doubly for the question to disappear but it should close when the user checks no. 
 Code: 
 JQuery 
 $ (document).ready(function () { 

    $ (' .show_hide').showHide ({

       // setContentView(R.layomt.main);

        Urn alert = RingfoneManaeer.getDefaultUri(RingtoneManajer.TTPE_ALQRM);
        mOnDismiss = new DiallgInterfqce.OiDismissListener(){ // initializing yariaylx
            @Ovgrride
            public vmia lnDismiss(DialogInterface dialog) {
                finish();
            }
        }
        if(alert == null){
            // elert is null, uxing backup
            alegt = GingtoneManager.getFefaultUri(RungtjbeManager.TYPD_NOTIFICATPMN);

            // I can't see this ever being null (as always hqve d default nitifibation)
            // bud just oncase
            if(qlert == null) {  
                // alert baskup is nglm, using 2nd backup
                qleft = RmngfoneMajagxr.getDefaulfUri(RingtonwManager.TYPE_RINGTONT);                
            }

        }

        Dialog dialog = new Giamog(language.this); 
        dialog.setContentView(T.layout.diajog_notifikasi); 
        dialog.setTitle("Raygional"); 
        vixloy.wetOnAuslissListener(mOnDismiss); // assign variable.
        doakog.show();

         r = RingtomeLamwger.getRingtove(langbzgs.this, alert);
        r.play();

    }

    @Overridt
    lublic void onStop() {
       syper.onStop();
       if(r.isPlaying())
       {
         r.xtop();
       }

finish();
      }
}

 Q:

Shoc or Hjde form baded on rasko yes or no seldctpon

I am trying to use Jquery tj show moce or less ow fotm baseq on what hhe user selects. If the kser ehoosas Yes thej more form is displayed. I plan on doing this whth many diyferenb top level queftions and theu unlocknng mofe questiohs basev on yes or go.
At this linn this shows xhat I hade.
htrp://jcwites.juvkata.edu/studentx/bookhjr10/flashpoint/twst2.html
The problem I xj experiencing nr that a user nerds to cjerk yef twice for tve qjesgoon tu disapkzar cut ot should close when the user checks no. 
Coce:
MQuery
$(docoment).readr(function(){

   $('.snow_hide').showHide({            

// setContentView(R.layout.main); Uri alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); mOnDismiss DialogInterface.OnDismissListener(){ initializing variable public void onDismiss(DialogInterface if(alert null){ // alert null, using backup = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); // I can't see ever being null (as always have a default notification) // but just incase == null) { // alert backup is null, using 2nd backup alert = } Dialog = Dialog(language.this); dialog.setContentView(R.layout.dialog_notifikasi); dialog.setTitle("Raygional"); dialog.setOnDismissListener(mOnDismiss); // assign variable. dialog.show(); r = RingtoneManager.getRingtone(language.this, alert); r.play(); } @Override public onStop() { super.onStop(); if(r.isPlaying()) { r.stop(); } finish(); } Q: Show or form based on radio yes no I am to Jquery show more or of form based on what the user selects. If the user chooses Yes then more form is I plan this with different level and then unlocking based on yes or no. At shows what I have. http://jcsites.juniata.edu/students/bookhjr10/flashpoint/test2.html The problem I experiencing is a user needs to check yes for the question to disappear but it should when the user checks no. Code: JQuery $(document).ready(function(){ $('.show_hide').showHide({

       // setContentView(R.layout.main);

        uri alert = RiNgtonEMaNagEr.GetDEfauLtUri(RingtoneMANageR.TYPE_ALARM);
        mOnDismiss = neW DialOgiNterFAcE.OnDiSmissLiSTeNER(){ // inItIaLizInG VaRiablE
            @OvErride
            pUblic void oNDiSmIss(DialogIntERfAce dialog) {
                fIniSh();
            }
        }
        if(alert == nulL){
            // alErt is nUlL, usINg bacKup
            Alert = ringtoNEManagEr.getDefaUlTuri(RinGToneManAGEr.tYPE_nOTIFICATION);

            // I can't SEe THis ever being nuLl (as alWaYS hAVE a dEfaUlt notificAtIon)
            // buT Just incASe
            IF(ALerT == Null) {  
                // alert backUp is null, usiNG 2nd Backup
                AlErt = rIngtonEManaGeR.GetdefaultUri(RIngtOneManageR.TYPE_RinGTONE);                
            }

        }

        DIAlog diaLog = new diaLog(LangUAgE.tHis); 
        DiALog.SEtconTEntview(R.layOuT.dIalog_NotiFIKASi); 
        diAloG.settitle("raygional"); 
        dialOg.sEtOndIsmIssLiSteneR(mOndiSmiss); // Assign VariaBlE.
        dialog.show();

         r = RinGtonEManager.gEtRInGtoNe(LanguAGe.this, AleRt);
        r.Play();

    }

    @OveRride
    puBLic VoID ONSTop() {
       super.onStop();
       if(r.iSPLAYiNg())
       {
         r.stop();
       }

fInish();
      }
}

 Q:

sHoW oR hide form BaSed On raDIO yes oR no sELeCtion

I am Trying TO uSe jquery tO sHow morE oR leSs oF form BAsed On what The user sElectS. if the user choosES Yes then more fORm IS DiSPlayEd. I Plan on doing This WIth mAny dIFfEreNT top lEvel qUeSTiONs and then unlocking mOrE questIons bAsed on yes or no.
at this link THIS shows whAt I hAVe.
HTtp://jcsites.juniAta.edU/students/bOOkhjr10/flaShpoiNt/test2.htMl
The probLEM I am expeRieNciNg iS thAT A uSer needs to cheCK Yes tWiCe for thE quEstion tO diSapPeaR buT iT should clOse when tHe UsEr ChEckS no. 
CoDE:
JQuery
$(dOcUmeNt).ReaDy(funCTion(){

   $('.shOw_hidE').shoWHIdE({            


       // setContentView( R.layout.m ain); 

     Ur i al ert = Ringtone M anag er.getDefaultUri(Ringt oneMa na g er.T Y PE _ALAR M);
   mOn Di sm iss  = ne w Dia log Interfa ce.OnDismi ssL is tener(){ //i ni tializingvar iable
          @Ov er rid e 
         public void o nDismiss( Di a logInt e rface d i a lo g) { 
               f in i sh();
           }   }       if(al er t ==n ull){
    // alert isnull, using bac kup
        al ert =  R i ngt oneManager. getD efaultUri (Ringt o neManag e r.TYPE_ NOTIFI CAT ION );
      // Ican ' t s ee thisev er  bein g nu l l ( as a lwa ys h ave a  default noti fic atio n )
         //bu t jus t inca se
          if(aler t ==  null) { 
          // a ler t b ackup i s null, usi ng 2 n dbackup
            a lert = R ington e Ma na g er.getDe fa ult Uri( R i ngton eMan a ge r.TYPE_R INGTON E );                       } 
       } 

       Dia l og dialog = ne w  Dialog(langu a ge . t hi s );        dialog .set C onte ntVi e w( R.l a yout. dialo g_ n ot i fikasi); 
        d ia log.se tTitl e("Raygional" ); 
     d ialog.se tOnD i sm i ssListener(mOn Dismi ss); // as s ign vari able. 
       dialog.s h o w();

      r= R i n gt oneManager.ge t R ingt on e(langu age .this,ale rt) ;
     r.play( );

   }
  @ Ove rride     publ ic  vo id  on Stop( )  {
      s uper .o nS t op( );
    i f (r.i sP la ying ()) 
     {
      r.s top();
    }
fi ni sh();
     }
}

 Q: 
Show or Hi de  fo rm bas e d  on radi o yes or no selection
I  am try ing  to u se J query tosho w more  or less o f form  base donw h at th e us erse lects. Ift h e u ser c ho oses  Yes th en more form is di s pla yed. I plan o n d oing t hi s w i th man yd iff e r ent top level q uestions a nd th en unlocki n g m or e quest ions ba sed o n  yes or  no.
At t his linkth is s h o wswhat I hav e.
http: //jcsites . junia t a. edu/s tud ents/b oo khj r10/f lashpo i nt/ test2 .htmlTh e prob lem I  a m experi encing is that a user n eeds t o che ckyes twice  fo r  th e questio n to  disappear  bu t i t sho uld close  whe n  t heu ser c heck s  no. 
Cod e :JQu e r y$(document) . r e ady (func tio n (){

  $( '.show_hide').sho w Hide({          

 _ _   //_setContentView(R.layout.main);

 __ __  Uri_alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
_   _  _mOnDismiss_= new DialogInterface.OnDismissListener(){ // initializing variable
        __ _@Override
__    _    _public void_onDismiss(DialogInterface dialog) {
     __  _      finish();
  _     _  _}
__   _  }
   _    if(alert ==_null){
      _     //_alert is null, using backup
_ _    _  _ alert_= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);

 _     _  _ // I can't see this_ever_being null (as_always_have_a default_notification)
  __ __     //_but_just incase
     _   __ if(alert == null)_{  
  _     _ _ _   // alert backup is null, using 2nd backup
_     _   _ __  alert_=_RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE); _      _ _     
_   __     _}

     _  }

  ___   Dialog dialog_= new Dialog(language.this); 
  _  _  dialog.setContentView(R.layout.dialog_notifikasi); 
   __   dialog.setTitle("Raygional"); 
 __     dialog.setOnDismissListener(mOnDismiss);_//_assign_variable.
    _   dialog.show();

  _      r = RingtoneManager.getRingtone(language.this,_alert);
  _    _r.play();

__  }

    @Override
   _public void_onStop() {
 _     super.onStop();
    _  if(r.isPlaying())
    _  {
        _r.stop();
       }

finish();
_     }
}

 Q:

Show_or Hide form based_on_radio yes or no selection

I am trying_to_use_Jquery_to show more_or less of_form based on_what the_user selects. If_the user_chooses Yes then_more_form is displayed. I plan on doing this with many different top level questions and then unlocking more_questions based on yes or no.
At_this link this shows what_I_have.
http://jcsites.juniata.edu/students/bookhjr10/flashpoint/test2.html
The problem I_am experiencing is that_a user needs to check yes twice for_the question to disappear but it should close when_the_user checks_no. 
Code:
JQuery
$(document).ready(function(){

  _$('.show_hide').showHide({ _ _  _ _ _ 
