Hi do anyone know how I fix his Please , Thanks
I am try to get textfile with same name and DeviceId and save it to my mobile
it save the name on my mobile = & PhoneId.GetDeviceId & .txt
not like = 000000000000000.txt
Regards
Sigster
This is in button in LoadLayout("getfile")
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
this is when form start to check if I have the file or not
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I am try to get textfile with same name and DeviceId and save it to my mobile
it save the name on my mobile = & PhoneId.GetDeviceId & .txt
not like = 000000000000000.txt
Regards
Sigster
This is in button in LoadLayout("getfile")
			
				B4X:
			
		
		
		   DownloadService.URL = "http://URL/" & PhoneId.GetDeviceId  & ".txt"
   DownloadService.Target = File.OpenOutput(File.DirDefaultExternal,"& PhoneId.GetDeviceId  & .txt", False)
   StartService(DownloadService)this is when form start to check if I have the file or not
			
				B4X:
			
		
		
		   If File.Exists(File.DirDefaultExternal,"& PhoneId.GetDeviceId  & .txt") Then
   
      ToastMessageShow("the file is on your Mobile", True)
   
         Else
         ToastMessageShow("No file", True)
                         
      RemoveViews
      Activity.LoadLayout("getfile")   
      
   End If 
				 
 
		 
 
		 
 
		 
 
		 
 
		