How to Lock and unlock android phone remotely using php server - android

I am new to android, and I wanted to connect my phone remotely using php and do operations for Lock and unlock android phone. E.g I lock/unlock my phone from php website

I don't get your purpose of doing it, maybe your trying to have a remote control of your mobile phone. I don't know if theres an existing library for it but I think of a few ways to do it. You can use GCM(Google cloud messaging) so that you can have a reference of the phone you would want to lock. In your app you should handle a message sent from your api(Php) or your website to lock or unlock the your phone.
GCM Tutorial

Related

Image Transffer on Ejabberd Server using Secure chat app

I am trying to communicate between Android and iOS app using Ejabberd Server setup at backend.
For Android I am registered with "Conversation" app.
For iOS I am registered with "ChatSecure" app.
I am able to send image if both users are available on same app. But If one user is logged in with Android and another with iOS then image transfer not working. It gives error due to "OMEMO" encryption.
Any idea how I can remove this encryption?
Could you say what is the difference between "Conversation" app and "ChatSecure" app ?

How to (sort of) control android device from webapp?

I need to be able to control Android phone through my webapp. I need to know which permissions do I need to take from user from his/her google account. For example I need another user to be able to send an address to this user and this should open his Google Map with that address shown. Or send a message and it should be somehow opened on the user's phone. Is this all possible? If yes, then how. If no, what can be the closest we can achieve?
If your are creating an Android application that can be installed on users phone than as far as I know this is quite possible...
All you need to do is to use push notifications server like firebase to send the data from your webapp to an application on users phone. Then according to the request received the application has to determine which intent/Broadcast to send.

Does Google Licence Verification Library run on an Android Wear device?

I have been looking into Google LVL to address stolen apps issues.
The API states the device need to "Run a system image on which the Google Play client application is preinstalled"
This cannot happend on a Wear device, but I am wondering if it can leverage the host phone instance of Google Client.
Has anyone faced this scenario?
You can't leverage the phone instance directly but a common approach at getting anything the phone can provide (network status etc) is to use the messaging api to send a custom message to request the information and get a message from the phone as a response. You could easily add to your wearable listener service on the mobile side to call the licencing and then wrap up a response and send a message to the wearable.
Depending on what your app does I'd try to put this as part of an existing message from mobile to wear to save unnecessary chatter.

Yii + android ajax call

I'm working on an app that has a mobile component and a web component. The web component is going to be used by a certain group of people, while the mobile app is used by everyday people. When the script is run from the mobile device I want the web app to update using ajax. Kind of like Facebook mobile, if you post a comment on mobile to your friend, and that friend is on their laptop, they will still get the notification in real time. How is that possible. The script works, but the users on the web app won't see it unless they refresh.
I suggest setting up a NodeJS server, and have active users connect to that. You can then push notifications to that server, which in turn sends it out to the clients. It won't matter if the client is on desktop, mobile web or even in a native app. SocketIO greatly simplifies this for web-based applications. See http://socket.io/. It also has fallbacks in case the users browser does not support web-sockets.
There are of course other options, but for web this is the easiest in my opinion.

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. 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. The CMS was constructed using html and it also uses javascript, php and 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).
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 . I am logged on to my cms in Scotland.
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?
2, how can i make sure it is sent to the right device and the right application on that devices? (i.e 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.)
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.
thank you
I think Google Cloud Messaging is appropriate for your problem.
Here is the link: http://developer.android.com/google/gcm/index.html

Categories

Resources