Sending Auto Message in Android Application - android

I am trying to develop an application in android using eclipse . This application is like finding the friend location and directions using android mobile .
I am doing this in a way :
First this application is installed in user and friend both , when the user wants to retrieve the location of the friend , in our application we want a auto-message to be sent to the friend which asks his permission .If he gives it , a message containing the location(latitude, longitude) of friend goes to user and then He gets the location and path to that friend .
Now Getting the location part in a mobile having the This application has been done .
But The auto messaging part is still incomplete .
So if anyone can tell me any tutorial or sample code to sent auto messages( like in facebook we do add as a friend and a message is sent for the approval )
All of this is done through GPS .

There are loads of examples over the net on how to send automated sms messages. Here are a few i found courtesy google..
http://mobiforge.com/developing/story/sms-messaging-android
http://thinkandroid.wordpress.com/2010/01/08/sending-sms-from-application/
Basically you need to know how to use intents and BroadcastReceivers that will listen to particular events and send the text message, and do particular actions when sms is received also.
Hope this helps.

You could try to use a server that sits between the two phone as an intermediary. You can have the first phone send a request to the server saying "Hey, where's friend X". The server can then use something like android Cloud To Device Messaging to push a query to the friends phone. Then on the friends phone, have an activity pop up asking for permission to send the location. A message containing the location can then be sent back to the server and pushed to the first device using C2DM again.

Related

Sending a message to a contact on another Android device

While building my first Android app (a simple game), I came across this (most probably newbie) problem:
my app needs to send a message to a contact (chosen from contact list) via my own server.
same app installed on this contact's device, needs to retrieve this message.
The problem I am facing is contact "identification". How can the app identify a contact such that one device sends a message for this "ID", and another device polls for messages intended the same "ID?
Maybe there is some kind of ID associated with a contact having an Android device?
Thanks (and sorry for newbie question :)
You can try push notifications service, by using the google cloud messaging.
From the first device you can send an http request containing message to a server that manages the request and sends message to the second device, or to more than one device.
You can find a tutorial here
https://developers.google.com/cloud-messaging/

Creating a chat module along with location tracker

I am working on a project that tracks location of the users and also has the feature to chat with one another. I have completed the location tracking which has uses a external database (000webhost) and has the following sub modules:
Login and Registration
Friend Request
Adding a Friend
Deleting a friend
Viewing the locations of a selected friend on the google map.
My doubt is how should i work on the chat module, that gives an additional option to chat along with viewing locations. I do not want to check if the fellow user is online or not. It should just be able to send and receive messages when the user logs in to the app.
I hope my question is clear now.
An start would be looking at the Java Message Service and its distributions. Or do you want to write the messenger and it's server on your own and completly in java with an android client?
But at first you should think of, what does your chat application need to do. Reading your description remembers me of the facebook messenger.

Shows message in Android Parse "No push notifications to display yet"

Im a beginner in Android Parse technology.I tried a sample app with this link:
https://parse.com/apps/quickstart#parse_push/android/new
I have followed each steps and successfully run the app on android mobile. But for push when I clicked "send a push" button , that shows message "No registered devices".There is no information is available that how I can register a device .
Thanks
Arun
Check out this section of the Parse documentation: https://parse.com/docs/push_guide#installations/Android
You need to create an installation for your app on start up. This will register your device for push notifications from your app. If you want to check that a device has been installed, go to your Parse Dashboard and look at the Installations table. The number of rows here will indicate the number of devices that have been registered.

Phone location on call or SMS

I am an android applications developer. I just wanted to know that can we get the geo location of a phone number just by calling or sending an SMS to that number? Like in whatsapp, we can see the last seen time of the person, likewise can we get the last seen time with the exact last location. This is found in facebook messenger. I am just curious if it is possible using just a phone number.
Android apps that share current user(phone number) location identify there users by phone numbers, i think you already sent an SMS to Whatsup or Viber service before using it and you must put your phone number in your Facebook profile, those services can stock last known location of there users periodically (each 2 hours) or each time the user use this app in there servers and share it with other users check my detailed answer here https://stackoverflow.com/a/21714011/1889341
No, the call and sms data not contains position(as geo localiation) and Android is not able to get them on receiving call that i know.
The only way is to create a custom Service android that catch the event of outgoing call and send the position to your own API server on to register this event and work with it.
Whats app and facebook are not normal SMS message. Are response to a web service that contains custom data. The facebbok and whatsapp developer have created a data structure that aggregate the informations of geo localization to the message data.

Push Notifications in Android for particular user

I am having an app developed and in that its for the restaurant manager so i want to add the push notification to the manager on receiving the order. so how is it possible.? i want to notify that particular manager only who has received an order on the web. I want to develop that as soon as the website receives an order for particular restaurant the notifications should be sent to the restaurant manager about that order. how is it possible?
For implementing you need Server +GCM+ web services
First user will be logged in the app through Facebook, Gmail or custom authentication.
Parameter(email or password also device id of android Phone) will go to the server through web services(by rest soap etc) and saved on database.
The logic of the code will be
If any user select food sent a request to server and server will sent it to the restaurant manager's device
for more information
please refer http://developer.android.com/google/gcm/index.html & http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

Categories

Resources