I'd like to let my android app interact with another on the pc side, through wifi or ethernet.
I already made my android device connected to the local network through wifi or ethernet.
But I dont know how to let those app detect each other and do communications.
I've read the training tutorial on developer.android.com but all there are depends on API16. But I'm using a 2.3.3 API10.
Can anyone show me how to do this and where I can find the related tutorial. Thx
If you are willing to consider developing in C#, i.e. xamarin.android, you could look at using a compatible network library to save some time. If so checkout NetworkComms.Net.
Disclaimer: I'm a developer for this library.
Related
I have been trying to search a way to changes Wifi Hostspot name of android device using flutter. I also wanted to get a list of available wifi nearby using flutter. I have just started learning flutter and i dont have much knowledge to write plugins for it from scratch. Is there any easier way to perform above two things?
The 3rd-party wifi package might help you out with listing available networks. It supports Android, but not iOS.
For the hotspot situation, you can check out this (unpublished, only on github) package: wifi_iot. That one also mostly supports Android for most functions. You would need to test it yourself and extract which functions you need, because you can't get it through https://pub.dartlang.org/
I would like to know if there is any way to make a GPRS / GSM module (SIM800L) as a "default" connection in android things that allows browsing the internet and making requests using the Android libraries.
Seems no, because as in this answer of Blundell described: the source code is not available for Developer Preview. But You can use UART and AT commands.
This is possible. I have been able to integrate SIM800L TO RPI3 running Android Things via UART and AT commands. I am however using it for sending SMS and not for Internet connectivity. I do not see an issue in achieving that as well.
Hope this answers your question.
I am trying to get a clear idea about Proximity mention in AllJoyn app and there are several explination (theories) that i find intresting but , I still want to know can Alljoyn support proximity? If yes then how do I go about it? Can I see an example using proximity or reference a sample App as im not able to find proper references to the same. The Chat app I've seen works perfectly using WiFi but how can i accomplish the same using a bluetooth? Kindly help me..Thank You in advance..
Bluetooth support is only available in the android sdk. In order use bluetooth, you either have to wait until AllJoyn is adopted by OEMs, or rooting your phone and doing some fiddling. More info can be found https://www.alljoyn.org/docs-and-downloads/documentation/alljoyn-android-environment-setup-guide#unique_21
If/when bluetooth is integrated/supported, your use of AllJoyn should be the same, as AllJoyn works to hide the communication details from you.
I know how to develop in Android and use the Apache HTTP lib, but I want to go lower, get hold of the wireless interface adapter and be able to send & receive packets wirelessly. I know its possible since there are sniffer apps in the android market. I have looked around and googled a lot, but can't seem to get any ideas on how to even start. Surprisingly nobody seems to have asked this question on SO before too.
I suppose there is no android API that does it for you. Please suggest a way of sending/receiving packets in android or post references to any such resources.
Thanks!
Note: I know java.net api can be used in android (though I haven't used it before) but that doesn't give me the kind of access I want.
There is no way to do this with the standard SDK/NDK.
On a rooted device, you could possibly call into tcpdump, or another libpcap-based application. There is not a supported way to give Java applications the required privileges on a production Android device.
For example, this blog post describes how to use tcpdump to do a basic packet capture on Android.
Did you have a look at the NDK? Maybe you can do what you want in C(++).
Android OS 4.0 or later provides a VpnService through which you can monitor the network traffic. Application provided at http://www.taosoftware.co.jp/en/android/packetcapture/ uses VpnService that capture the data.
I am making application in which i want to find the list of the UPnP devices that are connected to my network from my android application . Any idea how can i do this..
I am using the API of the cybergarage...here is the link of the repository...
https://cgupnpjava.svn.sourceforge.net/svnroot/cgupnpjava/trunk/cyberlink/upnp-stack/src/main/java/org/cybergarage/
Any one who has work or has been working on UPnP Complianted Application development, can help me out.
Thank you
I have a created an alternative Java UPnP library that also works on Android:
http://teleal.org/projects/cling/core/
A manual chapter about Android integration, an example application, and a video of the example application are available. The example application shows how you can search and list all the UPnP devices on your network.