An electronic device (1, 101, 151, 171, 201) comprising a substrate (2) having a first side (3), which substrate (2) is provided at said first side (3) with a first layer (11), which first layer (11) comprises an electrically conducting portion (21) and adjoining thereto an electrically insulating portion (23),
- characterized in that:
- the first layer (11) comprises a material which is built up from at least a first and a second element,
- the material has an amorphous state and a crystalline state,
- the electrically insulating portion (23) comprises the material in its amorphous state, and
- the electrically conducting portion (21) comprises the material in its crystalline state.