Ethernet Connectivity through Android Application in imx6 sabresd

cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet Connectivity through Android Application in imx6 sabresd

1,926 Views
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?

Labels (3)
Tags (1)
0 Kudos
2 Replies

348 Views
art
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

348 Views
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 Kudos