Abstract:
An electronic device according to various embodiments includes a housing; a user interface; a wireless communication circuit disposed in the housing; a wired communication interface exposed through the housing; a processor disposed in the housing and electrically connected to the user interface, the wireless communication circuit, and the wired communication interface; and a memory disposed in the housing and electrically connected to the processor, wherein the memory stores instructions that, when executed by the processor, cause the electronic device to establish a first communication channel with an external electronic device including a storage using the wireless communication circuit and/or the wired communication interface so that the electronic device operates as a device and the external electronic device operates as a host, to exchange information with the external electronic device through the first communication channel, and to establish a second communication channel with the external electronic device using the wireless communication circuit so that the electronic device operates as a host and the external electronic device operates as a device.
Abstract:
Disclosed is a method of operating an electronic device including mounting a first file system and mounting a second file system on the first file system, wherein the first file system and the second file system are included in a plurality of stackable file systems; receiving an open request for a file of an application program; generating a first file object corresponding to a first file in the first file system and a second file object corresponding to a second file in the second file system, in response to the request; and configuring a link between the first file object and the second file object.
Abstract:
An electronic device is provided. The electronic device includes at least one wireless communication circuit, a processor, and a memory. The memory stores instructions to enable the processor to, during first P2P wireless communication with a first external electronic device, enable the electronic device to operate as at least one of a host or a client, store first information about a role of the electronic device one of the host or the client, during second P2P wireless communication with the first external electronic device after the first P2P wireless communication, determine whether the first external electronic device was previously in a group, exchange second information with the first external electronic device based on a status of at least one of the electronic device or the first external electronic device, and select the role of the electronic device as the host or the client based on the second information.
Abstract:
An operation method for an electronic device is disclosed. The operation method for an electronic device according to an embodiment may comprise the steps of: configuring a block layer for virtualizing a storage on a volatile memory as a block device; storing a file in the configured block layer in units of blocks; selectively encoding, in a unit of at least one block, the file which has been stored in units of blocks; and storing at least one of an encoded block and a non-encoded block in the storage.
Abstract:
Provided are an electronic device and method for performing an operation based on proximity of an external object with respect to the electronic device. In an embodiment, an electronic device includes a plurality of sensors including first, second, and third sensor sets. A processor configured to determine a proximity state of an external object using the first sensor set, wherein the proximity state indicates whether the external object exists near the electronic device and includes a first proximity state and a second proximity state. In response to the external object being in the first proximity state, determine a detailed proximity state of the external object using the second sensor set, and in response to the external object being in the second proximity state, determine the detailed proximity state of the external object with respect to the electronic device using the third sensor set.
Abstract:
A method for an electronic device includes determining whether a drag of a touch draws a circumference of a closed region on a screen, recognizing at least one object within the closed region of the screen, and extracting the at least one object from the closed region of the screen. An apparatus includes a screen configured to display an image, and a processor configured to determine whether a drag of a touch draws a circumference of a closed region on a screen, and recognize at least one object within the closed region of the screen, and extract the at least one object from the closed region of the screen.