[LIBRARY] Background Mail Library - IDEs, Libraries, & Programming Tools

This is my first library, and also the first git upload.
Library is used for background sending mail from Gmail account.
Usage if very simple:
Code:
BackgroundMail bm = new BackgroundMail(context);
bm.setGmailUserName("[email protected]");
bm.setGmailPassword("yourgmailpassword");
bm.setMailTo("[email protected]");
bm.setFormSubject("Subject");
bm.setFormBody("Body");
bm.send();
...and you will need permissions
Code:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
This is optional
Code:
bm.setSendingMessage("Loading...");
bm.setSendingMessageSuccess("Your message was sent successfully.");
bm.setProcessVisibility(false);
bm.setAttachment(Environment.getExternalStorageDirectory().getPath()+File.pathSeparator+"somefile.txt");
Last release
BackgroundMailLibrary 1.5
Change log:
Version 1.5
*fix #4
Version 1.4
*Added attachments support
Version 1.3
*Added password encryption for better security
Version 1.2
*Added process visibility feature
Version 1.1
*Added demo
*Bug fix
Version 1.0
*First upload
Click to expand...
Click to collapse
Here is link on Github
https://github.com/kristijandraca/BackgroundMailLibrary
Follow me
https://plus.google.com/u/0/+KristijanDrača

what about sending email using gmail's intent but without showing gmail's interface?

DaGr81 said:
what about sending email using gmail's intent but without showing gmail's interface?
Click to expand...
Click to collapse
not bad. I prefer this way.

good job pal

Hi, nice idea, but if the user has to input the password, I find the intent safer and much more trusted.

DaGr81 said:
what about sending email using gmail's intent but without showing gmail's interface?
Click to expand...
Click to collapse
Is this even possible?
Sent from my Galaxy Nexus using Tapatalk

Good!
Thank you, exactly what I've wanted!:laugh:

So you need to enter the username and password for it right?
This is already done and show some references or credits, people deserve it. Link i found in the stackoverflow some months before - LINK
Also using this library or this method the chances of play store app suspension is very HIGH. and Im one of the developer who faced it. My app was sending mails from background with users request. It collected username and password (but never manipulated). And ended up in app suspension!!
Now i use GMAIL AUTH for sending mails from background. And this is the preferred method since it never collect the users ID and Password. The user will be prompted to login the gmail in a web interface and if he authorize your app, the app can send mails from background without user intervention then... as simple as that, and a safe and secure way!

Thank you all for your interest in this project. I'm not saying it's perfect safety, feel free to add your code. I have added password encryption in the new version.

thanx for sharing your library. but i still prefer to use intents. i guess to each his own.

I just updated library to version 1.4 so now you can send attachments via library.

Related

[Updated:2011-02-24] 1x1 Ultimate Unread Widget (Sense + Vanilla + Motoblur)

