yes i have tried this in ide, and here is the logs 07-25 12:52:44.535 : INFO / emptyapp ( 6919 : 6919 ) : int OspMain(int, char **)(20) > Application started. 07-25 12:52:44.600 : ERROR / Tizen::Base ( 6919 : 6919 ) : result Tizen::Base::String::SubString(int, Tizen::Base::String&) const(1112) > [E_OUT_OF_RANGE] The startIndex(47) MUST be greater than or equal to 0, and less than the length of this string(47). 07-25 12:52:44.605 : ERROR / Tizen::Base ( 6919 : 6919 ) : result Tizen::Base::String::SubString(int, Tizen::Base::String&) const(1112) > [E_OUT_OF_RANGE] The startIndex(47) MUST be greater than or equal to 0, and less than the length of this string(47). 07-25 12:52:44.610 : ERROR / Tizen::Base ( 6919 : 6919 ) : result Tizen::Base::String::SubString(int, Tizen::Base::String&) const(1112) > [E_OUT_OF_RANGE] The startIndex(47) MUST be greater than or equal to 0, and less than the length of this string(47). 07-25 12:52:44.620 : ERROR / Tizen::Base::Collection ( 2583 : 2583 ) : virtual const Tizen::Base::Object* Tizen::Base::Collection::ArrayList::GetAt(int) const(241) > [E_OUT_OF_RANGE] The index(2) MUST be greater than or equal to 0 and less than the number of elements(2). 07-25 12:52:44.625 : ERROR / Tizen::Base ( 6919 : 6919 ) : result Tizen::Base::String::SubString(int, Tizen::Base::String&) const(1112) > [E_OUT_OF_RANGE] The startIndex(47) MUST be greater than or equal to 0, and less than the length of this string(47). 07-25 12:52:44.640 : ERROR / Tizen::Io ( 6919 : 6919 ) : static bool Tizen::Io::File::IsFileExist(const Tizen::Base::String&)(300) > [E_INVALID_ARG] Given filePath length is zero or exceeds system limitations. 07-25 12:52:44.685 : ERROR / Tizen::Base ( 6919 : 6919 ) : result Tizen::Base::String::SubString(int, Tizen::Base::String&) const(1112) > [E_OUT_OF_RANGE] The startIndex(47) MUST be greater than or equal to 0, and less than the length of this string(47). 07-25 12:52:44.735 : INFO / emptyapp ( 6919 : 6919 ) : virtual bool emptyappApp::OnAppInitializing(Tizen::App::AppRegistry &)(70) > Praveen t 07-25 12:52:44.735 : INFO / emptyapp ( 6919 : 6919 ) : virtual bool emptyappApp::OnAppInitializing(Tizen::App::AppRegistry &)(73) > /opt/apps/GwYgTVLiIl/data/text.dat 07-25 12:52:44.780 : ERROR / emptyapp ( 6919 : 6919 ) : virtual bool emptyappApp::OnAppInitializing(Tizen::App::AppRegistry &)(75) > exception [E_SUCCESS] 07-25 12:52:44.780 : INFO / emptyapp ( 6919 : 6919 ) : virtual bool emptyappApp::OnAppInitializing(Tizen::App::AppRegistry &)(81) > sucess 07-25 12:52:44.785 : ERROR / BLUETOOTH_FRWK_SERVICE ( 4803 : 4803 ) : bt-request-handler.c: __bt_service_check_privilege(823) > (cookie == NULL) return 07-25 12:52:44.785 : ERROR / BLUETOOTH_FRWK_SERVICE ( 4803 : 4803 ) : bt-service-opp-client.c: __bt_free_sending_info(117) > (info == NULL) return 07-25 12:52:44.785 : ERROR / BLUETOOTH_FRWK_SERVICE ( 4803 : 4803 ) : bt-service-opp-client.c: __bt_opp_client_agent_deinit(88) > (opc_obex_agent == NULL) return 07-25 12:52:44.790 : ERROR / BLUETOOTH_FRWK_SERVICE ( 4803 : 4803 ) : bt-service-opp-client.c: __bt_free_transfer_info(105) > (info == NULL) return 07-25 12:52:46.555 : ERROR / BLUETOOTH_FRWK_SERVICE ( 4803 : 4803 ) : bt-service-opp-client.c: __bt_send_files_cb(429) > (sending_info == NULL) return
On Tue, Jul 30, 2013 at 10:53 AM, Tizen Platform <[email protected]>wrote: > did you try to debug your application in IDE? did you check log messages? > It could have some clues. > > > On Thu, Jul 25, 2013 at 2:08 PM, chinna praveen < > [email protected]> wrote: > >> >> hi >> >> i want to transfer a file via bluetooth so i am using bluetooth opp >> client here is my code >> >> >> BluetoothManager btManager; >> // The application must implement the IBluetoothManagerEventListener >> interface >> btManager.Construct(*this); >> BluetoothOppClient oppClient; >> >> // The application must implement the IBluetoothOppClientEventListener >> interface >> oppClient.Construct(*this); >> //pairing >> IList* pPairedDeviceList = btManager.GetPairedDeviceListN(); >> // Get the paired device element at the index 0 >> BluetoothDevice* pPairedDevice = >> (BluetoothDevice*)pPairedDeviceList->GetAt(0); >> >> // Get information from the paired device >> String pairedDeviceName = pPairedDevice->GetName(); >> AppLog("%ls",pairedDeviceName.GetPointer()); >> String filePath >> =String(Tizen::App::App::GetInstance()->GetAppRootPath() + >> L"data/text1.dat"); >> AppLog("%ls",filePath.GetPointer()); >> result r=oppClient.PushFile(*pPairedDevice, filePath); >> AppLogException("exception [%s]", GetErrorMessage(r)); >> >> it is showing the paired devices correctly while transfering file the >> exception is E_SUCCESS but the problem is the application is closing >> unexpectedly ....and i am not able to send files. >> >> suppose if i try to give path as String filePath >> =L"opt/media/Images/image1.jpg" the pushFile function giving the exception >> "E_FAILURE"..please kindly help me in identifying wher the problem is???? >> >> i have included bluetooth.admin and bluetooth.opp previliges and also >> network.bluetooth feature >> >> thanks in advance >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> https://lists.tizen.org/listinfo/general >> >> > -- *chinna*
_______________________________________________ General mailing list [email protected] https://lists.tizen.org/listinfo/general
