Does android things work in IMX8MM evk board

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

Does android things work in IMX8MM evk board

跳至解决方案
1,611 次查看
Ruban1
Contributor II

Does android things work in IMX8MM evk board.

i developed app. but its getting crashed . kindly provide Solution to Access the GPIO periperials

according to below link

https://developer.android.com/things/sdk/pio/gpio

 

Adding the required permission

Add the required permission for this API to your app's manifest file:

<uses-permission android:name="com.google.android.things.permission.USE_PERIPHERAL_IO" />

 and 

Managing the connection

In order to open a connection to a GPIO port, you need to know the unique port name. During the initial stages of development, or when porting an app to new hardware, it's helpful to discover all the available port names from PeripheralManager using getGpioList():

PeripheralManager manager = PeripheralManager.getInstance();
List<String> portList = manager.getGpioList();
if (portList.isEmpty()) {
   
Log.i(TAG, "No GPIO port available on this device.");
} else {
   
Log.i(TAG, "List of available ports: " + portList);
}

built the apk. It was built without error. Now wen i install the apk in imx8mm evk board while opening the Apk its getting crashed and stopped

0 项奖励
回复
1 解答
1,601 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Ruban1,

Android things does not work on MX8MM, you have to based on android BSP for this task.

 

Regards

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,602 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Ruban1,

Android things does not work on MX8MM, you have to based on android BSP for this task.

 

Regards

 

0 项奖励
回复