title: What recorded audio format in iPhone supports and plays in android too
body: <p>As I am recording the audio from an iphone as follows:</p>
  
  <pre><code>//Setup the dictionary object with all the recording settings that this
              //Recording sessoin will use
              NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init];
              [recordSetting setValue :[NSNumber numberWithInt:kAudioFormatAppleIMA4] forKey:AVFormatIDKey];
              [recordSetting setValue:[NSNumber numberWithFloat:44100.0] forKey:AVSampleRateKey];
              [recordSetting setValue:[NSNumber numberWithInt: 2] forKey:AVNumberOfChannelsKey];
  
              //Now that we have our settings we are going to instanciate an instance of our recorder instance.
              //Generate a temp file for use by the recording.
              NSDate *now = [NSDate dateWithTimeIntervalSinceNow:0];
              NSString *caldate = [now description];
  
              recordedTmpFile = [[NSString stringWithFormat:@"%@/%@.caf", DOCUMENTS_FOLDER, caldate] retain];
              NSLog(@"Using File called: %@",recordedTmpFile);
              url = [NSURL fileURLWithPath:recordedTmpFile];
              error = nil;
              //Setup the recorder to use this file and record to it.
              recorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&amp;error];
  </code></pre>
  
  <p>But my problem is the application, I am developing is also developed for Android but using common server for both iPhone and android. When I publish the recorded audio from iPhone to the server and I tried to play that audio in Android, it showing alert as not supported file.</p>
  
  <p>Any help to which format should I record to play the audio in both iPhone and Android?</p>
  
  <p>Anyone's help will be deeply appreciated.</p>