Closed adamski68 closed 5 years ago
Yes, The sendMailWithOptions()
function takes an Array
of MessageAttachment
objects so you can have multiple message attachments.
var attachments:Array = [
new MessageAttachment( pathToImage1, "image/jpeg" ),
new MessageAttachment( pathToImage2, "image/jpeg" )
];
Message.service.sendMailWithOptions(
subject,
body,
email,
"",
"",
attachments
);
Thanks.
I am storing audio files (created by your audio recorder ANE) in the application storage directory. I then want to attach the files to the email message.
The number of files to attach can vary between 0 and 3, depending on the particular game.
What should be the syntax of the following statement be in this case:
new MessageAttachment( pathToImage1, "image/jpeg" )
?
The syntax is in the comment above, you'll just need the native path to the file you saved and then the mimeType, something like audio/mp4
Thanks.
I think I am missing something.
I am using this code to set the file location for the audio file:
recordedFileName = homeTeam + "" + awayTeam +""+ today_save.date + "-" + (months[today_save.month]) + newString;
var savefile:File = File.applicationStorageDirectory.resolvePath( recordedFileName );
var options:AudioRecorderOptions = new AudioRecorderOptions(); options.filename = savefile.nativePath; options.audioEncoding = AudioEncoder.AAC;
This is what I am using to populate the attachments array for the email:
var attachments: Array = [new MessageAttachment (File.applicationStorageDirectory.nativePath+ recordedFileName,"audio/mp4")];
I cannot see whether the file is being created, but it all seems to be running OK in the app.
Problem is there is no attachment (I am using gmail). Permissions are set correctly, manifest is updated…. But something is not right.
Suggestions?
Thanks, Adam
However I try to set the save path, the wav file is being saved in the root of the internal storage drive [/storage/emulated/0/]. Have tried pointing it at the ApplicationStorage and the documents directories but it does not make a difference. At least it is saving the file somewhere.
BUT when I come to try and attach the file through the new Attachment statement, it just will not have it. I have tried all the different ways of declaring the path that I can think of...
"/storage/emulated/0/"+file name resolvePath with a file object
and none of it works - the file simply will not attach, yet I can see that it exists.
Help.
Hello,
When can I expect some assistance on my latest message?
From: Michael notifications@github.com Sent: 29 August 2019 02:39 To: distriqt/ANE-Message ANE-Message@noreply.github.com Cc: adamski68 adent739@googlemail.com; Author author@noreply.github.com Subject: Re: [distriqt/ANE-Message] Multiple Attachments (#52)
The syntax is in the comment above, you'll just need the native path to the file you saved and then the mimeType, something like audio/mp4
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/distriqt/ANE-Message/issues/52?email_source=notifications&email_token=AINLPDNLCFGLDPLENXAQ7JTQG4SDHA5CNFSM4IQESD4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M6OJQ#issuecomment-525985574 , or mute the thread https://github.com/notifications/unsubscribe-auth/AINLPDKJJYVMOZAUZ25LX7LQG4SDHANCNFSM4IQESD4A . https://github.com/notifications/beacon/AINLPDMJVZK7USDHMCGZZHLQG4SDHA5CNFSM4IQESD4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M6OJQ.gif
You seem to be using the wrong path for the attachment,
You should use savefile.nativePath
.
File.applicationStorageDirectory.nativePath+ recordedFileName
will be missing a directory separator and probably fail.
If you are still having issues please post the logs from the device and we should be able to help further:
This is the first bit of the log, when the audio file should be created 09-04 08:14:27.439 370 4408 D AudioSpeechEnhanceInfo: IsBesRecTuningEnable()- 0 09-04 08:14:27.439 370 4408 D NVRAM : QueryFeatureSupportInfo(), feature support bit 0x1a090255 09-04 08:14:27.439 370 4408 D AudioSpeechEnhanceInfo: GetBesRecVMFileName(), mVMFileName=, VMFileName= 09-04 08:14:27.439 370 4408 D NVRAM : QueryFeatureSupportInfo(), feature support bit 0x1a090255 09-04 08:14:27.439 370 4408 D AudioSpeechEnhanceInfo: GetForceMagiASRState(), feature_support=1a090255, 0, mForceMagiASR=0 09-04 08:14:27.440 370 4408 D AudioSpeechEnhanceInfo: GetForceAECRecState(), mForceAECRec=0 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: -CheckBesRecordInfo() 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: checkOpenStreamSampleRate(), origin sampleRate 44100, kDefaultInputSourceSampleRate 48000. 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: set() done, sampleRate = 44100, num_channels = 2, buffer_size=3520 09-04 08:14:27.440 370 4408 D AudioSpeechEnhanceInfo: GetDebugStatus, mDebugflag=0 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: set() tempDebugflag = 0 09-04 08:14:27.440 370 4408 D AudioALSAStreamManager: -openInputStream(), in = 0xa624e000, status = 0x0, mStreamInVector.size() = 1 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: +setParameters(): input_source=1 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: setParameters() InputSource = 1 09-04 08:14:27.440 370 4408 D AudioALSAStreamIn: -setParameters(): input_source=1 09-04 08:14:27.440 370 4408 D MemoryHeapBase: memory fd=25 09-04 08:14:27.441 370 17648 I AudioFlinger_Threads: AudioFlinger's thread 0xa6403f00 ready to run 09-04 08:14:27.441 370 17648 D AudioALSAStreamIn: +standby() 09-04 08:14:27.441 370 17648 D AudioALSAStreamIn: -standby() 09-04 08:14:27.442 370 4408 V AudioPolicyService: AudioCommandThread() adding update audio port list 09-04 08:14:27.442 370 520 V AudioPolicyService: AudioCommandThread() processing update audio port list 09-04 08:14:27.444 370 17648 D AudioALSAStreamIn: +standby() 09-04 08:14:27.444 1062 8670 D AppOps : startOperation: allowing code 40 uid 1041 package audioserver 09-04 08:14:27.444 370 17648 D AudioALSAStreamIn: -standby() 09-04 08:14:27.446 370 370 D MemoryHeapBase: memory fd=27 09-04 08:14:27.446 370 370 D AudioFlinger: track(0xa766ff40): mIsOut 0, mFrameCount 3072, mSampleRate 44100, mFormat 1, mChannelCount 2, mTrackCount 38, thread 0xa6403f00, sessionId 401 09-04 08:14:27.447 377 903 D AudioRecord: openRecord_l: 0xa7ed4000, mCblk = 0xa5402000 09-04 08:14:27.447 377 903 W AudioRecord: Server adjusted notificationFrames from 1024 to 880 for frameCount 3072 09-04 08:14:27.448 377 903 I AudioSource: constructor, minFrameCount = 1764, frameCount = 512, bufCount = 4, mInitCheck = 0 09-04 08:14:27.450 377 17649 I MediaPlayerService: MediaPlayerService::getOMX 09-04 08:14:27.451 377 17649 I OMXClient: MuxOMX ctor 09-04 08:14:27.452 353 353 I OMXMaster: makeComponentInstance(OMX.google.aac.encoder) in mediacodec process 09-04 08:14:27.452 353 353 E SoftOMXPlugin: make component instance, need dlopen(libstagefright_soft_aacenc.so)! 09-04 08:14:27.457 377 17649 I MediaCodec: MediaCodec will operate in async mode 09-04 08:14:27.461 353 505 E OMXNodeInstance: setConfig(1610038:google.aac.encoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 09-04 08:14:27.461 377 17649 I ACodec : codec does not support config priority (err -2147483648) 09-04 08:14:27.462 353 353 E OMXNodeInstance: getParameter(1610038:google.aac.encoder, ??(0x7f200406)) ERROR: UnsupportedIndex(0x8000101a) 09-04 08:14:27.464 377 17649 D MemoryHeapBase: memory fd=27 09-04 08:14:27.466 377 17649 D MemoryHeapBase: memory fd=28 09-04 08:14:27.468 377 903 D StagefrightRecorder: [setupAudioEncoder] - 09-04 08:14:27.468 377 903 D StagefrightRecorder: [setupMPEG4orWEBMRecording] - 09-04 08:14:27.468 377 903 D MPEG4Writer: start ++ 09-04 08:14:27.468 377 903 W MPEG4Writer: MPEG4Writer:not set kKeyFrameRate 09-04 08:14:27.468 377 903 W MPEG4Writer: MPEG4Writer:not set kKeyWidth 09-04 08:14:27.468 377 903 W MPEG4Writer: MPEG4Writer:not set kKeyHeight 09-04 08:14:27.468 377 903 I MPEG4Writer: limits: 4294967295/0 bytes/us, bit rate: 32000 bps and the estimated moov size 3195 bytes 09-04 08:14:27.469 377 903 D MPEG4Writer: audio Track start,mStartTimeRealUs=16751173096 09-04 08:14:27.469 377 903 D MPEG4Writer: Start Audio MediaSource 09-04 08:14:27.469 377 17646 I MediaCodecSource: MediaCodecSource (audio) starting 09-04 08:14:27.471 377 17653 I AudioSource: start, call AudioRecord start+++,mStartTimeUs=16751173096 09-04 08:14:27.471 377 17653 D AudioRecord: start: 0xa7ed4000, sync event 0 trigger session 0 09-04 08:14:27.471 370 519 V AudioPolicyService: AudioCommandThread() processing create audio patch 09-04 08:14:27.472 370 17648 D AudioALSAHardware: id 0xb 09-04 08:14:27.472 370 17648 D AudioALSAHardware: mix.hw_module 0xa 09-04 08:14:27.472 370 17648 D AudioALSAHardware: mix.handle 0x36 09-04 08:14:27.472 370 17648 D AudioALSAHardware: mix.usecase.source 0x1 09-04 08:14:27.472 370 17648 D AudioALSAHardware: +routing createAudioPatch 80000004->Mixer Src 1 09-04 08:14:27.472 370 17648 D AudioALSAStreamManager: +setParameters(), IOport = 54, keyValuePairs = input_source=1;routing=-2147483644 09-04 08:14:27.472 370 17648 D AudioALSAStreamIn: +setParameters(): input_source=1;routing=-2147483644 09-04 08:14:27.473 370 17648 D AudioALSAStreamIn: setParameters() InputSource = 1 09-04 08:14:27.473 370 17648 D AudioALSAStreamManager: +routingInputDevice(), input_device: 0x80000004 => 0x80000004 09-04 08:14:27.473 370 17648 W AudioALSAStreamManager: -routingInputDevice(), input_device == current_input_device(0x80000004), return 09-04 08:14:27.473 370 17648 D AudioALSAStreamIn: -setParameters(): input_source=1;routing=-2147483644 09-04 08:14:27.474 370 370 V AudioPolicyService: AudioCommandThread() adding recording configuration update event 1, source 1 09-04 08:14:27.474 370 520 V AudioPolicyService: AudioCommandThread() processing recording configuration update 09-04 08:14:27.475 370 17648 D AudioALSAStreamIn: open() 09-04 08:14:27.475 377 17653 D AudioRecord: return status 0 09-04 08:14:27.475 370 17648 D AudioALSAStreamManager: +createCaptureHandler(), mAudioMode = 0, input_source = 1, input_device = 0x80000004, mBypassDualMICProcessUL=1, sample_rate=44100 09-04 08:14:27.475 377 17653 I AudioSource: start, call AudioRecord start ---,err=0 09-04 08:14:27.475 370 17648 D NVRAM : QueryFeatureSupportInfo(), feature support bit 0x1a090255 09-04 08:14:27.475 370 17648 D AudioALSAStreamManager: -EnableBesRecord(), 1 09-04 08:14:27.475 370 17648 D AudioALSACaptureHandlerBase: AudioALSACaptureHandlerBase() 09-04 08:14:27.475 370 17648 D AudioALSACaptureHandlerNormal: AudioALSACaptureHandlerNormal() 09-04 08:14:27.475 370 17648 D AudioALSACaptureHandlerNormal: init() 09-04 08:14:27.475 370 17648 I AudioALSAStreamManager: Not Hotword Record,Force Close VOW 09-04 08:14:27.475 370 17648 D AudioALSAStreamManager: -createCaptureHandler(), mCaptureHandlerVector.size() = 1 09-04 08:14:27.475 370 17648 D AudioALSACaptureHandlerNormal: +open(), input_device = 0x80000004, input_source = 0x1, sample_rate=44100, num_channels=2 09-04 08:14:27.475 370 17648 D AudioALSACaptureDataClientAurisysNormal: AudioALSACaptureDataClientAurisysNormal(+) 09-04 08:14:27.476 377 17646 I MediaCodecSource: MediaCodecSource (audio) started 09-04 08:14:27.476 370 17648 D AudioALSACaptureDataProviderBase: configStreamAttribute(), audio_mode: 0 => 0, input_device: 0x80000004 => 0x80000004, flag: 0x0 => 0x0, input_source: 1->1 09-04 08:14:27.476 370 17648 D AudioALSACaptureDataProviderBase: attach(+), 0xa58df000, mCaptureDataClientVector.size()=0, Identity=0xa720e3c0 09-04 08:14:27.476 377 903 D MPEG4Writer: Start Audio MediaSource finish, err=0 09-04 08:14:27.476 370 17648 D AudioALSACaptureDataProviderNormal: open(+) 09-04 08:14:27.476 370 17648 D AudioALSADeviceParser: compare success, pcmIndex = 1, stringpair = MultiMedia1_Capture 09-04 08:14:27.476 370 17648 D AudioALSACaptureDataProviderNormal: audiomode=0, cardindex = 0, pcmindex = 1 09-04 08:14:27.476 377 903 D MPEG4Writer: start -- 09-04 08:14:27.476 377 17654 D MPEG4Writer: Audio mStszTableEntries->count()=0, mDone=0 09-04 08:14:27.477 377 903 D StagefrightRecorder: [start] - status=0 09-04 08:14:27.477 370 17648 D AudioALSACaptureDataProviderNormal: buffersizemax: 32768 09-04 08:14:27.477 370 17648 D AudioSpeechEnhanceInfo: GetHifiRecord, mHiFiRecordEnable=0 09-04 08:14:27.477 370 17648 D AudioALSACaptureDataProviderNormal: bHifiRecord: 0 09-04 08:14:27.477 370 17648 D AudioSpeechEnhanceInfo: GetDebugStatus, mDebugflag=0 09-04 08:14:27.477 370 17648 D AudioALSACaptureDataProviderNormal: btempDebug: 0 09-04 08:14:27.478 370 17648 D AudioALSACaptureDataProviderBase: HasLowLatencyCapture(), bRet=0 09-04 08:14:27.478 370 17648 D AudioALSACaptureDataProviderNormal: pcm format: 1, channels: 1, rate: 48000, period_size: 960, period_count: 4 09-04 08:14:27.478 370 17648 D AudioALSACaptureDataProviderNormal: latency: 20, kReadBufferSize: 3840, mCaptureDropSize: 0 09-04 08:14:27.478 370 17648 D AudioALSADeviceParser: compare success, pcmIndex = 1, stringpair = MultiMedia1_Capture 09-04 08:14:27.479 370 17648 D AudioALSACaptureDataProviderBase: enablePimcDevice(+), enable=1 09-04 08:14:27.479 370 17648 D AudioALSAHardwareResourceManager: +startInputDevice(), new_device = 0x80000004, mInputDevice = 0x0, mStartInputDeviceCount = 0, mMicInverse=0 09-04 08:14:27.479 370 17648 D AudioALSAHardwareResourceManager: setMIC1Mode(), isphonemic 0, micmode 2 09-04 08:14:27.479 370 17648 D AudioALSAHardwareResourceManager: setMIC2Mode(), isphonemic 0, micmode 2 09-04 08:14:27.479 370 17648 D AudioALSAHardwareResourceManager: -startInputDevice(), mInputDevice = 0x80000004, mStartInputDeviceCount = 1 09-04 08:14:27.480 370 17648 D AudioALSACaptureDataProviderNormal: open(-) 09-04 08:14:27.480 370 17648 D AudioALSACaptureDataProviderBase: attach(-), size=1 09-04 08:14:27.480 370 17648 D AudioALSACaptureDataClientAurisysNormal: mLatency 20, mRawDataPeriodBufSize 3840, mProcessedDataPeriodBufSize 3528, mEchoRefDataPeriodBufSize 0 09-04 08:14:27.480 370 17648 D AudioMTKGainController: +SetCaptureGain(), mode=0, source=1, input device=0x80000004, output device=0x2 09-04 08:14:27.480 370 17648 D NVRAM : QueryFeatureSupportInfo(), feature support bit 0x1a090255 09-04 08:14:27.480 370 17648 D SpeechParamParser: GetSpeechParamSupport(), SPH_PARAM_SV = 0 09-04 08:14:27.480 370 17648 D AudioALSAStreamManager: GetSpeechParamEnable() NOT Supported! 09-04 08:14:27.480 370 17648 D : IsAudioSupportFeature AUDIO_SUPPORT_DMIC bSupportFlg[0] 09-04 08:14:27.480 370 17648 D AudioMTKGainController: ApplyMicGain(), _mic_mode = 0, _gain_device = 2, mode = 0, micgain = 34, mULTotalGain = 208, mBand 0, mNetwork 0 09-04 08:14:27.480 370 17648 D AudioMTKGainController: SetAdcPga1 = 4 09-04 08:14:27.481 370 17648 D AudioMTKGainController: SetAdcPga2 = 4 09-04 08:14:27.481 370 17648 D AudioALSACaptureDataClientAurisysNormal: CreateAurisysLibManager(+), voip: 0, low_latency: 0, aec: 0, input_source: 1, flag: 0x0 09-04 08:14:27.481 370 17648 D aurisys_lib_manager: new_aurisys_lib_manager(+), aurisys_scenario = 3 09-04 08:14:27.481 370 17648 D aurisys_lib_handler: aurisys_create_lib_handler_list_xlink(), name mtk_speech_enh, new_lib_handler 0xa624e1c0 09-04 08:14:27.481 370 17648 D AudioSampleRate: audio_sample_rate_get_match_rate(), masks 0x108, rate 48000, mask 0x100 09-04 08:14:27.481 370 17648 D aurisys_utility: get_dedicated_format_from_mask(), masks 0x2 and the_audio_format 4 not match!! use 1 09-04 08:14:27.481 370 17648 D aurisys_utility: lib, working fs: 48000, fmt: 0x1, frame = 20, b_interleave = 0, num_ul_ref_buf_array = 0, num_dl_ref_buf_array = 0 09-04 08:14:27.481 370 17648 D aurisys_utility: ul in[type:0], ch: 1, ch_mask: 0x0, buf fs: 48000, read data fs: 48000, fmt: 0x1 09-04 08:14:27.481 370 17648 D aurisys_utility: ul out[type:1], ch: 1, ch_mask: 0x0, buf fs: 48000, read data fs: 48000, fmt: 0x1 09-04 08:14:27.482 370 17648 D aurisys_lib_manager: UL gain set to mtk_speech_enh 0xa624e1c0 09-04 08:14:27.482 370 17648 D aurisys_lib_manager: new_aurisys_lib_manager(-), manager 0xa58ef0a0, num_uplink_library_hanlder 1, num_downlink_library_hanlder 0 09-04 08:14:27.482 370 17648 D aurisys_utility: input dev: 0x80000004, fmt = 0x4, fs: 48000, max fs: 48000, ch: 1, max ch: 1, ch maks: 0x10, hw_info_mask: 0x0 09-04 08:14:27.482 370 17648 D aurisys_utility: output dev: 0x2, fmt = 0x0, fs: 0, max fs: 48000, ch: 0, max ch: 2, ch maks: 0x0, hw_info_mask: 0x0 09-04 08:14:27.482 370 17648 D aurisys_utility: task_scene: 3, audio_mode: 0, input_source: 1, enhancement_feature_mask: 0x0 09-04 08:14:27.483 370 17648 D aurisys_lib_handler: product_info.p_string = vendor=mediatek,model=k97v1_64_op02_lwg_ss_dsp_mp3,device=k97v1_64 09-04 08:14:27.483 370 17648 D aurisys_lib_handler: file_path.p_string = /vendor/etc/aurisys_param/Speech_AudioParam.xml, enhancement_mode = 0 09-04 08:14:27.483 370 17648 D aurisys_lib_handler: working_buf->memory_size = 229760, retval = 0 09-04 08:14:27.483 370 17656 D AudioALSACaptureDataProviderNormal: +readThread(), pid: 370, tid: 17656, kReadBufferSize=0xf00, open_index=4, UPLINK_SET_AMICDCC_BUFFER_TIME_MS = 80, counter=1 09-04 08:14:27.484 370 17648 D aurisys_lib_handler: arsi_create_handler, arsi_handler = 0xa6483800, retval = 0 09-04 08:14:27.484 370 17648 D aurisys_lib_manager: UL handler 0xa624e1c0 09-04 08:14:27.485 370 17648 D audio_pool_buf_handler: audio_pool_buf_formatter_dump_info(), sample_rate: 48000 => 48000, num_channels: 1 => 1, audio_format: 0x4 => 0x1, interleave: 1 => 0, frame: 0 => 20 09-04 08:14:27.485 370 17648 D audio_pool_buf_handler: =>bli_src_init(), sample_rate: 48000 => 48000, num_channels: 1 => 1, audio_format: 0x4, 0x1, SRC_PCM_FORMAT = 2, src buf size = 270336 09-04 08:14:27.485 370 17648 D MtkAudioSrcInC: InitMtkAudioSrcInC 09-04 08:14:27.486 370 17648 D audio_pool_buf_handler: =>bit_convert_init(), audio_format: 0x4 => 0x1, bcv_pcm_format = 0x1, bit_convert = 0xa63de190, bit_convert_out_buf = 0xa6344380, buf size = 135168 09-04 08:14:27.486 370 17648 D aurisys_lib_manager: UL out 09-04 08:14:27.486 370 17648 D audio_pool_buf_handler: audio_pool_buf_formatter_dump_info(), sample_rate: 48000 => 44100, num_channels: 1 => 2, audio_format: 0x1 => 0x1, interleave: 0 => 1, frame: 20 => 0 09-04 08:14:27.486 370 17648 D audio_pool_buf_handler: =>bli_src_init(), sample_rate: 48000 => 44100, num_channels: 1 => 2, audio_format: 0x1, 0x1, SRC_PCM_FORMAT = 0, src buf size = 496768 09-04 08:14:27.486 370 17648 D MtkAudioSrcInC: InitMtkAudioSrcInC 09-04 08:14:27.487 370 17648 D aurisys_lib_handler: mtk_speech_enh set ul_analog_gain_ref_only 24, ul_digital_gain 14, retval 0 09-04 08:14:27.487 370 17648 D AudioALSACaptureDataClientAurisysNormal: CreateAurisysLibManager(-), mAurisysScenario: 3, mAurisysLibManager: 0xa58ef0a0 09-04 08:14:27.487 370 17648 D AudioPreProcess: AudioPreProcess()+ 09-04 08:14:27.487 370 17648 D AudioPreProcess: AudioPreProcess()- 09-04 08:14:27.488 370 17648 D AudioALSACaptureDataClientAurisysNormal: AudioALSACaptureDataClientAurisysNormal(-), drop_ms = 60 09-04 08:14:27.488 370 17648 D AudioVoiceUIDL: [SetUplinkStartTime] mULtime sec 0 nsec 0 09-04 08:14:27.488 370 17648 D AudioALSACaptureHandlerNormal: -open() 09-04 08:14:27.488 370 17657 D AudioALSACaptureDataClientAurisysNormal: thread processThread_370_17657 created. setpriority ANDROID_PRIORITY_AUDIO done 09-04 08:14:27.502 370 17657 D MtkAudioSrcInC: OutputSampleCount 3452 => 3528 09-04 08:14:27.563 370 17648 D AudioVoiceUIDL: [SetUplinkStartTime] mULtime sec 16751 nsec 217700690 09-04 08:14:27.563 377 17647 D AudioSource: dataCallback, first frame mInitialReadTimeUs =16751199034, mStartTimeUs = 16751173096 09-04 08:14:27.563 377 17647 D AudioSource: dataCallback, the revised mStartTimeUs =25938 09-04 08:14:27.563 377 17647 D AudioSource: mFirstGetTimeUs(16751265394) 09-04 08:14:27.563 377 17647 D AudioSource: queueInputBuffer_l,first fram kKeyAnchorTime =25938 09-04 08:14:27.585 377 17654 I MPEG4Writer: setStartTimestampUs: 25938 09-04 08:14:27.585 377 17654 I MPEG4Writer: Earliest track starting time: 25938 09-04 08:14:27.585 377 17654 D MPEG4Writer: Audio mStartTimestampUs=25938us 09-04 08:14:28.554 325 325 I wmt_launcher: fw log ctrl flag has been set 09-04 08:14:28.555 325 325 I wmt_launcher: fw dynamic ctrl flag has been set 09-04 08:14:28.625 377 17654 D MPEG4Writer: A bufferChunk 09-04 08:14:29.644 377 17654 D MPEG4Writer: A bufferChunk 09-04 08:14:30.264 1062 1234 I PerfService: PerfServiceNative_boostEnableAsync:6 09-04 08:14:30.266 1573 1573 I perfservd: 0: set freq: -1 702000 09-04 08:14:30.276 333 1118 I BufferQueueProducer: SurfaceView - air.com.sportsofficialsolutions.sosREFhockey/air.com.sportsofficialsolutions.sosREFhockey.AppEntry queueBuffer: fps=1.96 dur=3059.19 max=2781.95 min=8.58 09-04 08:14:30.295 333 333 I DisplayDevice: [Built-in Screen (type:0)] fps:1.956900,dur:3066.07,max:2798.01,min:16.18 09-04 08:14:30.423 1062 1234 I PerfService: PerfServiceNative_boostDisableAsync:6 09-04 08:14:30.424 1573 1573 I perfservd: 0: set freq: -1 1001000 09-04 08:14:30.432 17600 17600 D com.distriqt.AudioRecorder: AudioRecorderController::stop() 09-04 08:14:30.433 377 903 D StagefrightRecorder: [stop] stop 09-04 08:14:30.433 377 903 D MPEG4Writer: reset ++ 09-04 08:14:30.433 377 903 D MPEG4Writer: Audio track source stopping 09-04 08:14:30.433 377 17646 I MediaCodecSource: encoder (audio) stopping 09-04 08:14:30.433 377 17646 D MediaCodecSource: queued buffers when stop(0) 09-04 08:14:30.459 377 17653 D MediaCodecSource: puller (audio) posting EOS 09-04 08:14:30.459 377 17646 D MediaCodecSource: puller (audio) reached EOS 09-04 08:14:30.459 377 17654 D MPEG4Writer: A bufferChunk 09-04 08:14:30.459 377 17649 D ACodec : [OMX.google.aac.encoder] Executing::kWhatShutdown keepComponentAllocated 0 09-04 08:14:30.459 377 17654 I MPEG4Writer: Received total/0-length (124/0) buffers and encoded 123 frames. - Audio 09-04 08:14:30.459 377 17654 I MPEG4Writer: Audio track drift time: 0 us 09-04 08:14:30.462 377 17649 I ACodec : freeBuffersOnPort portIndex 0 09-04 08:14:30.462 377 17649 D MemoryHeapBase: memory- fd=27 09-04 08:14:30.464 377 17649 I ACodec : freeBuffersOnPort portIndex 1 09-04 08:14:30.465 353 1001 E SoftOMXPlugin: destroy component instance, need dlclose()! 09-04 08:14:30.466 377 17649 D ResourceManagerService: ResourceManagerService:removeResource 09-04 08:14:30.466 377 17646 D ResourceManagerService: ResourceManagerService:removeResource 09-04 08:14:30.466 377 17646 D MemoryHeapBase: memory- fd=28 09-04 08:14:30.467 377 17646 I MediaCodecSource: encoder (audio) stopped 09-04 08:14:30.467 377 17653 I AudioSource: reset 09-04 08:14:30.467 377 17653 I AudioSource: reset, call AudioRecord stop+++ 09-04 08:14:30.467 377 17653 D AudioRecord: stop: 0xa7ed4000 09-04 08:14:30.467 377 17653 D AudioTrackShared: this(0xa7eb0320), mCblk(0xa5402000), front(128480), mIsOut 0, interrupt() FUTEX_WAKE 09-04 08:14:30.467 377 17647 D AudioTrackShared: obtainBuffer() interrupted by client 09-04 08:14:30.482 370 17648 D AudioALSAStreamIn: +standby() 09-04 08:14:30.482 370 17648 D AudioALSAStreamIn: standby(), keep the mStandbyFrameCount = 132300, ret = 0 09-04 08:14:30.482 370 17648 D AudioALSAStreamIn: close() 09-04 08:14:30.482 370 17648 D AudioALSACaptureHandlerNormal: +close() 09-04 08:14:30.501 370 17648 D AudioALSACaptureDataClientAurisysNormal: pthread_join hProcessThread done 09-04 08:14:30.501 370 17648 D AudioALSACaptureDataProviderBase: detach(+), 0xa58df000, mCaptureDataClientVector.size()=1, Identity=0xa720e3c0 09-04 08:14:30.501 370 17648 D AudioALSACaptureDataProviderNormal: close() 09-04 08:14:30.520 370 17656 D AudioALSACaptureDataProviderNormal: -readThread(), pid: 370, tid: 17656 09-04 08:14:30.520 370 17648 D AudioALSACaptureDataProviderNormal: pthread_join hReadThread done 09-04 08:14:30.521 370 17648 D AudioALSACaptureDataProviderNormal: -close() 09-04 08:14:30.521 370 17648 D AudioALSACaptureDataProviderBase: enablePimcDevice(+), enable=0 09-04 08:14:30.521 370 17648 D AudioALSAHardwareResourceManager: +stopInputDevice(), mInputDevice = 0x80000004, stop_device = 0x80000004, mStartInputDeviceCount = 1, mMicInverse=0 09-04 08:14:30.521 370 17648 D AudioALSAHardwareResourceManager: setMIC1Mode(), isphonemic 0, micmode 2 09-04 08:14:30.522 370 17648 D AudioALSAHardwareResourceManager: -stopInputDevice(), mInputDevice = 0x0, mStartInputDeviceCount = 0 09-04 08:14:30.522 370 17648 D AudioALSACaptureDataProviderBase: detach(-), size=0 09-04 08:14:30.522 370 17648 D AudioALSACaptureDataClientAurisysNormal: mCaptureDataProvider detach done 09-04 08:14:30.522 370 17648 D AudioPreProcess: ~AudioPreProcess()+ 09-04 08:14:30.522 370 17648 D AudioPreProcess: ~AudioPreProcess()- 09-04 08:14:30.522 370 17648 D AudioALSACaptureDataClientAurisysNormal: DestroyAurisysLibManager(+), mAurisysLibManager = 0xa58ef0a0 09-04 08:14:30.522 370 17648 D aurisys_lib_handler: arsi_destroy_handler, arsi_handler = 0xa6483800, retval = 0 09-04 08:14:30.522 370 17648 D aurisys_lib_manager: delete_aurisys_lib_manager(+), manager 0xa58ef0a0 09-04 08:14:30.523 370 17648 D aurisys_lib_manager: num_uplink_library_hanlder 1 09-04 08:14:30.523 370 17648 D aurisys_lib_manager: delete_aurisys_lib_manager(-), manager 0x0 09-04 08:14:30.523 370 17648 D AudioALSACaptureDataClientAurisysNormal: DestroyAurisysLibManager(-) 09-04 08:14:30.523 370 17648 D AudioVoiceUIDL: [SetUplinkStartTime] mULtime sec 0 nsec 0 09-04 08:14:30.523 370 17648 D AudioALSACaptureHandlerNormal: -close() 09-04 08:14:30.523 370 17648 D AudioALSAStreamManager: +destroyCaptureHandler(), mode = 0, pCaptureHandler = 0xa720b320 09-04 08:14:30.523 370 17648 D AudioALSACaptureHandlerNormal: +~AudioALSACaptureHandlerNormal() 09-04 08:14:30.523 370 17648 D AudioALSACaptureHandlerNormal: ~AudioALSACaptureHandlerNormal() 09-04 08:14:30.523 370 17648 D AudioALSACaptureHandlerBase: ~AudioALSACaptureHandlerBase() 09-04 08:14:30.523 370 17648 D AudioALSAStreamManager: -destroyCaptureHandler(), mCaptureHandlerVector.size() = 0 09-04 08:14:30.523 370 17648 D AudioALSAStreamIn: -standby() 09-04 08:14:30.523 370 999 V AudioPolicyService: AudioCommandThread() adding recording configuration update event 0, source 1 09-04 08:14:30.523 370 999 V AudioPolicyService: AudioCommandThread() adding release patch delay 0 09-04 08:14:30.523 370 520 V AudioPolicyService: AudioCommandThread() processing recording configuration update 09-04 08:14:30.524 370 519 V AudioPolicyService: AudioCommandThread() processing release audio patch 09-04 08:14:30.524 370 17648 D AudioALSAHardware: -releaseAudioPatch handle [0x6] 09-04 08:14:30.524 370 17648 D AudioALSAHardware: +routing releaseAudioPatch 80000004->Mixer 09-04 08:14:30.524 370 17648 D AudioALSAStreamManager: +setParameters(), IOport = 54, keyValuePairs = routing=0 09-04 08:14:30.524 370 17648 D AudioALSAStreamIn: +setParameters(): routing=0 09-04 08:14:30.524 370 17648 D AudioALSAStreamManager: +routingInputDevice(), input_device: 0x80000004 => 0x0 09-04 08:14:30.524 370 17648 W AudioALSAStreamManager: -routingInputDevice(), input_device == AUDIO_DEVICE_NONE(0x0), return 09-04 08:14:30.524 370 17648 D AudioALSAStreamIn: -setParameters(): routing=0 09-04 08:14:30.525 370 17648 D AudioALSAHardware: handlecheck releaseAudioPatch remove handle [6] OK 09-04 08:14:30.525 370 17648 D AudioALSAHardware: -releaseAudioPatch handle [0x6] status [0] 09-04 08:14:30.526 377 17653 D AudioRecord: -stop 09-04 08:14:30.526 377 17653 I AudioSource: reset, call AudioRecord stop--- 09-04 08:14:30.526 377 903 D MPEG4Writer: Audio track source stopped 09-04 08:14:30.526 377 903 D MPEG4Writer: Stopping writer thread 09-04 08:14:30.526 377 17652 D MPEG4Writer: 0 chunks are written in the last batch 09-04 08:14:30.526 377 903 D MPEG4Writer: Writer thread stopped 09-04 08:14:30.526 377 903 D MPEG4Writer: writeMetaData ++ 09-04 08:14:30.527 377 903 D MPEG4Writer: Audio track writeTrackHeader -- 09-04 08:14:30.527 377 903 D MPEG4Writer: writeMetaData -- 09-04 08:14:30.527 377 903 D MPEG4FileCacheWriter: [close] Make sure write file to sd card complete before close 09-04 08:14:30.527 377 903 I MPEG4FileCacheWriter: [close] MPEG4FileCacheWriter::close,total_time= 0,max_time= 0,times_of_write= 0 09-04 08:14:30.528 377 903 D MPEG4Writer: reset -- 09-04 08:14:30.528 377 903 D MPEG4Writer: ~MPEG4Writer 09-04 08:14:30.528 377 903 D MPEG4Writer: reset ++ 09-04 08:14:30.528 377 903 D MPEG4Writer: audio ~Track done 09-04 08:14:30.528 377 903 I MPEG4FileCacheWriter: [close] MPEG4FileCacheWriter::close,total_time= 0,max_time= 0,times_of_write= 0 09-04 08:14:30.528 377 903 D MPEG4Writer: mWritedChunks.size=3 09-04 08:14:30.528 377 903 D MPEG4Writer: ~MPEG4Writer done 09-04 08:14:30.528 377 903 D AudioSystem: +setParameters(): LRChannelSwitch=0; 09-04 08:14:30.528 370 370 D AudioALSAHardware: +setParameters(): LRChannelSwitch=0; 09-04 08:14:30.528 370 370 D AudioALSAHardware: keyLR_ChannelSwitch=0 09-04 08:14:30.528 370 370 D AudioALSAHardwareResourceManager: setMicInverse(), bMicInverse = 0 09-04 08:14:30.528 370 370 D AudioALSAHardwareResourceManager: setMicInverse(), not support 09-04 08:14:30.529 370 370 D AudioALSAHardware: -setParameters(): LRChannelSwitch=0; 09-04 08:14:30.529 377 903 D AudioSystem: -setParameters(): LRChannelSwitch=0; 09-04 08:14:30.529 377 903 I AudioSource: ~AudioSource destructor 09-04 08:14:30.529 377 903 D AudioRecord: stop: 0xa7ed4000 09-04 08:14:30.529 377 903 D AudioTrackShared: this(0xa7eb0320), mCblk(0xa5402000), front(128480), mIsOut 0, interrupt() FUTEX_WAKE 09-04 08:14:30.531 377 903 D StagefrightRecorder: stop done 09-04 08:14:30.531 377 903 D StagefrightRecorder: [stop] stop 09-04 08:14:30.532 1062 3376 D AppOps : startOperation: allowing code 40 uid 1041 package audioserver 09-04 08:14:30.532 377 903 D AudioSystem: +setParameters(): LRChannelSwitch=0; 09-04 08:14:30.532 370 370 D AudioALSAHardware: +setParameters(): LRChannelSwitch=0; 09-04 08:14:30.532 370 370 D AudioALSAHardware: keyLR_ChannelSwitch=0 09-04 08:14:30.532 370 370 D AudioALSAHardwareResourceManager: setMicInverse(), bMicInverse = 0 09-04 08:14:30.533 370 370 D AudioALSAHardwareResourceManager: setMicInverse(), not support 09-04 08:14:30.533 370 370 D AudioALSAHardware: -setParameters(): LRChannelSwitch=0; 09-04 08:14:30.533 377 903 D AudioSystem: -setParameters(): LRChannelSwitch=0; 09-04 08:14:30.533 377 903 D StagefrightRecorder: stop done 09-04 08:14:30.533 370 999 D AudioALSAStreamManager: +closeInputStream(), in = 0xa624e000, size()=1 09-04 08:14:30.533 377 903 D StagefrightRecorder: [~StagefrightRecorder] - 09-04 08:14:30.533 370 999 D AudioALSAStreamIn: ~AudioALSAStreamIn() 09-04 08:14:30.533 370 999 D AudioSpeechEnhanceInfo: SetHifiRecord-, mHiFiRecordEnable=0 09-04 08:14:30.533 370 999 D AudioALSAStreamManager: -closeInputStream(), mStreamInVector.size() = 0 09-04 08:14:30.533 370 999 D MemoryHeapBase: memory- fd=25 09-04 08:14:30.534 370 999 V AudioPolicyService: AudioCommandThread() adding update audio port list 09-04 08:14:30.534 370 520 V AudioPolicyService: AudioCommandThread() processing update audio port list 09-04 08:14:30.534 370 999 D MemoryHeapBase: memory- fd=27 09-04 08:14:30.540 17600 17600 W MediaRecorder: mediarecorder went away with unhandled events 09-04 08:14:30.555 325 325 I wmt_launcher: fw log ctrl flag has been set 09-04 08:14:30.555 325 325 I wmt_launcher: fw dynamic ctrl flag has been set 09-04 08:14:30.674 358 358 I thermal_repeater: oh, queryMdThermalInfo (0)No such file or directory 09-04 08:14:30.687 358 358 I thermal_repeater: [recvMdThermalInfo] ret=37, strLen=127, 2, 32767, -127, 20821, 32767, -20554 09-04 08:14:32.186 1062 1234 I PerfService: PerfServiceNative_boostEnableAsync:6 09-04 08:14:32.188 1573 1573 I perfservd: 0: set freq: -1 702000 09-04 08:14:32.198 333 4399 I BufferQueueProducer: SurfaceView - air.com.sportsofficialsolutions.sosREFhockey/air.com.sportsofficialsolutions.sosREFhockey.AppEntry queueBuffer: fps=3.12 dur=1922.82 max=1658.41 min=7.75 09-04 08:14:32.213 333 333 I DisplayDevice: [Built-in Screen (type:0)] fps:3.127185,dur:1918.66,max:1659.19,min:18.41 09-04 08:14:32.380 1062 1234 I PerfService: PerfServiceNative_boostDisableAsync:6 09-04 08:14:32.382 1573 1573 I perfservd: 0: set freq: -1 1001000 09-04 08:14:32.557 325 325 I wmt_launcher: fw log ctrl flag has been set 09-04 08:14:32.557 325 325 I wmt_launcher: fw dynamic ctrl flag has been set
and this is the second bit when it is creating the email and adding the attachment
09-04 08:17:12.498 17866 17866 E ResourceType: Style contains key with bad entry: 0x0101056c
09-04 08:17:12.498 17866 17866 E ResourceType: Style contains key with bad entry: 0x0101056d
09-04 08:17:12.499 17866 17866 E ResourceType: Style contains key with bad entry: 0x0101056c
09-04 08:17:12.499 17866 17866 E ResourceType: Style contains key with bad entry: 0x0101056d
09-04 08:17:12.499 17866 17866 E ResourceType: Style contains key with bad entry: 0x0101056c
09-04 08:17:12.499 17866 17866 E ResourceType: Style contains key with bad entry: 0x0101056d
09-04 08:17:12.500 17866 17866 D WebView : WebView
C:\adb>
Thanks.
Can you make sure you post the entire log, I'm not seeing any of the Message ANE logs here.
Thanks. My bad... Some how the manifest had changed - not enough to throw an error, but enough to stop the attachment functionality working. Now fixed and all good.
Is it possible to attach multiple attachments to a single e-mail?
Thanks.