ACTION_SEND mail formatting, w/ tables? - Android Q&A, Help & Troubleshooting

Hey guys,
I am currently developing an app which also populates an Intent.ACTION_SEND (to any email app) and hands over an extra with some text. However, because I want to display a table with data in the mail I am kind of stuck at formatting.
I did try (just to display an example)
Code:
.putExtra(Intent.EXTRA_TEXT,Html.fromHtml(intentcontent+"<br><br>-----------------<br>"+"<i><b>Depot Droid</b> - "+getText(R.string.footer)+"</i>"));
to achieve some formatting, which worked for everything. but not for tables. I'd be populating the "<table>" in some loop but didn't manage to get ANY table shown in the mail....
any workaround or something?
Thanks in advance

Related

[Q] Questionable system apps and widgets

Hello all,
This is my first post here.
Id like to start by thanking everybody on this site for the volumes of info. You guys rock!
Q: why do strange apps have full permissions?
I have learned so much from everyone here since addopting android. I've recently rooted my thunderbolt and i've been looking at alot of the system info. There is alot of stuff that seems quite questionable (and slightly shady). For example there is a widget running in the background constantly called htc clock widget. This has prettymuch every system permission, and i have no idea why. Also checkin services has the same permissions. I've tried to research both apps extensively but i can barely find any info, every one seems to have questions, but no answers. I might be paranoid, but if something is going to have access to that much info i'd like to know why it needs it. Actually the only info i could find on the subject was through "bing" which seems sort of strange to me. If anyone has any info regarding this, i would greatly appreciate it.
Thank you in advance
Well if you think HTC is stealing your info from the clock widget you are very paranoid about technology lol. What permissions worry you about it. Need to be more detailed than "every permission. "
Mah BAMF Thunderbolt
Mah BAMF Thunderbolt
Well i dont know how to copy from the app info so ill summarize.
Both clock widget (not the clock mind you), and checkin service have as follows
Messages: read attachments, edit sms and mms, read sms and mms, recieve sms and mms
Location: course and fine
Personal info: calender events, read write browser history and bookmarks
Network: create bluetooth connections, full internet access
Your accounts: google mail, manage account list, use credentials
Storage: modify sd contents
Phone calls: modify phone state, read phone state identity
System tools: bluetooth, change network connectivity, change wifi state, change wimax state, modify global system settings, prevent phone from sleeping, retrieve running apps, set time zone, write access point name, write sync settings
Well thats what the widgets got, seems like alot to me. Htc checkin service i have read about and i guess its googles way of recieving anonymous user data. And i guess you can disable it in the build.prop. Any ideas?
How do you figure the time stamps get in your messages, files, etc...? Something has to relay the time to the apps so it's correct.

S Note permissions comparison? (stock with ICS versus S Choice app store)

Could anyone out there tell me if the S Note that you got with the ICS update - NOT downloaded from S Choice, or from the file that I saw floating around the forum, just the ones that came with ICS automatically - matches the following permissions?
- Your personal information
add or modify calendar events and send email to guests without owner's knowledge, read Browser's history and bookmarks, read calendar events plus confidential information, read contact data, read user defined dictionary, write Browser’s history and bookmarks, write contact data
- Services that cost you money
directly call phone numbers, send SMS messages
- Your location
coarse (network-based) location, fine (GPS) location
- Your messages
edit SMS or MMS, read SMS or MMS, receive SMS or MMS
- Network communication
control NFC, create Bluetooth connections, full internet access
- Your accounts
acts an account authenticator, manage the accounts list, use the authentication credentials of an account
- Storage
modify/delete USE storage contents
- Hardware controls
change your audio settings, record audio, take pictures and videos
- System Tools
allow Wi-Fi Multicast reception, bluetooth administration, change network connectivity, change WIF state, change WIMAX state, change your UI settings, delete all application cache data, disable keylock, format external storage, modify global system settings, mount and unmount filesystems, prevent phone from sleeping, retrieve running applications, write sync settings.
Why I want to know, if you're interested:
I didn't get S Note with my ICS update (SGH-i717R - Canadian, Rogers), and after a song and dance with support, was told by one agent/one email support to download it from the S Choice app store ... and by one call agent that I should stay away from it because it's not from Samsung and possibly malware.. Since S Note was supposed to come with the update, and only My Story needed additional downloading, I was a little wary.
My misgivings started with the bad grammar in the description, the different developer from the My Story app, and finally, the giant pile of permissions it wants. I've tried a slew of things to get S Note/Premium Suite to initialize, and am now at either reflashing the update, which I'd like to avoid since the phone works fine and I don't know what the hell I'm doing, or mailing it in “to the lab,” which I'd like to avoid because apparently not all of Samsung knows what it's doing either, judging by some of the answers I got. So I'd like to just do a comparison to see if the original S Note that comes with ICS also has these permissions. If it does, then I'm just going with the S Choice one and stop trying other things.
Thank you for any help!
Anyone? I know it's a bit of an oddball question, but..? (Unless nobody got it with ICS, which wouldn't surprise me, either.)
Matches what i have... I dont think its anything bad. Samsung proabably wants snote to have full functionality. Insert contacts and be able to call them from the app, geo tag your location etc... Look at the permissions of facebook... They are not that different.
Sent from my Samsung-I717
IMM76D.UCLF6+FJMOD-BUILD2
Stampaufaz said:
Matches what i have... I dont think its anything bad. Samsung proabably wants snote to have full functionality. Insert contacts and be able to call them from the app, geo tag your location etc... Look at the permissions of facebook... They are not that different.
Sent from my Samsung-I717
IMM76D.UCLF6+FJMOD-BUILD2
Click to expand...
Click to collapse
Fantastic - thanks! I was mostly put off by the description of the app "this application is S note can make own note." doesn't exactly scream "I am legit software put out by Samsung, download me!" But if it's pretty much what the original has, then I'm fine.
Again, thanks!

