1. Roveer's Avatar
    I'm writing a system that forwards my Fire/EMS scanner calls to my email so I can get these alerts when I'm not at home. I have the back-end system working and now I'd like to see if it's possible to automatically play the MP3 file when it is received (via email) on my android phone (Marshmallow). I'm assuming this can't be done natively? Does anyone know if there is an app that would do this?


    03-08-2017 08:37 PM
  2. ManiacJoe's Avatar
    The ability to do that is most likely dependent on the email you are using.
    Many email apps have options to control when attachments are downloaded, often based on wifi vs mobile data.
    However, it is unlikely that you would get any app to actually launch/play any attachment automatically since that would normally be a huge security risk.

    That said, if you take this conversation over to the "developer lounge" you will probably get some better technical answers.
    belodion likes this.
    03-09-2017 06:23 PM
  3. belodion's Avatar
    Good idea. Thread moved.
    03-10-2017 06:51 AM
  4. Roveer's Avatar
    I'm wondering how difficult it would be to write an android app that would look into email on the phone for a certain sender and automatically play the attached MP3 file from the message? Is this something that would be possible? Where would I get started?
    03-15-2017 11:23 AM
  5. BayK's Avatar
    It is pretty easy to make. Not a big deal at all.
    You can create a service, (not an App, you need a service) that will check for new email at yours email address. here a link a link to add that sends an email. Receiving an email is using the same classes.

    Form the Message you can get a title and attachments. Because it is your email, you know that attachment is an mp3 file. So you can play it in media player
    String filePath = Environment.getExternalStorageDirectory()+"/yourfolderNAme/yopurfile.mp3";
    mediaPlayer = new  MediaPlayer();
    And you are done.
    04-13-2017 04:52 PM

Similar Threads

  1. Replies: 1
    Last Post: 03-09-2017, 06:25 PM
  2. Nougat badge notifcations wont go away and other issues!
    By AC Question in forum Samsung Galaxy S7 edge
    Replies: 1
    Last Post: 03-09-2017, 06:24 PM
  3. Where did my clock and weather go?
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 03-08-2017, 08:29 PM
  4. Nougat badge notifcations wont go away and other issues!
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 03-08-2017, 08:22 PM
  5. Replies: 1
    Last Post: 03-08-2017, 08:03 PM