我是android NDK c ++的新手,我不知道如何在NDK c ++中创建Toast对象以进行Toasting消息 喜欢:
async onSubmit(ref) {
if (ref.state.emailID && ref.state.password) {
this.showLoader();
await axios.post('http://apiurl.com/api/user/Userlogin?emailID=' + ref.state.emailID + '&password=' + ref.state.password,{ emailID: ref.state.emailID,password: ref.state.password },{ headers: { 'Content-Type': 'application/json' } })
.then((response) => {
console.log('Innnn');
this.hideLoader();
console.log("response data: ",response.data);
}).catch(err => {
this.hideLoader();
console.log("error: ",err.message);
})
}
}
我想在NDK c ++中通过native-lib.cpp文件执行相同的任务。