An electronic device (100, 500) comprising: a first connection means connectable to a first external device (200, 600), wherein the first external device (200, 600) is connected to a battery (210, 211); a second connection means connectable to a second external device (300, 400); and a control means arranged to determine whether the first external device (200, 600) is connected to the first connection means, characterized in that: the first connection means is configured to be alternatively connectable to a battery; the control means is arranged to prevent charging of the battery (210, 211) connected to the first external device (200, 600) with power supplied from the second external device (300, 400) connected to the second connection means, in a case where the first external device (200, 600) is connected to the first connection means, the second external device (300, 400) is connected to the second connection means, and the battery is not connected to the first connection means, and the control means is arranged to allow charging of the battery connected to the first connection means with power supplied from the second external device (300, 400) connected to the second connection means, in a case where the first external device (200, 600) is not connected to the first connection means, the second external device (300, 400) is connected to the second connection means, and the battery is connected to the first connection means. a first connection means connectable to a first external device (200, 600), wherein the first external device (200, 600) is connected to a battery (210, 211); a second connection means connectable to a second external device (300, 400); and a control means arranged to determine whether the first external device (200, 600) is connected to the first connection means, characterized in that: the first connection means is configured to be alternatively connectable to a battery; the control means is arranged to prevent charging of the battery (210, 211) connected to the first external device (200, 600) with power supplied from the second external device (300, 400) connected to the second connection means, in a case where the first external device (200, 600) is connected to the first connection means, the second external device (300, 400) is connected to the second connection means, and the battery is not connected to the first connection means, and the control means is arranged to allow charging of the battery connected to the first connection means with power supplied from the second external device (300, 400) connected to the second connection means, in a case where the first external device (200, 600) is not connected to the first connection means, the second external device (300, 400) is connected to the second connection means, and the battery is connected to the first connection means. the first connection means is configured to be alternatively connectable to a battery; the control means is arranged to prevent charging of the battery (210, 211) connected to the first external device (200, 600) with power supplied from the second external device (300, 400) connected to the second connection means, in a case where the first external device (200, 600) is connected to the first connection means, the second external device (300, 400) is connected to the second connection means, and the battery is not connected to the first connection means, and the control means is arranged to allow charging of the battery connected to the first connection means with power supplied from the second external device (300, 400) connected to the second connection means, in a case where the first external device (200, 600) is not connected to the first connection means, the second external device (300, 400) is connected to the second connection means, and the battery is connected to the first connection means.