How to send automatic mail to a person if certain event occured? - android

I am implementing a temperature sensing system project. I want to write a data on file and in temperature field if it exceed a certain temp then I want to send a mail to a user automatically. How can i do it?

These are the links which will help you in sending email directlty from your android app-
Link 1
Link 2

Related

How to send push notification to Firebase with localized content?

I migrate application from OneSignal to FCM. In One signal there was a feature that automatically detect the language set on the device. So, when I've sent to oneSignal
{"contents": {"el": "Ο χρήστης User ζητά πρόσβαση στο κοινόχρηστα αρχεία", "en": "User wants access to shared files}} it detects device language and chooses proper content from the request. Is there something like that in Firebase?
In you case you need to save current language of the Device and send the notification according to the Language.
I have sent the data of Hindi Language in Unicode from PHP back end. Hope this will work for you. but the problem is that char length increases and Firebase has Limit on that
The FCM messaging currently does not provide a way to give various translations for a single message. You would have to know in advance what the user's language preference is, then send them a message with just the translation you want them to see. Either that, or you would have to include each translation in the app itself, and send some sort of identifier in the message to tell the app which message to show.

How to Send a text message from the data input on the text view fields?

I am using android studio. I made an application that allows the user to input data in different activities. The goal of the app is that what the user inputs will somehow be retrieved back to me by text message. I was wondering if there was a way to store the information input on the textfields (perhaps using a variable) and then send the variables to my phone as a text message for me to be able to see what was input on them. I’m not sure if this has been done before but I really need help with it. Thanks.
I think, this can be achieved by using the backend services. Whatever user inputs will be stored on database or somewhere using the backend services and retrieve that data using the sms service from backend system to the specific number or phone.

Telegram send unsaved contact

Short: Is there any way to send phone number of unsaved contacts in telegram?
Long: I need to send unsaved contact to telegram bot like 20 times a day.
I know, than I can open phone app > go to "recent" tab > click on unsaved phone number > copy it > switch back to telegram > paste it. Is there any way to send it automatically or simplify this process?
I am not asking you about fully working program. Just tell if it is possible or give me ideas.
So far, I found that it is possible to send my phone number to telegram bot via API. But can't find a way to send unsaved contact.
Also, telegram has built-in feature to send contacts, but it works only with telegram contacts, not with unsaved phone numbers.
So far, I came up with using auto clicker.
This may help you:
My phone is Android device. I am using default Samsung phone app. And I have full control over that telegram bot.
Links:
Telegram API
Telegram API #2
Telegram API #3
Example of unsaved phone number in contacts app
You can send contacts using a code like below when you program in Telegram Bot API:
await Bot.SendContactAsync(update.Message.Chat.Id, Phone_Number, "First_Name", "Last_Name");
Here inside your own app (which could be telegram android bot) you can access your phone's call log and replace the Phone Number (which is a string) with phone numbers that your bot extracts locally.
By the way, Last Name is optional in the code that I mentioned.

Send diferrent push notification messages depending on languages setting

I made push notification system with
Amazon SNS + Apple Push Notification Service
Amazon SNS + google cloud messaging
Every mobile phone is subscribing to one topic in amazon SNS and
I send messages via 'Publish a message' function.
However I would like to send defferent messages depending on each mobile phone's
language settings.
Is it possible? or where can I set???
Thanks for reply.
Some requires database and others requires api.
However, I don't have either, then I try workaround way.
Making a topic for each languages.
Check the device language and subscript according topics.
In this way, I might need to add more logic for when user changes the device language setting though.
It works well for now. thanks a lot.
Your application should send you language via some api, so you can track record of last updated language and when you push the notification check language and send payload in that language!
In ios, we can get phone's language something like,
NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];
( Reference : this so post )
So, when application will launch check the phone language and send to server. and when server push the notification check the last updated language and send in that language!
You have to manage it with web' database. For example get language from android and ios along with device key. And fire query to get selected language's device and send notification to them. You have to go group by group
there are two ways to do it.
first one if you have const massages:
Store your text inside strings.xml and use translation editor(in android studio) to enter your own translation.
So when you push notification the massage string will be for the current device local language.
second one if your massages depend on website local then you need to do that inside your code.
to know the current device local
Locale current = getResources().getConfiguration().locale;

vcard manager in android

I want to make VCard manager in android for 1.5 and above . This application will be able to perform following functions:
1 Send and receive contact . I want that when i send a contact to any mobile it should get the save option to save the contact and if some send me a business card then i should be able to save it in my contacts.
Can you please suggest me how to do it.
Is there any particular format for sending a VCard . For eg in nokia phones we are able to send a contact and its details(email etc) in form of business card and the other person can save it .
Can the same thing be achieved in android ?
Regards
Gaurav Gupta
# Keenora Fluffball
HI i am able to fetch the contacts details and able to send it in the format specified by you.. when i receive vcard in that format i want that i should get a save to contacts option. Though i can do this by using broad cast receiver. if a message contains text like BEGIN:VCARD
BEGIN:VCARD
VERSION:2.1
N:Gaurav;TEL;PREF9780898201
END:VCARD
But what about the other phones whether they will respond to it like in nokia we get popup business card received.
I want it to work on all phones. whether it is nokia or android.
Please suggest..

Categories

Resources