Guys,
Just want to ask how to delete the file that i receive using bluetooth...
for example... somebody send me a file name MyApp.sis... then automatically I will delete that file coz I don't want it... Can you guide me on how to do this...Thanks
Guys,
Just want to ask how to delete the file that i receive using bluetooth...
for example... somebody send me a file name MyApp.sis... then automatically I will delete that file coz I don't want it... Can you guide me on how to do this...Thanks
Hi xersmith,Originally Posted by xersmith
Through MTM you can delete bluetooth sent file....
first you can get notification change in inbox by
HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1,TAny* aArg2, TAny* /*aArg3*/) this function...
and whenever you got any change in inbox then you compare
create object of this class CMsvEntry.......and then compare
iMsvEntry->Entry().iMtm == KUidMsgTypeBT
msgs.lib // main messaging library
#include <btmsgtypeuid.h> // Series60
TUid::Uid(KUidMsgTypeBT)
Then
iMsvEntry->DeleteL(//new entry id);
I'hope It'll help you..
Or, you can of course just refuse the (unsolicited) Bluetooth connection alltogether before the file ends up in the Inbox in the first place.
Or, you can keep your phone's Bluetooth in the hidden state, so that arbitrary people are unable to detect it.
Or, you can keep Bluetooth turned off entirely until/unless you really need it.
I see those as better, preventive solutions than to try to fix an issue after-the-fact. Much easier, too (no software to write, test and install, and the effort can be used for creating something more useful, IMO).