I just started trying out J2ME but I can't find a way to do something. If the phone is connected to my modem wirelessly, is there any way I can get the modem's MAC address in the application?
Jump to content
Posted 15 July 2013 - 02:08 PM
There is WifiInfo.getMacAddress()
Get the WifiManager (Context.getSystemService(Context.WIFI_SERVICE). If it succeeds use GetConnectionInfo() to get the current connection's info. If that succeeds get the mac address.
Posted 16 July 2013 - 08:58 AM
Those are android specific. You will likely find something similar in the platform-specific libraries of your target platform.
Trying to get "all phones that support j2me" is something I haven't seen for about five years now. To be clear, are you talking about Nokia/Symbian phone programming?
Posted 16 July 2013 - 09:24 AM
To be clear, are you talking about Nokia/Symbian phone programming?
Yes, those mainly, but if possible also other phones that can also connect to the internet through wifi, not only through the sim card service provider. I realize that's probably impossible, so I'm looking for the solution that works on most platforms.
Edited by Devil0150, 16 July 2013 - 09:40 AM.