[Q] Defining default contact image per contact?

When I sync with google all the contact images I have on the various contacts sync over fine. But the second I sync with facebook etc those default images gets overwritten with whatever stupid image people had decided to use on facebook.
Is there no clever or smart way for me to define which i want to use as a default, like you can do if people has several numbers, in that case you can define what you want as the default one etc. But I have been unable to find one for contacts
The only way so far I have been able to actually get the contact photos I want, is through defining them manually all over again, which means I have to find the image on my phone, choose to replace the image I already got and recrop it in order to get the image I want to show. And naturally the second facebook etc decided to take a dump and have a resync its rinse and repeat and its annoying me greatly
So is there any supported and/or smart solution to go about this rather then having to manually define all the images over again on a regular basis?

[Q] Restricted Kitkat profile & Google+ profile

Hi All
I have a problem with the Restricted Profile on Kitkat on my Nexus 7
I have been letting my kids play "Clash of Clans" on my N7, in my wisdom I created restricted profiles for them to play on. They are getting tablets for their Christmas and I want to migrate their games to their new tablets and here begins the problem
To migrate their accounts to the new devices I need to generate a Link Code in Clash of Clans.
To generate the link code I need to have a Google+ account linked to the profile.
The problem I have is that the Android restricted profiles are not able to have a Google+ profile connected to the account.
Have been trying to find out if it is possible to upgrade a restricted profile to a full profile, but this does not seem possible.
Alternatively some way to link a Google+ account to a restricted account, all seems not doable.
Anyone have any other suggestions for a work around on this problem?
Thanks
JohnB
sc00bs said:
Hi All
I have a problem with the Restricted Profile on Kitkat on my Nexus 7
I have been letting my kids play "Clash of Clans" on my N7, in my wisdom I created restricted profiles for them to play on. They are getting tablets for their Christmas and I want to migrate their games to their new tablets and here begins the problem
To migrate their accounts to the new devices I need to generate a Link Code in Clash of Clans.
To generate the link code I need to have a Google+ account linked to the profile.
The problem I have is that the Android restricted profiles are not able to have a Google+ profile connected to the account.
Have been trying to find out if it is possible to upgrade a restricted profile to a full profile, but this does not seem possible.
Alternatively some way to link a Google+ account to a restricted account, all seems not doable.
Anyone have any other suggestions for a work around on this problem?
Thanks
JohnB
Click to expand...
Click to collapse
I am fairly sure that it isn't possible to upgrade a restricted account.
but...
in my experience, Kids get over these inconveniences fairly quickly.
Have been thinking about this a bit more, and may have an idea as to how to solve this problem.
Does anyone know if it would be possible for me to copy the "Clash of Clans" data from the restricted profile to a full profile on the device that I could then link to a Google+ account and migrate over to the new device?
JohnB
sc00bs said:
Have been thinking about this a bit more, and may have an idea as to how to solve this problem.
Does anyone know if it would be possible for me to copy the "Clash of Clans" data from the restricted profile to a full profile on the device that I could then link to a Google+ account and migrate over to the new device?
JohnB
Click to expand...
Click to collapse
Sorry to resurrect an old thread, but I faced a similar dilemma yesterday, that I was able to solve. Root is obviously necessary, but it is possible to "upgrade" a restricted profile. In a nutshell, you need to modify the "/data/system/users/[nn].xml" file, and remove some files from "/data/system/users/[nn]/ folder, where [nn] corresponds to the numeric value of the restricted user.
So, if I remember correctly, this is what I did (I assume you have adb setup, and know your way around that):
Code:
adb pull /data/system/users/nn.xml
(replace "nn" with the right number for the user you want to modify; same for below)
Open the file you retrieved in a text editor like Notepad++, that won't mess with the line endings, and change
Code:
flags="24"
to
Code:
flags="16"
. Delete the contents of
Code:
<restrictions />
Save, and upload back to device:
Code:
adb push nn.xml /data/system/users/
Now delete some files from the user profile, related to restrictions:
Code:
adb shell
su (necessary if you don't see "#")
rm /data/system/users/nn/package-restrictions.xml
rm /data/system/users/nn/res_com.google.android.gms.xml
exit (twice, if you had to "su")
adb reboot
You should now be able to login as the user, and have access as a secondary user. You may need to remove/add some applications if they don't behave, and/or delete cache/data for the Play store and Google Framework. You may also need to remove all the Google accounts attached to the profile, and add them again for Play store to be able to install apps. I was getting errors, which cleared up after doing that.
So after completing the above, I was able to attach my son's CoC to his Google+ profile, and enable transferring it's data to another device, if I want to in the future. I decided to give "Screen Time Parental Control" a go, instead of the frustrating "restricted" profile. So far so good. Not sure yet if I want to shell out the $$ for the dude's Remote Control app, but so far I'm liking it. I think after the 15 day trial, though, I'll be hooked. Anyway, HTH anyone else trying to figure this out.
Edit: Forgot another detail: I did try to copy off the CoC data, and populate it into a new unrestricted profile, "chown"ing the files for the user, etc, for the new account, and it was a miserable fail. I also tried the flags="16" hack, installed Titanium Backup, and backed it up, but the resulting backup was useless. It was unable to be restored in a new profile. This is when I discovered that deleting those 2 files completely unlocked the profile, not just changing the flag, as mentioned on another website.
hondoslack said:
Sorry to resurrect an old thread, but I faced a similar dilemma yesterday, that I was able to solve. Root is obviously necessary, but it is possible to "upgrade" a restricted profile. In a nutshell, you need to modify the "/data/system/users/[nn].xml" file, and remove some files from "/data/system/users/[nn]/ folder, where [nn] corresponds to the numeric value of the restricted user.
Click to expand...
Click to collapse
I have this same issue where I m trying to get COC and other data from a Nexus 7 using 4.4.2, Kernal version 3.1.10-g4776c68 and a restricted profile. I am a noob and not familiar with adb. Is it possible to change a restricted profile to unrestricted without rooting? I searched many forums and could not find a solution.
I'm having a similar problem backing up a different game app on my son's restricted account. How do I find the numeric value for the restricted user account?
LilacPhoenix said:
I'm having a similar problem backing up a different game app on my son's restricted account. How do I find the numeric value for the restricted user account?
Click to expand...
Click to collapse
A restricted account is a separate profile of a main account and cannot have a separate google account or gmail address associated with it. It is not possible to change the status to a regular account. You can set up a new account for your son with a separate gmail address, download the game and contact their support telling them you cannot access your account. Just make sure you copy all of the game ID information for the user so they can search for it. And don't access the game on the restricted device, otherwise it may appear that you are just trying to steal someone's ID.

[Q] Webmail app...?

My apologies if I am posting this in the wrong area, but I seem to be looking for something that is difficult to find. Either that or I REALLY don't know how to ask/search for that which I am looking.
I need an app on my phone [android - Samsung Galaxy S4] for my emails, however I don't want the messages stored on the phone. So I guess I am looking for an app-etized webmail interface. Important features:
The ability to have a formatted signature (bolding, etc). The ability to add a logo would be nice, but not required
The ability to send formatted messages (HTML?)
The ability to use Templates
The ability to send/manage multiple attachments
Those are the biggies that I can think of at the moment.
Every time I find something it seems to want to save/manage the messages locally, and I am just REALLY paranoid about having business emails on something as easily lost/stolen as a phone (regardless of the ability to remote wipe)
Would anyone happen to know of a good solution? Doesn't have to be free, but reasonably-priced is a plus.
Many thanks (and a few beers) in advance!

Categories

Resources