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