The app is finally done and in the Market (1x1 Ultimate Unread Widget), and supports many more features than I expected when it started Thanks for all the input everyone! Here's the release with more screenshots/features, etc: http://nowsci.com/ultimateunreadwidget
Features Include:
Support for Vanilla E-mail Client
Support for HTC E-mail Client
Support for MotoBlur E-mail Client
Multi-folder select
Allows for multiple instances of the widget with different folder settings for each
Saves battery by only updating when the screen is turned on
Changelog:
v07
Fixed a large scale permissions issue causing the application to not find accounts or update unread counts
Now works in most new ROMs, including custom ROMs such as CyanogenMod7
v05 - v06
Internal Code Enhancements
v04
MotoBlur Email Support
v03
HTC Sense Support
Stock Android Email Support
[=--- Original Post ---=]
Hey Everyone,
I'm about to release this into the Market, but wanted some preliminary input. I've noticed a lot of people in forums requesting a 1x1 unread e-mail widget for those running HTC Sense and the included mail application. I've completed a widget that does this, though unfortunately it requires Root because it must open some of the HTC Sense databases. It shows a compiled total of all unread mail in all inboxes. When clicked, it opens the HTC Mail reader to it's last state.
[[ To be clear, this works with ALL E-mail accounts, Exchange, POP, IMAP, etc. Not just GMail like many of the other widgets out there now. ]]
I was originally planning to make the widget support a single inbox at a time, so you could run a different instance of the widget with a different icon for each of your mail accounts, but after going through the HTC dex files, I'm not sure how I could have it call up a specific mail account when clicked on.
Also, I've yet to determine how HTC signals their own widget to update the counts. Until I figure that out, it currently updates whenever the screen is turned on.
Thoughts, input, suggestions?
Thanks.
I've actually created a version to work with the stock email reader as well.
I currently have an "Gmail Unread Count" or something widget on Sense which does exactly this, very customizable (choose what icon etc) and I don't have root access.
Fmstrat said:
I've actually created a version to work with the stock email reader as well.
Click to expand...
Click to collapse
I am extremely interested in this.
Droid X
Snowtoad23 said:
I currently have an "Gmail Unread Count" or something widget on Sense which does exactly this, very customizable (choose what icon etc) and I don't have root access.
Click to expand...
Click to collapse
Correct me if I'm wrong, but this only grabs the "Gmail" unread counts, not other accounts you're syncing through the phone, right?
Fmstrat said:
Correct me if I'm wrong, but this only grabs the "Gmail" unread counts, not other accounts you're syncing through the phone, right?
Click to expand...
Click to collapse
You are correct... only gmail
Fmstrat said:
I've actually created a version to work with the stock email reader as well.
Click to expand...
Click to collapse
Mind if I test it ?
I would be interested in this too.
Any chance you could also add an option to only make it count unread mail for a certain label. And then have multiple instances of the widget so it's easy to monitor said labels.
Would happily test and pay for it as it is a feature many people have been yearning for.
Sent from my GT-I9000 using XDA App
All Day On XDA said:
I would be interested in this too.
Any chance you could also add an option to only make it count unread mail for a certain label. And then have multiple instances of the widget so it's easy to monitor said labels.
Would happily test and pay for it as it is a feature many people have been yearning for.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
This is a great idea. I'll look into this. Thanks!
Testing shouldn't be necessary, I've got a few different phones I'm trying it out on. I'll throw it up in the market soon, and put a post here when it's there.
You're a star! Thanks so much
Sent from my GT-I9000 using XDA App
@Fmstrat
that qould be great. I'm also very interested in this widget
Will this be available on additional launchers instead of just Sense? I am using an Evo but have Launcher Pro as my default home. I do miss the count on the Sense widget, but not enough to switch back.
jedwardmiller said:
Will this be available on additional launchers instead of just Sense? I am using an Evo but have Launcher Pro as my default home. I do miss the count on the Sense widget, but not enough to switch back.
Click to expand...
Click to collapse
Does Launcher Pro have it's own email client? This Widget is based specifically on the client. For instance, I'm running Sense, but have installed the stock vanilla 2.2 email client through an APK. I then run the Vanilla version of the widget for the stock email client, OR I can run the Sense version for the HTC client.
Thanks.
@FMstrat
Are my PMs reaching you?
All Day On XDA said:
@FMstrat
Are my PMs reaching you?
Click to expand...
Click to collapse
Yup, just responded. Thanks.
Also very interested in this. Have found that Androids lack of good email widgets and apps to be very disappointing. Gmail Unread Count is good but is very tempremental about how many accounts it can handle. Cuurentlt I'm rocking 3 Gmail accounts & a MS Exchange account. This app would be greatly appreciated
squire23 said:
Also very interested in this. Have found that Androids lack of good email widgets and apps to be very disappointing. Gmail Unread Count is good but is very tempremental about how many accounts it can handle. Cuurentlt I'm rocking 3 Gmail accounts & a MS Exchange account. This app would be greatly appreciated
Click to expand...
Click to collapse
How do you have them all set up? 1 in the Gmail app, 2 in IMAP? All in one? etc. I may want you to do a test run for me before I release if you don't mind, as that's a pretty extreme case.
Thanks!
Fmstrat said:
How do you have them all set up? 1 in the Gmail app, 2 in IMAP? All in one? etc. I may want you to do a test run for me before I release if you don't mind, as that's a pretty extreme case.
Thanks!
Click to expand...
Click to collapse
Yeah.
Gmail Unread App - use this for my main personal Gmail account
HTC Stock Email App - use this for the other 2 Gmail accounts (1 business / 1 forums/eBay) + my current MS Exchange account
It's cumbersome to say the least. The HTC Stock Email app is okay but to be honest it's slow, not very user-friendly & looks crap. I thought I might be able to split the accounts easily with Gmail Unread app but I find that really is very difficult to add an 2nd account not to mind a 3rd. Sometimes it'll work but more often than not - it won't.
Using Android 2.1 on HTC Legend. Not rooted (no need!).
squire23 said:
Using Android 2.1 on HTC Legend. Not rooted (no need!).
Click to expand...
Click to collapse
Unfortunately root is required for this widget to read HTC's mail database. If you're willing to root, I haven't had a Sense 2.1 tester yet.
Thanks.
I just wanted to give everyone an update since it's been a while (I was traveling last week, and will be again next week). I'm applying for the Market and adding in code for Licensing and Versioning now. The widget will be released very soon after that, and has been renamed 1x1 Ultimate Unread Widget. I will post again with a market link when it's out.
If there are any other mail readers people would like added for phase 2, such as K9, or any other features, such as icon switching, or changing the update frequency, let me know. The more requests (public, no PM please) for an item, the higher I will place it in the list.
Thanks again for the interest.

HTC Mail on 2.3.3

