How to Android apk information send to seial port

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Android apk information send to seial port

1,116 次查看
asick
Contributor III

We are using imx6q-sdb with oreo

how to create and include serial port details on android apk, when we press the apk option that information should send to the serial port(ttymxc0 or ttymxc2 or ttymxc3) console.

#imx6q android8 #serial_port_uart#android oreo#debug#about the android apk installation/permission

0 项奖励
2 回复数

1,011 次查看
diegoadrian
NXP Employee
NXP Employee

Hello,

Unfortunately, creating the implementation of Android apps is out of our scope of support.

However, you could use the following java command to execute shell commands and then perform the serial connection as it should be in a Linux terminal. However, this is a suggestion, we cannot guarantee if this will work.

Process process = Runtime.getRuntime().exec(command); 
//Where command, is the Linux command that you are willing to execute

I apologize for the inconvenience this may give you.

Best regards,
Diego.

1,011 次查看
asick
Contributor III

Thank you Diego

0 项奖励