简体   繁体   English

我如何找到带有网站的android设备并与安装在其上的应用程序通信

[英]how can i locate an android device with a website and communicate with an application installed on it

android is able to locate devices and then communicate and update these device. android能够找到设备,然后进行通信和更新这些设备。 That is the basis behind what i want to achieve. 这就是我想要实现的基础。 I have created a Content Management System which is a webpage that requires login details. 我创建了一个内容管理系统,它是一个需要登录详细信息的网页。 This CMS will contain a record of all my android devices, the users of these devices and all the applications available for these devices. 该CMS将包含我所有的android设备,这些设备的用户以及这些设备可用的所有应用程序的记录。 The CMS was constructed using html and it also uses javascript, php and mysql. CMS是使用html构建的,还使用了javascript,php和mysql。 each android device will have one of my applications installed on it and will be a wifi only enabled device(so that is how it will communicate with the world). 每台android设备上都将安装我的一个应用程序,并且将是仅支持wifi的设备(这就是它与世界进行通信的方式)。 the scenario is, a device stored on my cms will be used by a user in london and they will be able to access the internet via wifi.I want to send a notification to the device using the cms and my location is . 场景是,伦敦的用户将使用我cms上存储的设备,他们将能够通过wifi访问互联网。我想使用cms向该设备发送通知,我的位置是。 I am logged on to my cms in Scotland. 我登录到苏格兰的cms。 1, What sort of code or software or technique can i implement into my cms(html code, php code, javascript code) and my android devices and or android applications(java code) that will allow me to send a notification from my cms webpage to my application? 1,我可以在我的cms(html代码,php代码,javascript代码)以及我的android设备和/或android应用程序(java代码)中实现什么样的代码,软件或技术,这些代码,软件或技术可以使我从cms网页发送通知到我的应用程序?

2, how can i make sure it is sent to the right device and the right application on that devices? 2,我如何确保将其发送到正确的设备以及该设备上正确的应用程序? (ie if i want to contact someone who has a mobile phone i use their phone number, in this case device does not have a sim card and can only connect to wifi.) (即,如果我想联系拥有手机的人,我会使用他们的电话号码,在这种情况下,该设备没有SIM卡,只能连接到wifi。)

please provide me with a clear answer with links on how to achieve this and excuse my ignorance if the answer is straight forward i am new to this. 请为我提供清晰的答案,并提供有关如何实现此目的的链接,如果答案是直截了当的,请原谅我的无知。 again just to make it clear i want to send notifications from my cms webpage to a specific application that i have made in android using eclipse and java on a specific android device whos only connection to the internet is via wifi. 再次只是为了清楚起见,我想从我的cms网页向我在android设备上使用eclipse和java在android设备上所做的特定应用程序发送通知,该设备仅通过wifi连接到互联网。

thank you 谢谢

I think Google Cloud Messaging is appropriate for your problem. 我认为Google Cloud Messaging适合您的问题。

Here is the link: http://developer.android.com/google/gcm/index.html 这是链接: http : //developer.android.com/google/gcm/index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 com 端口与 Android 设备通信? - How can i communicate Android device with using com port? 我可以阻止将应用程序安装在android的特定设备中吗? - Can i prevent an application from being installed in a particluar device in android? 如何限制仅在真实设备上安装的Android应用程序? - How can I limit my android application installed on real device only? 如何在两个Android手机上安装的同一应用程序之间进行通信? - How to communicate between same application installed on two android handset? Android:如何确定该设备上是否安装了Samsung Apps市场? - Android: How can I tell if Samsung Apps market is installed on the device? Windows Azure网站与Android设备通信 - Windows Azure Website Communicate with Android Device 如何与蓝牙设备通信Android应用程序? - How to communicate android application with Bluetooth-enabled device? 我如何与Android应用程序或谷歌家庭迷你设备进行通信 - how can i communicate to google home mini device with android app or vise-versa 如何与另一个应用程序通信? - How Can I Communicate with another application? Android-如果未安装应用程序图标,如何获取? - Android - How can I get Application Icon if it isn't installed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM