Skip to content

Android Stuff

Apps and Tips for Android…

Archive

Archive for January, 2012

A couple of users of my SMS Backup & Restore app reported that they were not able to see the backup folder (and files) created by the app when using a Galaxy Nexus on Windows 7. For the uninitiated, Galaxy Nexus is a bit different from most other Android phones, it does not have an SDCard slot and it does not support USB Mass Storage mode when connecting the phone to a computer. Instead, it exposes the internal storage as an MTP device.

Initially I couldn’t reproduce this problem (I have the same phone + OS combination) and thought that this may be a problem on their phone or Windows. I could see the folder and the file on my PC. After some more discussions with the user we came to the conclusion that this looked like some type of caching issue where a file created by my app only appeared on Windows after the phone was restarted.

It turns out that only files known by the MediaStore on the phone gets exposed via MTP to the computer.

A simple work-around/solution for this problem is to let the Media Store know that a new file/folder has been created and that file/folder will immediately appear on Windows.

Doing this in code is very simple, just call the MediaScannerConnection.scanFile method with the full path of the file(s) created.

This is an Add-On for SMS Backup & Restore app to:

- automatically upload backup files to Dropbox
- send automated emails after a backup.

This app does not appear in the list of apps in the phone launcher. It is used by the SMS Backup & Restore app and gets opened from the “Backup Settings” screen of that app.

    

This app was developed as an add-on rather than building it within the existing app for 2 reasons: first to keep the original app smaller in size, second keeping this app separate means the Pro version still doesn’t need Internet permissions.

This app uses the binaries provided by the Android port of JavaMail.

Download:

 Instructions:

Dropbox Settings:

This app only has access to its own folder and does not have access to other Dropbox folders.
Check the “Use Browser for Authentication” if you want to use your default/external browser for authentication rather than the built-in functionality.

 

Email Settings:

All the settings on the screen are dependent on the Mail Service Provider that you use. The details about the service can be found on the providers site. Some of the common ones are linked at the bottom of this section.

Sender Email Address: The email address from which the email should be sent.

Recipient Email Address: The email address of the recipient. If you are sending the email to yourself then this will be the same as the Sender Email Address.

SMTP Server: The HostName/IP Address of the email SMTP server. For example: smtp.gmail.com for Gmail.

Port: The port used by the SMTP server. Normally 25/465/587. For example: 465 for Gmail.

Security: The security used for connecting to the SMTP server. Use SSL/TLS for Gmail.

Require Login: Checked if the SMTP server needs you to authenticate before sending emails. Check this for Gmail.

User Name: The user name required to authenticate with the SMTP server. For Gmail, its your email address.

Password: The password required to authenticate with the SMTP server. For Gmail, its your Gmail password.  If you use 2-step authentication in Gmail, you’ll need to generate an application specific password.

Subject: The subject for the email.

Body: The message content for the email.

Google Mail / Gmail Settings

Hotmail / Windows Live Mail Settings

Yahoo! Mail Settings

 

Update Log:

v2.03:

  • Fix for Dropbox Authentication problems on some HTC Phones. Thanks to Metin for all his help and testing.

v2.01:

  • Added some logging to help in investigating Dropbox Authentication issues on some HTC Phones.

v2.0:

  • Added Dropbox support

v1.0:

  • First release.