Chat between mobile device and Android Emulator - android

I am trying to make chatting between an Android Device and an Android Emulator.My question is do they need to be on the same network to work?! What about if I tried between 2 real devices? How will I be able to detect the other device?
Any ideas?

Do they need to be on the same network to work?!
As long as they don't communicate via a server: Yes
What about if I tried between 2 real devices?
Should not make any difference. Just make sure they are on the same wifi network.
BTW, your PC running the Emulator will have to be connected to the same wifi/ethernet network as the physical Android device in case you use it.
How will I be able to detect the other device?
http://developer.android.com/training/connect-devices-wirelessly/nsd.html

Related

How do I work on my react-native (Android 4.4) app where there's no wifi?

I've got my rooted Android 4.4 device USB-plugged into my Windows laptop, and I can develop fine when they're on the same wifi network. As soon as I turn Wifi off on the tablet, it can't receive updates.
I don't need hot reloading, I just want to be able to update this app once or twice without a network.
Don't say adb reverse, 'cause it only works on Android 5+.
Android port forwarding can connect via USB, i have used in kit kat
http://www.codeproject.com/Articles/191930/Android-Usb-Port-Forwarding
If you have good internet connection, you can use ngrok and expose the port number 8081.

Is it possible to emulate a network between my device and my desktop?

I'm developing an app and I need to use my network to access some webservices. I was connecting on WiFi and it was ok but I think that a system administrator should have blocked the incoming connections in my desktop.
I want to know if I can find an app to simulate a network between my desktop ( Windows 7 ) and my Android device.
Do you know if it's possible? How?
If somebody put a locket, than has a reason. Easier to talk with him. If he don't want... than use an USB to Wi-fi adapter and the WI-FI connection is ready :)

Android Wi-fi AP hotspot - without internet

There are lots of post on SO regarding setting up AP (Hotspot) on android mobile. However, in all these cases, the AP is a conduit to the outside internet world. In my case, I just want a server application running over a mobile setup as an AP. And let all the client android mobiles connect to it, send their data and disconnect if they like. No internet connection is assumed (i.e, no gprs/3g etc).
My observations: If I setup a wifi AP (via settings -> tethering and portable hotspots) when it is also connected to GPRS, then another android phone can successfully connect to this AP and send the data to the application. However, if I disable the GPRS, even though the client shows that it is connected to the AP, it can't seem to send any data. It seems that an external internet connection is a necessity for the AP mode to work.
Is this understanding correct? Or am I setting something wrong?
I know that I am late to the party (more than 3 years late :) but I was searching for a solution to this problem and stumbled upon an easy workaround. I am using a Nexus 4 with Android 5.0.1 and I can easily configure my phone to use it as an Android Wi-fi AP hotspot - without internet. Just go to Settings / Data Usage and disable "Mobile data" option under the Mobile tab. Then enable the WiFi hotspot option as usual.
I was trying to get this working in order to play with a VirtualBox machine from VulnHub.com that asked for a Bridged Connection when I was commuting to work (no Internet, but with my laptop and my mobile phone I was able to make it :)
I think you have used the internet IPs in your code not the local IPs for communications,is'nt it?
I have the same use case and was looking for the same info as you are. I checked that some of the WiFi-only tablets do not even have a HotSpot setting. Even the devices that do have it, if I remove the SIM card, I cannot enable the HotSpot (I get a message asking me to insert a SIM first).
It looks like our use case is not supported by Android. Rather, the HotSpot feature was not designed with our use-case in mind. I mean, why would an end-user want to use an Android phone or tablet in a HotSpot mode if it didn't also provide outside connectivity?

connecting Android App to Microcontroller ?

I`m working on home Automation project and I need to develop an Android App to control several devices.
Is it done through GSM module to connect between the Android App & my microcontroller ? or there is another better technique ?
how to connect Android App to GSM module ?
thanks in advance :)
with bluetooth you can connect an android app to external device.
Why don't you try to implement REST approach with 2 phones?
From the first phone try to update some variable in a server.
From the second phone keep fetching the value from the server. Your second phone needs to be connected with microcontroller using bluetooth / serial port.
That would be straight forward.

How to send sms or make phone call on a real android device from PC?

Trying to figure out is it possible to send sms or make phone call from PC to a real device.
I know how to do it using an Emulator. tty localhost port...
Does real device got a port?
I just started learning Android stuff.So, thx for helping ^_^!
One way to communicate between a PC and a phone would be if they were both on the same local network, perhaps both connected to the same WiFi router. When I've had to do this in the past I've looked in my router control panel to see the IP addresses allocated to the attached devices, but there are other ways to do it.
Of course you'd need to write an Android app to actually send the SMS, that's a different issue.

Categories

Resources