Hi All
Anyone else got this problem
I updated yesterday to 2.3, and now I'm having problem with the htc mail with Hotmail account as a Exchange sync.
Fist off all it won't download any of my past emails, even when i change the option to 30 days or 3 days etc..
Secondly every time i read an email for delete one and it does a refresh it pull all the emails down again thinking its a new set-up, so it doesn't mark the emails on the server.
Anyone know of any fix for this?
Nik
Hotmail never worked for me using HTC Mail App. I use touchdown now.. much better, but you gotta pay for it
I have the same issue as you describe, would believe it is consistent on all 2.3.3 DHD devices.
Exchange (via HTC mail) on froyo did not work with the Hotmail server, and it seems they still haven't got it working as it should with 2.3.3 either.
Does anyone know where i can get the Android Mail apk for 2.3.3
I tried looking for it on 4shared but with no luck. I downloaded "Enhanced Email" from the market and it works exactly the same way!
airsick and niktheman, I have PM you the link for the stock .apk
springy said:
airsick and niktheman, I have PM you the link for the stock .apk
Click to expand...
Click to collapse
can you PM me the link as well?
thanks
niktheman said:
Does anyone know where i can get the Android Mail apk for 2.3.3
Click to expand...
Click to collapse
Is the Mail apk (I assume you mean the default email app on nexus s) the same as "improved email" app? it's free from marketplace and I use it everyday with @hotmail, @msn, and @live account. All exchanges work just great (you must know you need to use server: "m.hotmail.com" in exchange settings right?).
So I think there is no need to use mail apk app or the HTC one, "improved email" is just good.
springy said:
airsick and niktheman, I have PM you the link for the stock .apk
Click to expand...
Click to collapse
Downloaded it, b ut it won't install, i also do have unknown sources ticked.
Hi,
I found I had the same problem with the HTC email app when I upgraded to a Gingerbread ROM.
The only way I was able to resolve the issue was to delete all five accounts then manually add each account again (three IMAP gmail, two POP hotmail).
Everything has worked since then (although I don't like how the unread count now relates to since you last used the app rather than actual amount of unread messages).
Hope this helps.
p.s. good to see another LFC fan. With King Kenny at the helm and Suarez buzzing, we've got a good chance of getting back in the Champions League next year - all we need is a top left back and good wingers.
I am expericencing this issue also but on my HTC Evo. Ive tried everything i can think of and nothing. No one has a fix yet? Do I need to install a different email app???
still searching for a link to download the APK :S
How to install / configure stock Android GB Mail App for GB
Here is the stock Android GB Mail App.
It does not quite have the options of HTC Mail app, but at least it's free, and exchange WORKS with Hotmail Exchange . But no HTML
Use Root Explorer to either "move" or "copy" from your sdcard
Navigate to: /data/app & "paste"
Long tap & "permissions", give Owner -> read-write-execute & OK
Reboot
Go to App Drawer and you will find it there & tap for;
Setup:
[email protected]
password
default
->Manual setup
->Microsoft Exchange ActiveSync
Domain\Username: \[email protected] (Ensure have the \[email protected] in FULL)
Password: Leave as already filled
Server: m.hotmail.com
Check - Use secure connection (SSL)
UNcheck - Accept all SSL certificates
->Next
->-> Follow the prompts from there.
Once setup, add shortcut to homescreen found in: Personalise / Add shortcut
Done, enjoy

Features other Android devices have that you wish the SGS2 had (and solutions)...

Hey guys,
Just got my SGS2 last week and have spent the last for days exploring and familiarizing myself with it.
I must say i am so far impressed and disappointed... i previously had a HTC Desire and there are a few things the Desire could do that the SGS2 cannot.
I figured we might as well start listing some things that the SGS2 cannot do, but you feel it should be able to do (with possible solutions if any).
so ill get it started...
1. Default Email Client - should be able to set update frequency by time of day.
The HTC mail app on my Desire had a setting where i could set the send/receive frequency depending on the time of day. For instance... between 8.00AM and 8.00PM i could have it update hourly, and between 8.00PM and 8.00AM it would update every 4 hours. The email setup is use is POP3 with Hotmail.
Solution: Setup hotmail (and other webmail providers?) as an exchange account. This will allow you greater control over your email client and its settings (include advanced update scheduling, folders, max email size, etc. I used this guide here.
2. Default Email Client - Be able to forward emails with attachments and the email trail. Seems to be a bug with the stock email app that makes this impossible.
Tested with the default email client on the SGS2 (hotmail with POP3), the attachments will not forward completely, only a portion of the attached file will forward and it will be corrupt when received, cannot open on receiving end. Also tested setting up hotmail as an exchange account, and the app will hang on the "fetching attachment" screen. A second attempt forwarding attachments with an exchange account was successful.
Solution: Setup email as an exchange account (see above) or use 3rd party app - Suggestions on which apps?
3. TouchWiz - Show the default number of 8 apps (rather than 6) in the recent apps list (accessible by long-pressing the Home key)
Solution: Root and install the mod or flash the appropriate ROM that has this feature. CyanogenMod is one.
4. Default Web Browser - Hide the notification bar in the Browser app.
Solution: 3rd party app - Dolphin Browser HD can do this in its 'fullscreen' mode - any suggestions on other apps?
5. Default Web Browser - Have real text reflow on any zoom level in the Browser app. (Like HTCs)
Solution: 3rd party app - Opera Mobile, Boat Browser and Boat Browser Mini have the ability to reflow on a variety of zoom levels by using the onscreen zoom buttons.
6. CRT screen-off animation.
Solution: Root and install the mod or flash the appropriate ROM that has this feature.
7. System/Power management - Better power management when wifi is 24/7 enabled with IM applications, The S1 could last for a close to 1.5 days with that setup the S2 barely lasts 20hrs due to the AOS bug... Iphone3GS/4 can last as high as 3days.
8. System/Network Capabilities - No Near Field Communication (NFC)?
Solution: The SGS2 supports NFC depending on which version of the phone you have. NFC is enabled on some versions, and not on others. Source Source Source
9. System/Notification Settings - There are no repeat audible notifications for missed called and messages.
Solution: 3rd party app - Vibration Notifier, GO SMS Pro
10. System/Notification Settings - Privacy settings in the notification bar. Why can't I turn off the displaying of message content in the notification bar?
Solution: Use Go SMS Pro. You can set that to just say "New Message", instead of showing the content. Go SMS Pro > Settings > Notification Settings > Default Notification Settings > Notification Bar Privacy Mode.
11. System/Connectivity - bluetooth support (proper) so we can use bluetooth controllers like the ps3 and wii one.
Solution: Root and install the mod or flash the appropriate ROM that has this feature.
12. System/Connectivity - Reverse Tether.
Some HTCs ( Desire HD, Sensation) and other devices have reverse tether via USB - feature seems to be missing on SGS2.
13. Application Range - Ability to install some stock Android Apps.
14. System/Notification Settings/TouchWiz - Ability to dismiss notifications individually.
CyanogenMod had this ability by simply swiping them horizontally.
Solution: Root and install the mod or flash the appropriate ROM that has this feature.
15. Advanced IPSEC VPNs - For whatever reason, Samsung did not include this functionality with their 2.3.x FW.
As a result, VPN compatibility is very limited without hacking.
16. Contacts App - Display cropped version of profile picture for contacts when assigned through contact link/sync.
Not sure how to describe this one... HTCs Contacts App would crop a contact photo to suit its app's square frame (maintaining photo's proportions/aspect ratio). Samsung's contacts app will squash the photo to suit the square frame (distorting photo's proportions). Go Contacts will shrink a contact photo to suit the square frame (maintaining photo's proportions/aspect ratio). I would like the Samsung and Go Contacts apps to display their contact photos like the HTCs do. I have attached an image to try and explain my issue.
List is a work in progress - i will continue to build the list and add to it any suggestions anyone has. Also, i will not be able to test all the solutions i post, and many of the comments/solutions will be simply copied and pasted from your posts. So please feel free to test and make any corrections to the problem/solution list.
Hopefully this will help any users with their transitions from their old devices to the SGS2.
I welcome all input, thanks guys.
[email protected] said:
Hey guys,
Just got my SGS2 last week and have spent the last for days exploring and familiarizing myself with it.
I must say i am so far impressed and disappointed... i previously had a HTC Desire and there are a few things the Desire could do that the SGS2 cannot.
I figured we might as well start listing some things that the SGS2 cannot do, but you feel it should be able to do (with possible solutions if any).
so ill get it started...
1. Email app - should be able to set update frequency by time of day.
The HTC mail app on my Desire had a setting where i could set the send/receive frequency depending on the time of day. For instance... between 8.00AM and 8.00PM i could have it update hourly, and between 8.00PM and 8.00AM it would update every 4 hours.
Thats all i can think of at the moment - i will continue to build the list and add to it any suggestions anyone has.
Hopefully this will help any users with their transitions from their old devices to the SGS2.
I welcome all input, hanks guys.
Click to expand...
Click to collapse
You can set the update frequency time for the Email app. You just need to go to Settings -> Accounts -> "Exchange" or "Pop3" account -> Account Settings.
Granted that I am using Exchange so I am not too sure if that works for Pop but I think if the setting is there, it should also work for Pop3 account.
I am on KG5 so I am not sure if that is a new feature or not as I can't remember with the older version. I was using Moxier Mail previously which allows you to do that as well.
- Be able to forward emails with attachments and the email trail. Seems to be a bug with the stock email app that makes this impossible.
Solution: 3rd party app
- Show the default number of 8 apps (rather than 6) in the recent apps list (accessible by long-pressing the Home key)
- Hide the notification bar in the Browser app.
Solution: 3rd party app
- Have the text reflow on any zoom level in the Browser app.
Solution: 3rd party app
- CRT screen-off animation.
Solution: Root and install the mod or flash the appropriate ROM that has this feature.
ohyeahar said:
- Be able to forward emails with attachments and the email trail. Seems to be a bug with the stock email app that makes this impossible.
Solution: 3rd party app
- Show the default number of 8 apps (rather than 6) in the recent apps list (accessible by long-pressing the Home key)
- Hide the notification bar in the Browser app.
Solution: 3rd party app
- Have the text reflow on any zoom level in the Browser app.
Solution: 3rd party app
- CRT screen-off animation.
Solution: Root and install the mod or flash the appropriate ROM that has this feature.
Click to expand...
Click to collapse
I have forwarded emails with attachments pleanty of times on the stock email app (note, not the GMail app).
Text reflow can be enabled in the stock browser.
I agree with the stock rom having the CRT animation.
So far the only 'fault' I can find is I wish the speaker was placed somewhere better, where it isn't so easy to cover.
Sent from my GT-I9100 using XDA App
escaflo said:
You can set the update frequency time for the Email app. You just need to go to Settings -> Accounts -> "Exchange" or "Pop3" account -> Account Settings.
Granted that I am using Exchange so I am not too sure if that works for Pop but I think if the setting is there, it should also work for Pop3 account.
I am on KG5 so I am not sure if that is a new feature or not as I can't remember with the older version. I was using Moxier Mail previously which allows you to do that as well.
Click to expand...
Click to collapse
hi mate, i understand the update frequency can be set. but on the Desire i could set it for on peak and off peak intervals. different update frequence for different times of the day.
cheers mate.
[email protected] said:
hi mate, i understand the update frequency can be set. but on the Desire i could set it for on peak and off peak intervals. different update frequence for different times of the day.
cheers mate.
Click to expand...
Click to collapse
Open up account settings in the email app and go to Sync schedule, there you can set the peak and off-peak schedule at the top, i use this feature and it works great
Hi
I am not too sure but I am able to set peak and off-peak schedule. So my current sync is push during peak hour and 15 minutes sync during off peak. You can also set the time which is peak and off peak.
If you need more fine grain control over it, I didn't know HTC can do it. I got a htc sensation at home maybe I can try with that.
Sent from my GT-I9100 using Tapatalk
segagamer said:
... So far the only 'fault' I can find is I wish the speaker was placed somewhere better, where it isn't so easy to cover.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Ah I completely agree, I tend to accidently cover the speaker a lot in landscape position during vid watching or gaming.. and the mic position isn't great, have taken a few videos where I've covered it and sound becomes muffled
viva.fidel said:
Open up account settings in the email app and go to Sync schedule, there you can set the peak and off-peak schedule at the top, i use this feature and it works great
Click to expand...
Click to collapse
what type of email account are you using? i have a pop3 setup with hotmail, using the default email app.
cheers.
segagamer said:
Text reflow can be enabled in the stock browser.
Click to expand...
Click to collapse
can you please explain how to set this up?
cheers.
[email protected] said:
what type of email account are you using? i have a pop3 setup with hotmail, using the default email app.
cheers.
Click to expand...
Click to collapse
For the browser:
Go to the Browser->Settings->Auto-fit pages. Check the box and it will automatically re-flow the page.
For the email:
I am not sure if it works for Hotmail as I am using Exchange. Can you go into Accounts-> Hotmail -> Accounts Settings -> Schedule Sync? If not, I guess that's the limitation of it and that it only works for Exchange.
i want the stock rom has the crt off screen animation
Better power management when wifi is 24/7 enabled with IM applications, The S1 could last for a close to 1.5 days with that setup the S2 barely lasts 20hrs due to the AOS bug... Iphone3GS/4 can last as high as 3days.
escaflo said:
For the browser:
Go to the Browser->Settings->Auto-fit pages. Check the box and it will automatically re-flow the page.
Click to expand...
Click to collapse
Complete BS. If you don't know what proper reflow means please don't give these kinds of advice. The stock browser does NOT reflow. It only has a two-step zoom level, that is it.
There is no way to zoom to a specific value you want after which the text will reflow. Only (some) user-installable browsers do this the way it is supposed to work.
escaflo said:
For the browser:
Go to the Browser->Settings->Auto-fit pages. Check the box and it will automatically re-flow the page.
For the email:
I am not sure if it works for Hotmail as I am using Exchange. Can you go into Accounts-> Hotmail -> Accounts Settings -> Schedule Sync? If not, I guess that's the limitation of it and that it only works for Exchange.
Click to expand...
Click to collapse
Use safari on the iphone/ipad, thats reflow.. theres a difference between that and auto fit.
NFS & a slightly higher res screen is something i wish it had, but it does not matter too much.
My input to missing featutes
There are no repeat audible notifications for missed called and messages...I have to use a clunky app for this basic functionality.
Privacy settings in the notification bar - why can't I turn off the displaying of message content in the notification bar?
Sent from my GT-I9100 using XDA App
Pfeffernuss said:
Complete BS. If you don't know what proper reflow means please don't give these kinds of advice. The stock browser does NOT reflow. It only has a two-step zoom level, that is it.
There is no way to zoom to a specific value you want after which the text will reflow. Only (some) user-installable browsers do this the way it is supposed to work.
Click to expand...
Click to collapse
Er.. I think you should check a little before you rant at someone. You're both wrong (and right).
Yes, you can only double tap to zoom in and out for text reflow to work. However, there are 3 different levels of zoom, which can get selected via the settings.
Whilst this is not as useful as text reflow with pinch-to-zoom, it is still a lot more effective than you suggest.
manmikey said:
My input to missing featutes
Privacy settings in the notification bar - why can't I turn off the displaying of message content in the notification bar?
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
+1 for that
manmikey said:
Privacy settings in the notification bar - why can't I turn off the displaying of message content in the notification bar?
Click to expand...
Click to collapse
soysuperbien said:
+1 for that
Click to expand...
Click to collapse
And the solution - use Go SMS Pro. You can set that to just say "New Message", instead of showing the content.

[Q] Stock Email App??

My stock email app has quit pushing emails from my accounts. I have combed through all the settings, incoming & outgoing, and re-set everything but still no results. It will only bring in emails manually.
However, my Gmail app is working.
I have lightspeed 1.0.2 rooted.
Any help is appreciated. Thanks
eersfanpilot said:
My stock email app has quit pushing emails from my accounts. I have combed through all the settings, incoming & outgoing, and re-set everything but still no results. It will only bring in emails manually.
However, my Gmail app is working.
I have lightspeed 1.0.2 rooted.
Any help is appreciated. Thanks
Click to expand...
Click to collapse
Cat the log and check for errors?
entropy.of.avarice said:
Cat the log and check for errors?
Click to expand...
Click to collapse
Thanks for the reply but that is over my head. I am a Noob. I know where to look at the log when an error occurs with trying to put a ROM in and it fails to install but I am not sure where to find the log to examine how an App is functioning.
Question, I have Acer Sync frozen in TB. I am not sure if they are related but maybe someone here knows. I am not sure why my GMail works and pushes new emails to my tablet and phone but not the stock client.
If I can not get this to work, any recommendations on an Email app from the market that I could use and see multiple email accounts?
One other thing, just thinking out loud trying to figure this out....
My phone (old HTC G1) has the same stock email apk. It also has stopped pushing emails from my yahoo and work server to my phone. (The same way my tablet has stopped)
Gmail still pushes to both devices no problem.
Could it be an account issue with having two devices registered somehow? I can't imagine this would be the case.
eersfanpilot said:
One other thing, just thinking out loud trying to figure this out....
My phone (old HTC G1) has the same stock email apk. It also has stopped pushing emails from my yahoo and work server to my phone. (The same way my tablet has stopped)
Gmail still pushes to both devices no problem.
Could it be an account issue with having two devices registered somehow? I can't imagine this would be the case.
Click to expand...
Click to collapse
Download "catlog" (free) from market. Start log recording. Start email app. Switch back to log and look
for any errors.
Might not help, but might give you some kind of clue to the nature of the problem. Never used Yahoo! for mail, wish I could help more.
entropy.of.avarice said:
Download "catlog" (free) from market. Start log recording. Start email app. Switch back to log and look
for any errors.
Might not help, but might give you some kind of clue to the nature of the problem. Never used Yahoo! for mail, wish I could help more.
Click to expand...
Click to collapse
Interesting program. It really shows how much is running in the background on these things.
Anyway, here is the result:
Attempt 1 based on your instructions. Nothing really stands out that I can see. There were no new emails in either inbox.
08-27 18:05:30.010 I/Email (10845): ReconcilePopImapAccountsSync: start
08-27 18:05:30.190 I/Email (10845): ReconcilePopImapAccountsSync: already running
08-27 18:05:30.200 I/Email (10845): ReconcilePopImapAccountsSync: already running
08-27 18:05:30.210 I/Email (10845): ReconcilePopImapAccountsSync: done
08-27 18:05:52.270 D/Email (10845): *** synchronizeMailboxGeneric POP3***
08-27 18:05:56.210 D/Email (10845): *** synchronizeMailboxGeneric ***
Attempt 2.
This time I used GMail to send myself a test email with my stock Email APK open and running in the background. It should have pushed the notice that a new email arrived. It did nothing. Once I switched windows using the button down by the home button on the tab this is the result.
08-27 18:18:22.740 D/Email (10845): *** synchronizeMailboxGeneric ***
08-27 18:18:24.150 W/Email (10845): Line 8: Unexpected end of headers detected. Boundary detected in header or EOF reached.
08-27 18:18:24.150 W/Email (10845): Line 8: Body part ended prematurely. Higher level boundary detected or EOF reached.
Any ideas?
Well. I seemed to have found a fix for the time being. I went into the settings and app management and deleted the data from the email apk and also force stopped the email exchange services, then re-booted.
Sent another test email from Gmail to Yahoo (after resetting up the account settings) and it pushed through.
Seems some of the apps once you flash a custom ROM need to be reset sometimes.

[HOW-TO] Bypass Exchange Security for NINE email

All,
The "Nine" exchange email app available on the play store gives you the option of Device Exchange Security protocol via device administrator OR Software level Exchange Security protocol. In other words, to receive exchange email you can either be forced to screen lock your phone or password protect the nine app to receive your exchange mail.
I have figured out how to remove the software level exchange security protocol if anyone is interested.
Here is the very quick how to.
**Prerequisite**
You must be rooted.
1. Download app
2. Install app and setup your exchange email. Use app level exchange security NOT device level.
3. Set your password. We will remove this policy later
4. Make sure your email starts to flow in
5. Download your favorite SQL database editor. I use SQLlite
6. Open database editor and go to the nine app
7. Open email provider db then account.... change policy key from 2 to 0 then save.
8. Leave account then go to policy. You are still inside email provider db.
9. Change the password mode from 2 to 0. This is the first setting at the top of the list. Scroll down to protocol policy required... Set this to 0. Then scroll all the way down to the bottom to the last policy item called alphanumeric password required... Change this from 2 to 0. Then hit save.
10. Now, back out of the SQL editor... Don't open nine email yet.
11. Force close nine email. You must force close instead of removing from recent
12. Start nine email. Go to security and enter your password once if it asks. May not even ask. Then Uncheck "password".
13. Reboot, profit. At this point the exchange policy should now be bypassed.
If this helped you by me a beer!!! See donate button by my name.
Follow me on Twitter for more awesome tweaks. @bash_array
Screenshot
Hi, tried this but I can't locate that database. I must be doing some thing wrong. I'm using a Oneplus One but I don't see the email provider db. Can you post a screen shot of what it should look like after I select Nine from the app list in SQLite? Also, there are multiple SQLite apps, which one are you using?
Here is the app I use....
https://play.google.com/store/apps/details?id=com.speedsoftware.sqleditor
Here is a screenshot. Note, the databases won't be created until you fully setup your email in nine and begin receiving emails. Once you do that it'll look like this.....
bash_array said:
Here is a screenshot. Note, the databases won't be created until you fully setup your email in nine and begin receiving emails. Once you do that it'll look like this.....
Click to expand...
Click to collapse
Not sure what I'm doing wrong. I have Nine setup with my work account and it's working but when I follow your steps I don't see the databases?
I'm on the One plus one if that matters.
hamzer11 said:
Not sure what I'm doing wrong. I have Nine setup with my work account and it's working but when I follow your steps I don't see the databases?
I'm on the One plus one if that matters.
Click to expand...
Click to collapse
Are you rooted? My apologies. I forgot to mention that you must be rooted in order to see secured databases
bash_array said:
Are you rooted? My apologies. I forgot to mention that you must be rooted in order to see secured databases
Click to expand...
Click to collapse
Yes I am. It asked and was granted permissions. You can see the # symbol in the status bar while SQLite is running. I will check again.
edit: Checked again and it has root. My Nine version is 1.8.0d (108004) Licensed. Not sure that matters.
I have the licensed app too. What OS are you running? Cm12?
bash_array said:
I have the licensed app too. What OS are you running? Cm12?
Click to expand...
Click to collapse
Yes. I will try removing the account and adding it again. I checked other apps and they all seem to have their databases.
Tried deleting account and reinstalling app. No luck. When I add my work account it forces me to accept encryption, does that have anything to do with it? I really would love this to work but I don't know what else to do.
hamzer11 said:
Tried deleting account and reinstalling app. No luck. When I add my work account it forces me to accept encryption, does that have anything to do with it? I really would love this to work but I don't know what else to do.
Click to expand...
Click to collapse
You want to set everything up including allowing the app to force you to create a password. Don't use device level security. Use app level security within nine. Once your password is set and you have begun receiving emails then the email provider db will be created. After you have set a password and get your emails up and running then go into sqlite and follow the edit instructions
bash_array said:
You want to set everything up including allowing the app to force you to create a password. Don't use device level security. Use app level security within nine. Once your password is set and you have begun receiving emails then the email provider db will be created. After you have set a password and get your emails up and running then go into sqlite and follow the edit instructions
Click to expand...
Click to collapse
I tried everything you said. I am convinced that the DB is being hidden somehow (encrypted maybe). I tried another app, aSQLiteManager. Navigated to the Nine app folder in data/data. Then went into the databases folder. Here I see the following databases:
LogReporter.db
SecureEMailProvider.db
SecureEmailProviderBackuip.db
SecureEmailProviderBody.db
I noticed all have the work "secure" before it except LogReporter. For some reason SQLite app can only see the ones not listed as secure. So I thought I was good to go but when I click on SecureEmailProvider.db I get the message "/storage/emulated/0/aSQLiteManager/SecureEmailProvider.db is not a database"
No idea where to go from here. Appreciate your help but I guess it just won't work for me. It would be nice if someone else was also trying. I should note again that I can see and open databases for other apps just fine.
bash_array said:
All,
The "Nine" exchange email app available on the play store gives you the option of Device Exchange Security protocol via device administrator OR Software level Exchange Security protocol. In other words, to receive exchange email you can either be forced to screen lock your phone or password protect the nine app to receive your exchange mail.
I have figured out how to remove the software level exchange security protocol if anyone is interested.
. @bash_array
Click to expand...
Click to collapse
Any idea if this still works on version 1.8.19? If not, do you know of any other options?
clambert11 said:
Any idea if this still works on version 1.8.19? If not, do you know of any other options?
Click to expand...
Click to collapse
I can confirm this on 1.8.19a
It worked!!!! You are amazing.. Thanks a lot.
---------- Post added at 11:34 PM ---------- Previous post was at 11:33 PM ----------
Worked in latest version that I downloaded from google play today.. 1.8.21
Thanks, worked great for me on both my phone and on my tablet.
hamzer11 said:
I tried everything you said. I am convinced that the DB is being hidden somehow (encrypted maybe). I tried another app, aSQLiteManager. Navigated to the Nine app folder in data/data. Then went into the databases folder. Here I see the following databases:
LogReporter.db
SecureEMailProvider.db
SecureEmailProviderBackuip.db
SecureEmailProviderBody.db
I noticed all have the work "secure" before it except LogReporter. For some reason SQLite app can only see the ones not listed as secure. So I thought I was good to go but when I click on SecureEmailProvider.db I get the message "/storage/emulated/0/aSQLiteManager/SecureEmailProvider.db is not a database"
No idea where to go from here. Appreciate your help but I guess it just won't work for me. It would be nice if someone else was also trying. I should note again that I can see and open databases for other apps just fine.
Click to expand...
Click to collapse
Were you able to fix this issue? I have same problem and not able to figure out how to disable this.
bash_array said:
All,
The "Nine" exchange email app available on the play store gives you the option of Device Exchange Security protocol via device administrator OR Software level Exchange Security protocol. In other words, to receive exchange email you can either be forced to screen lock your phone or password protect the nine app to receive your exchange mail.
I have figured out how to remove the software level exchange security protocol if anyone is interested.
Here is the very quick how to.
**Prerequisite**
You must be rooted.
1. Download app
2. Install app and setup your exchange email. Use app level exchange security NOT device level.
3. Set your password. We will remove this policy later
4. Make sure your email starts to flow in
5. Download your favorite SQL database editor. I use SQLlite
6. Open database editor and go to the nine app
7. Open email provider db then account.... change policy key from 2 to 0 then save.
8. Leave account then go to policy. You are still inside email provider db.
9. Change the password mode from 2 to 0. This is the first setting at the top of the list. Scroll down to protocol policy required... Set this to 0. Then scroll all the way down to the bottom to the last policy item called alphanumeric password required... Change this from 2 to 0. Then hit save.
10. Now, back out of the SQL editor... Don't open nine email yet.
11. Force close nine email. You must force close instead of removing from recent
12. Start nine email. Go to security and enter your password once if it asks. May not even ask. Then Uncheck "password".
13. Reboot, profit. At this point the exchange policy should now be bypassed.
If this helped you by me a beer!!! See donate button by my name.
Follow me on Twitter for more awesome tweaks. @bash_array
Click to expand...
Click to collapse
Please excuse this shameless hijack but it is somewhat on topic.
My company uses Outlook Web Access through Office 365 and previously I was able to use NINE to access my email. I was even able to execute this bypass hack. Recently however my company's server stopped allowing access to NINE. I thought it might be because of the bypass hack so I factory reset the phone and tried to do a fresh install and setup and it doesn't work. I tried several OWA apps and the only that works is MobiMail.
Any idea why NINE doesn't work anymore?
HTC-OH_SNAP said:
Please excuse this shameless hijack but it is somewhat on topic.
My company uses Outlook Web Access through Office 365 and previously I was able to use NINE to access my email. I was even able to execute this bypass hack. Recently however my company's server stopped allowing access to NINE. I thought it might be because of the bypass hack so I factory reset the phone and tried to do a fresh install and setup and it doesn't work. I tried several OWA apps and the only that works is MobiMail.
Any idea why NINE doesn't work anymore?
Click to expand...
Click to collapse
NINE does not use OWA, it uses active sync. MobiMail connects via OWA, so very much like a web browser. I would first ask a few co workers if their active sync app still works. If theirs does not work your IT Department broke activesync or turned it off on everyone.
If theirs works the IT Department turned it off on just your mailbox.

Categories

Resources