Italian Background

stefanobax

New Member
Salve gente vorrei porvi una domanda, è da poco che sto utilizzando questo fantastico Ide di sviluppo,siccome ho la necesità, che quando si avvi un App è premo il tasto "indietro", l'app che continua runnare in background non si fermi, ma continui a lavorare. Stavo girando per il forum è nella guida, c'e' scritto che bisogna inserire un "service module", inserendo il suddetto modulo, dopo aver fatto compila.

Il compilatore mi restituisce un sacco di errori:

B4X:
Compiling code.                         0.02
Compiling layouts code.                 0.00
Generating R file.                      0.00
Compiling generated Java code.          Error
B4A line: 117
End Sub
javac 1.7.0_06
src\test\packege\main.java:624: error: cannot find symbol
      return new Object[] {"Activity",_activity,"Server",_server,"Socket1",_socket1,"Socket2",_socket2,"tr",_tr,"AStream",_astream,"AStreamB",_astreamb,"sb",_sb,"state",_state,"EditText1",_edittext1,"buffertoread",_buffertoread,"Timer1",_timer1,"EditText2",_edittext2,"Panel1",_panel1,"test",Debug.moduleToString(test.packege.test.class)};
                                                                                                                                                                                                                                                                                                                                 ^
  symbol:   class packege
  location: class test
1 error

Da cosa può dipendere ? Se Elimino la classe creata, mi funziona :( Ovviamente nella classe non c'e' scritto NULLA O_O
 

genesi

Active Member
Licensed User
Longtime User
Stavo girando per il forum è nella guida, c'e' scritto che bisogna inserire un "service module"
Non sapevo di questo puoi dirmi dove lo dice nella guida ( o nel forum )?
grazie
io comunque uso questo codice
B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean 
   Dim Answ As Int 
   Dim Txt As String 

   If KeyCode = KeyCodes.KEYCODE_BACK Then' Checks if the KeyCode is BackKey 
      Txt = "Do you really want to quit the program ?" 
      Answ = Msgbox2 (Txt,"A T T E N T I O N","Yes","","No",Null) ' MessageBox 
      If Answ = DialogResponse.POSITIVE Then                 ' If return value is Yes then 
         Return False          ' Return = False  the Event will not be consumed 
      Else                     '                     we leave the program 
         Return True           ' Return = True       the Event will be consumed to avoid 
      End If                   '                     leaving the program 
   End If 
End Sub
 

arenaluigi

Well-Known Member
Licensed User
Longtime User
Probabilmente StefanoBax vuole uscire dall'applicazione a livello di utilizzo, ma vuole che la sua app continui a girare anche se l'utente spegen e poi riaccende il telefono.
Però questo c'è lo confermerà lui.:)
 
Top