Ethernet Connectivity through Android Application in imx6 sabresd

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

Ethernet Connectivity through Android Application in imx6 sabresd

4,269 次查看
teddy123
Contributor III

Hi all,

I am now trying to set IP address and Gateway address for the Ethernet through an Android Application. I took this How to set ethernet static IP in android 2.3? as reference but couldn't succeed since the APIs mentioned in this link are available in Android Jellybean. Does anyone know how set these information like IP,Gateway and DNS from an Android App in JellyBean?

标签 (3)
标记 (1)
0 项奖励
回复
2 回复数

2,691 次查看
art
NXP Employee
NXP Employee

Try to do it with the 'ifconfig' utility calling it through the system console access:

http://developer.android.com/reference/java/io/Console.html

I've been able to run the 'ifconfig' utility through the physical system console connection on my i.MX6Q SABRE SD board.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,691 次查看
haoranwang
NXP Employee
NXP Employee

Freescale Android BSP integrated the Ethernet APP.

You can find it in packages/apps/fsl_imx_demo/Ethernet/ .

That app is able to set the DNS IP and proxy through framework.

BRs,

Haoran.

0 项奖励
回复