1. Are you ready for the Galaxy S20? Here is everything we know so far!

GMAIL API - best way to automate emails from apps?

Discussion in 'Android Development' started by DaftEejit, Feb 10, 2016.

  1. DaftEejit

    DaftEejit Lurker
    Thread Starter

    Hi,
    I'm developing a security app that will need to transmit GPS locations from handsets, without alerting the thief that emails with locations are being sent from the handset.

    To this end I need silent email generation and posting, and was thinking about the GMAIL API for this.

    I guess this could be either by setting up the app to use the users google credentials or to set up the app to use generic 'application' credentials. So the email would either come from them, or from an account set up just for the application...

    Does this seem like a good way to perform the above, or are there better ways?
     


  2. Best Answer:
    Post #2 by HeavensSentSword, Feb 10, 2016 (1 points)

    1. Download the Forums for Android™ app!


      Download

       
  3. HeavensSentSword

    HeavensSentSword Well-Known Member

    Cant you just simply encrypt them? Like outlook uses a encryption file that can let you encrypt a email. So only the sender and the receiver can read it. Gmail probably has this function in the API.
     
  4. DaftEejit

    DaftEejit Lurker
    Thread Starter

    Hi, it was more the fact that I need the email to be produced and sent by a background process (silently and unbeknownst to the thief). If an email client pops up at all, and the thief spys it then the game is up
     
  5. HeavensSentSword

    HeavensSentSword Well-Known Member

    But wouldn't any communication do that then? If I was looking to steal any information from a source I would just take everything and then shift though it latter.
    You could try to send it via another app so that your app doesn't directly send it so if the thief is just listening in on your app he would just ignore the other app and would let the information slip by with out a second thought. So basically use your app to package a email then send it over to gmail to actually send it over the net.
     
  6. Deleted User

    Deleted User Guest

  7. HeavensSentSword

    HeavensSentSword Well-Known Member

    @LV426, wow that is some pretty nifty stuff.
    @DdaftEejit who or what is this "thief" by the way? Just wondering.
     
  8. Deleted User

    Deleted User Guest

    And the great thing about that code is that you can just lift it, as is, paste it straight into your project, and with a little tweaking of parameters, it just works.
    Isn't the Internet great?
     
  9. DaftEejit

    DaftEejit Lurker
    Thread Starter

    Just a thief ! Someone who nicks your handset
     
  10. DaftEejit

    DaftEejit Lurker
    Thread Starter

    Fantastic resource link - thanks.

    Next problem would be to encrypt the password so my app doesn't become a security risk for its users. (or for me if I use an email account created just for this application)
     
    #9 DaftEejit, Feb 10, 2016
    Last edited: Feb 10, 2016
  11. DaftEejit

    DaftEejit Lurker
    Thread Starter

    I'm designing a system that secretly monitors location and use of a stolen handset, not one that protects the users data. In normal circumstances there will be no UI visible, but background processes will be running to achieve this.
     
Loading...

Share This Page

Loading...