I'm trying to import an ionic JSON, but% w / o% w / w% shows the following error:
console.log: {"status": 9, "message": "Activity not found: No Activity found to handle Intent {act = android.intent.action.VIEW dat = file: /// storage / emulated / 0 / Medical History / Joao.json typ = application / json flg = 0x4000000} "}
This is the code I'm using to open the file folder, but when I open the file, it already gives the error.
importKid() {
this.fileChooser.open()
.then(file => {
this.filePath.resolveNativePath(file)
.then(resolvedFilePath => {
this.fileOpener.open(resolvedFilePath, 'application/json')
.then(value => {
}).catch(errOpen => {
console.log(JSON.stringify(errOpen))
})
}).catch(err => { //Erro
console.log(JSON.stringify(err))
});
})
}