Ethernet Connectivity through Android Application in imx6 sabresd

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Ethernet Connectivity through Android Application in imx6 sabresd

3,499件の閲覧回数
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 返答(返信)

1,921件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

1,921件の閲覧回数
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 件の賞賛