Method and device for transmitting files through Bluetooth and intelligent mobile communication terminal
暂无分享,去创建一个
The invention relates to a technology in the field of communication, in particular to a method and device for transmitting files through Bluetooth and an intelligent mobile terminal. The method comprises the following steps of: reading a pre-transmitted file from a database by adopting a first thread, converting the pre-transmitted file into a preset file and caching, wherein the preset file is a file which is accordant with a Bluetooth transmission protocol; inserting the cached pre-transmitted file in the form of preset file into the database by adopting a second thread; and starting a main Bluetooth transmission thread, and transmitting the pre-transmitted file in the form of preset file. In the method and the device for transmitting files through Bluetooth and the intelligent mobile communication terminal provided by the embodiment of the invention, records in a phone book are converted into a file which is accordant with the Bluetooth transmission protocol by using a newly-established thread, the file is inserted into the database, the main Bluetooth transmission thread is started, and the records in the phone book are transmitted, so that a large quantity of small-sized files can be transmitted, and the CPU (Central Processing Unit) occupancy factor can be lowered by preprocessing the records in the phone book with the newly-created thread.