[Question] Changing mail.apk from 2.0 to 3.0. Help - Droid Incredible Android Development

i am trying to change the mail.apk in my rom. i want the features in the new mail 3.0 version, but cant figure out how to get it to stick. i have tried cooking it into my rom, adb, and root explorer. what else does it take?
i have seen it in other custom roms, but they all are missing something i want. plus, i like making my own.
Thanks for any help, cody
below are two pictures of the different versions. the first one is the one i want.

Which roms have that I've never seen it. Looks awesome though.
Sent from my ADR6300

post the 3.0 apk

this is the apk to the version in my first post. it has a white backgroud. i like the black background that you see in other versions better. i dont remember which rom i got this from, but i see similar versions in a few roms.
my favorite part is the checkboxes on the left. i can go down the list, check the boxes, and mark a bunch read or delete a bunch all in one shot. i have seen cyanogen, droid x, nexes with a similar version that does the same thing. i prefer sense roms though. the galaxy s devices (at least the epic) had a one too. i think this one came from a desire z port or virus rom.
i will try to find a black background version to post if someone is going to open it up to make it work with other roms. the rom i got this from didn't have a black enough bold face font to distinguish from the unread and read emails.
question, what make an apk work with some roms and not the others? framework?
i have done a lot with cab files on windows mobile and they didn't work like apk files do. blackberry had alx, cod, jad, and jar files. android seems to be the toughest to work on multiple devices.
Thanks for any help, Cody

Use Root Explorer to replace mail.apk in your system apps folder.

I wanted to do the exact same thing... find a way to use the Desire Z email app because of it's ability to select emails directly.. I don't think it's a matter of simply replacing the Mail.apk.. that won't work I am pretty sure since the frameworks are different.

this is another version of mail 3.0. this version has a lot better color for the unread email font. the first version was hard to see.
thanks, Cody

did you figure this out? Anyone know if this new version of Mail is included on any of the roms here?

I'd love to get this working as well. In my opinion if you are an exchange user HTC's mail and functionality is lightyears better than the AOSP mail app.

760hacker said:
I'd love to get this working as well. In my opinion if you are an exchange user HTC's mail and functionality is lightyears better than the AOSP mail app.
Click to expand...
Click to collapse
I'm an exchange user and I love the patched AOSP mail client. The multi-select is there by default, Global Address List works perfectly, black background, doesn't enforce the admin policy and I can't think of one thing that the HTC client has that this one doesn't. Just my opinion.
P.S. Plus a unified Inbox. That takes the cake!

jermaine151 said:
I'm an exchange user and I love the patched AOSP mail client. The multi-select is there by default, Global Address List works perfectly, black background, doesn't enforce the admin policy and I can't think of one thing that the HTC client has that this one doesn't. Just my opinion.
P.S. Plus a unified Inbox. That takes the cake!
Click to expand...
Click to collapse
The black color is actually one of the things I DON'T like about the AOSP email client. I know this is subjective.. but the white HTC email, contacts and dialer is aesthetically much more pleasing.

kriskmk said:
The black color is actually one of the things I DON'T like about the AOSP email client. I know this is subjective.. but the white HTC email, contacts and dialer is aesthetically much more pleasing.
Click to expand...
Click to collapse
I'm not a big fan of it either, but one of the other posts mentioned wanting the HTC mail in black. I wish I knew how to unpack the apk and swap white background and black text.
EDIT: Hmmm... Kind of boring today at work, so maybe I'll play with it and see if I can.

jermaine151 said:
I'm not a big fan of it either, but one of the other posts mentioned wanting the HTC mail in black. I wish I knew how to unpack the apk and swap white background and black text.
EDIT: Hmmm... Kind of boring today at work, so maybe I'll play with it and see if I can.
Click to expand...
Click to collapse
dude.. if you manage to make the desire Z email client work with the current sense roms.. then I'm sending you a donation. I am on magnolia RC3 by the way.

kriskmk said:
dude.. if you manage to make the desire Z email client work with the current sense roms.. then I'm sending you a donation. I am on magnolia RC3 by the way.
Click to expand...
Click to collapse
Sorry. I meant I would attempt to change the color scheme in the vanilla Email.apk. I guess I can give an attempt at the new sense client on old sense roms, too.
EDIT: Wow! This mail client is a bear! It's definitely relying on the newer sense framework. I haven't given up, yet.
EDIT2: It's above my head. Sorry.

bradatz said:
Use Root Explorer to replace mail.apk in your system apps folder.
Click to expand...
Click to collapse
the first post said i tried that. i wish it was that easy.

jermaine151 said:
Sorry. I meant I would attempt to change the color scheme in the vanilla Email.apk. I guess I can give an attempt at the new sense client on old sense roms, too.
EDIT: Wow! This mail client is a bear! It's definitely relying on the newer sense framework. I haven't given up, yet.
EDIT2: It's above my head. Sorry.
Click to expand...
Click to collapse
so, is that the final answer? the new framework is required.
how come some apks work on different frameworks and some dont? wish someone could explane this a little better.
Thanks everyone, Cody

jermaine151 said:
Sorry. I meant I would attempt to change the color scheme in the vanilla Email.apk. I guess I can give an attempt at the new sense client on old sense roms, too.
EDIT: Wow! This mail client is a bear! It's definitely relying on the newer sense framework. I haven't given up, yet.
EDIT2: It's above my head. Sorry.
Click to expand...
Click to collapse
aaah.. no problem.. at least you gave it a try.. thanks.

codyppc said:
so, is that the final answer? the new framework is required.
how come some apks work on different frameworks and some dont? wish someone could explane this a little better.
Thanks everyone, Cody
Click to expand...
Click to collapse
It's looking for classes (instructions) that aren't in the current framework. I tried to push a few of the new framework files over to Warm TwoPointTwo RLS4 and surprisingly it didn't boot loop. It did, however, FC on the launcher and acore repeatedly.
To explain it better, it's like you know the good old English and that's it. Then a new book comes out that has NEW slang words in it that you must know to understand the book. If you don't have those new words in your vocabulary, the book cannot be read and understood by you. That's how the new Mail.apk is. It's requesting new procedures that the old framework has no clue about so it FC's and throws a Java exception (error).
I hope that helps explain it.
kriskmk said:
aaah.. no problem.. at least you gave it a try.. thanks.
Click to expand...
Click to collapse
You're welcome Dude. I wish I could've got it working for you.

jermaine151 said:
I'm an exchange user and I love the patched AOSP mail client. The multi-select is there by default, Global Address List works perfectly, black background, doesn't enforce the admin policy and I can't think of one thing that the HTC client has that this one doesn't. Just my opinion.
P.S. Plus a unified Inbox. That takes the cake!
Click to expand...
Click to collapse
I'm an exchange user as well and my biggest issue with the AOSP mail client is that I haven't figured out a way to "move" emails (individually or in a batch) from one folder to another folder.

hsj1906 said:
I'm an exchange user as well and my biggest issue with the AOSP mail client is that I haven't figured out a way to "move" emails (individually or in a batch) from one folder to another folder.
Click to expand...
Click to collapse
HUGE issue for me is missing search functionality is the AOSP client. Can't even search email on the phone, much less server searching...

Related

Android specific apps

Will only specific apps run on android? Its just my mate wants to get Freecaddie on his Hero, and I have it on my Touch HD. I have checked on the website but not sure whether to try and put the winmo cab on and run that or will it mess the phone up... any help greatly appreciated..
I'm not a programmer so I could be completely wrong, but I don't think that will work. That's like trying to run a Windows program on a Linux machine - unless the developers specifically made a Linux version it just won't work. Probably the best thing for your friend to do is look around on the market for that application or a similar one.
(And before a Linux defender comes to correct me - yes, I know you can get windows emulators that run in Linux, but I'm not aware of those existing for phones.)
Ia m may get flamed here, but i am sure , a windows moblie app will not run on a linux based os, unless some one has made W.I.N.E (linux geeks like myself will understand) for andriod then No sorry !!
Steven__ said:
That's like trying to run a Windows program on a Linux machine
Click to expand...
Click to collapse
Not just like, that's exactly the case here
@Milesjasjar
It won't work. As another poster mentioned though, search the market. I've found apps to do most things (apart from a really good calendar app!!!)
P.S. Good luck for Saturday, hope the Saints do it. It's about time.
martint235 said:
I've found apps to do most things (apart from a really good calendar app!!!)
Click to expand...
Click to collapse
If what you don't like with the HTC calendar is that it displays all events on the monthly view in exactly the same way, you can try the Pure Calendar widgets (dev's website here). The 'Grid' one displays a coloured bar at the top of each day in a monthly view, its length representing how long the appointment is and the colour which calendar it's part of. It loads data from Outlook and Google calendars without trouble. The dev also makes an agenda style widget, but I haven't used it. Unfortunately you have to pay about £1 for either.
Hi,
Thanks I'm already using Pure Calendar and have the Grid too. I agree it's the best available at the mo but having just moved over from WinMo I'm waiting for someone to release a major app like Pocket Informant. Unfortunately developers seem wary as they are not sure people will be willing to pay £20 for an Android app (although I would be if it's good enough!)
M
Cheers for the responses guys.. at least I know what to expect when i get my own hero... I keep looking but still not ready to make the jump, guess I am far to comfortable with the Winmo UI. But the gap is closing on the usability.. as long as i can import everything from outlook, and find a free golf program then i might make the jump sooner..

Weather Widget from 2.0 BackPorted

I searched the forum to see if someone had done this and couldn't find it. I back ported the weather widget from 2.0 in case anyone is interested (works fine on donuts). This is the beginning of my development work. Hope this helps!
Please just take the .zip file and rename it to .apk
copy to your sdcard and install with any file explorer or
connect your device to your pc with development enabled
type "adb install MotAccuWeatherWidget.apk"
Red
G1 with latest Cyan
Thank you to this site and all the developers for their inspiration and hard work.
This has been around for a while...
Good work, though. Kudos and thanks for the effort.
Oh, sorry. I guess I'll probably get flamed by like 30 ppl now. lol. I guess I will try my hand at the Dock applications, unless that has been done too?
Red
redd12345 said:
Oh, sorry. I guess I'll probably get flamed by like 30 ppl now. lol. I guess I will try my hand at the Dock applications, unless that has been done too?
Red
Click to expand...
Click to collapse
If anyone flames you, they're stupid. You did good work, even if it was in vain. Car Dock has been ported to Donut, though I don't think the little nightstand Dock from Droid is running on anything prior to 2.0... Not sure, though, as it doesn't interest me all that much.
thanks for the encouragement. is there a list of things that show what needs to be back ported or which ones have already been? I want to contribute.
Red.
redd12345 said:
thanks for the encouragement. is there a list of things that show what needs to be back ported or which ones have already been? I want to contribute.
Click to expand...
Click to collapse
Not to my knowledge. It might not be a bad idea for one of the leading devs to start a thread here on things we want from new phones to run on our phones, and check them off as they are accomplished. 75% of the list would be from the Nexus One, at the moment. You really want to help? See what you can do to get Launcher2 from the Nexus working on Dream... Just changing the build.prop doesn't work, so we'll have to fix errors one by one. Hope you're better at coding than I.
There is also more info in the Dream app section, where these apps are usually released...good work, keep it up!
Hi, there's a version that does not work with 1.6 (only 2.X). Which version is?
BR.
I'm not sure. I pulled this weather widget from Eugene373's AOSP Rom port and hex edited the AndroidManifest.xml to make the MinSDK 3 instead of 5. I can't tell you much more than that. I hope this helps you.
Red.
Give this widget a shot and see if it's the one you are looking for. At least one person might make use of it. haha
Red
yukkio said:
Hi, there's a version that does not work with 1.6 (only 2.X). Which version is?
BR.
Click to expand...
Click to collapse
So, does anyone know if this will work on 1.6? Cyanogen MOD ROM?
It will work on any 1.6 rom. I am running Cyanogen's 11.1 (most recent.) This widget typically works on most people's "custom roms" as long as the 1.6 base is the same, it's just that there is a MinSDK value that prohibits users on a lower SDK from using the application. I dropped that value to 3, so I think that it should also work on hero roms (1.5 cupcake base) if someone likes the graphics on this widget better than the weather app that is included. Hope this helps.
Red.
Ps. I am going to be trying my hand at creating themes instead. My only experience with programming was C++, Pascal, and Visual Basic and that was close to 8 years ago! lol. I'm a little outdated as far as Java goes.
I'm really looking forward to using Stericson's Metamorph. It is such a great effort for theme development.
i sure could use it im new to xda im non root for now, but i would like to make a few nice add ons to my mt3g till i get the guts to root. is thr some good stuff here for a non root like me
Awesome job. I appreciate the work.
Odd question though, what do you do in the process of back porting? I'd love to learn..
Nice Widget, thanks. I was using weathereye before. I like this one better.
Thanks. In the case of this widget, it was ok to backport it because it doesn't call on any other functions that are proprietary to a specific rom (ie. Happenings widget from Blur calls tons of other functions in the home.Blur). There are a few places online when you look up backporting (I'll try to remember to post the links for people.)
You want to start by unziping the aplication you want to backport. Just rename it to a .zip file.
When you look in the file, you will see AndroidManifest.xml. This file has been compiled out as a binary file so you can't read it like a normal .xml file. You want to then download AxmlPrinter2.jar and run that to change the AndroidManifest.xml to AndroidManifest.txt by typing "Java -jar AmxlPrinter2.jar AndroidManifest.xml > AndroidManifest.txt"
The hard part is to find the byte offset in the AndroidManifest where it says the MinSDK value is. The MinSDK value needs to drop from 6 or 7 down to "2" so that you can use the widget on Cupcake or higher. There is a program online and I will post the link when I get home that you use with Eclipse to find the byte offset and then you have to use a Hex editor to change the value in the original .xml file.
Once you use the hex editor and save your changes, you zip up all the files and use the apkbuilder.exe that is in the sdk tools directory by typing "apkbuilder application_name.apk -z application_name.zip"
that will make an apk from a zip file and then you right-click and resign the apk file. From there, you just copy it to your sd card and you know the rest.
It is a pretty dirty and painful approach to porting an app. That is why I am more interested in working on themes. You can just unzip the apk's you want to use and edit the /res directory and then rebuild the app and sign it. Photoshop works great for it.
I'm planning on making a theme/rom that uses hero (1.5) for a base, but slimming it down and using widgets that are smaller like the one that I ported and changing a lot of the graphics for the clocks and such.
I hope this helps for anyone interested in developing.
Red.
Wisefire said:
Awesome job. I appreciate the work.
Odd question though, what do you do in the process of back porting? I'd love to learn..
Click to expand...
Click to collapse

Is it Possible... (sense with out the sense)

I would like to theme a rom with the following but im not sure how or if its possible due to the fact that the functions come from sense roms but i figured if the htcmusic.apk can be ported to any rom than why not contacts, dialer and notification bar (as pictured). Any help is appreciated.
I think it's not possible to install sense-apps to non-sense-ROM.
But you can modify the com.htc.resources.apk and framework-res.apk and replace some graphics in it.
ogo2 said:
I think it's not possible to install sense-apps to non-sense-ROM.
But you can modify the com.htc.resources.apk and framework-res.apk and replace some graphics in it.
Click to expand...
Click to collapse
some apps are possible. music was ported successfully to vanila roms. I would imagine that contacts could be ported to work, but id imagine things like contact sync with facebook and such wouldnt work
i guess trial and error will have to give me the answer. I was hoping to get feedback so i wont waste my time or do the trial without the error.
Oneofonex1 said:
i guess trial and error will have to give me the answer. I was hoping to get feedback so i wont waste my time or do the trial without the error.
Click to expand...
Click to collapse
I'm pretty sure it's not possible. The two apps of the top of my head (HTC Music and HTC Camera) were able to be ported because they had little to no dependencies on Sense framework. The ones you're trying to port, unfortunately, have many.
This could be completely off, and I wouldn't be surprised of parts, or all, of it are wrong.

[Q] bloody phone dialer

guys,
I'm a new comer here, having just flashed a few nand rom to my hd2, after having used WM for many years...
I quite like the idea of android, but there are 2 things that annoy me:
1. the sync to outlook for my contacts...
2. but most importanatly, the dialer. I'm used to typing the first letters of a contact, but here it seems i can only dial a number, otherwise i have to search manually for the contact... Is there an alternative dialer i can instal?
The dialler works the same way as on WinMo. For example if you're looking to call "Mike" just tap 6 then 4 then 5 then 3. The letters for Mike are on those keys. Get it?
Sent from my FutureShocks HD2 MIUI using XDA App
Skellyyy said:
The dialler works the same way as on WinMo. For example if you're looking to call "Mike" just tap 6 then 4 then 5 then 3. The letters for Mike are on those keys. Get it?
Click to expand...
Click to collapse
That depends on the build. Stock Android ROMs don't have this.
There are, however, alternative diallers available in the market, so it's really not an issue. There's even one available on XDA that allows you to type names, as well as numbers....
http://forum.xda-developers.com/showthread.php?t=784778
I just went into the Android Apps & Games forum and searched for the word "dialer"
johncmolyneux said:
That depends on the build. Stock Android ROMs don't have this.
There are, however, alternative diallers available in the market, so it's really not an issue. There's even one available on XDA that allows you to type names, as well as numbers....
http://forum.xda-developers.com/showthread.php?t=784778
I just went into the Android Apps & Games forum and searched for the word "dialer"
Click to expand...
Click to collapse
so did I but it didn't return anything
thanks though
matthieup said:
guys,
I'm a new comer here, having just flashed a few nand rom to my hd2, after having used WM for many years...
I quite like the idea of android, but there are 2 things that annoy me:
1. the sync to outlook for my contacts...
2. but most importanatly, the dialer. I'm used to typing the first letters of a contact, but here it seems i can only dial a number, otherwise i have to search manually for the contact... Is there an alternative dialer i can instal?
Click to expand...
Click to collapse
1. I use companion sync, it syncs to google -> to my phone
2. The only dialers that didn't work for me were the Nexus builds, all the ones based on the Desire ROM work like the old WM dialer
matthieup said:
so did I but it didn't return anything
thanks though
Click to expand...
Click to collapse
If those apps aren't turning up in your Market, install 'Market Enabler' and spoof your location to view and install apps.
If 'Market Enabler' doesn't show up... Google for the apk and side install it.
You wiull then be able to download 'any' app you like, regardless of whether you are meant to be able to download it or not.
Install "Dialer One" from the market.
There are heaps of dialers on the market. Being a long time Win user myself, i admit Phonex, Resco contact manager, etc were quite good as far as diallers go.
Im currently using aTakephone (market) which isnt bad, there is even Contapps which looks nice as Phonebook 2.0 which links to each contacts details like FB, history, SMS etc.
As for sync to outlook contacts, i use MyPhoneExplorer, syncs contacts, calendar and you can use it to SMS etc.
dialer one
totally agree about dialer, seems a great step backwards!
'Dialer one,' is the best!
search the market for it, then thank me
thanks guys.
I've dnld dialer one and it seems to be doing the job well

Swype Template

This is an Illustrator CS 5 template for swype theming. This template is for the old version of swype that is floating around (does not include the vocie to text button, but never expires).
If someone can send me the exact PNG files I would need to create this for the beta copy of swype I think I could make that fairly easy now too.
Anyhow on to what this exactly is...
What I have done is created a AI file where all buttons use symbols, all text use styles, and global colors are used. This means that someone could change the theme in a matter of a few clicks to something completely different. I have done my best to make it as absolutely efficient as possible, please let me know if you find any errors so I can fix them.
I just realized I left the PNG files liked, just ignore the link not found error when you open this, I'll remove them later.
Did I completely misjudge the usefulness of this? I thought for sure it would get used
Might be due to the version of swype it's for.
AFAIK there is only one person who was taking email requests for copies of swype, and this is said version.
I also offered to convert it to work for newer versions, I just need the PNG files that I would recreate to do them.
I am not trying to force an issue, I just wanted to do something nice for the community here and thought this would be it. Spent a good while doing these too lol.
Anyone know if you could make completely finished themes for the beta swype with metamorph?
I hit the thanks button, I just assume everyone is using the beta. Themed swype is one of the things i miss the most about my fascinate so if you can work your magic on the new beta I'm sure your thread would blow up!
orion421 said:
I hit the thanks button, I just assume everyone is using the beta. Themed swype is one of the things i miss the most about my fascinate so if you can work your magic on the new beta I'm sure your thread would blow up!
Click to expand...
Click to collapse
I don't use the beta because it's been too buggy. Additionally, I HATE that voice-to-text button - always accidentally press it which ends up losing what I was halfway done typing. :-/
The beta is certainly buggy, I tend to use it until I can't stand it then switch to slideit for awhile. Once I get sick of looking at the white keyboard I switch back swype. I hope that the next ota has an official version so we can start using/posting themed versions.
I have a working metamorph template with one bug to work out... Any theme requests guys?
Morkai Almandragon said:
I have a working metamorph template with one bug to work out... Any theme requests guys?
Click to expand...
Click to collapse
Hey man, this is great...didn't see it before but I am using the old version for the simple fact that I like having auto capitalization. I gotta a color request for ya...can you do a red letter theme that is not like the one in the screen shot. It's too bright for me but it will do til I find something better. i hate the "glow" that the theme put on the numbers and I would like a little darker red if you can find the time
I quit working on the old one, so the template I have for it is only for the keyboards, the word choice windows would not change.
Which one would you prefer?
Morkai Almandragon said:
I quit working on the old one, so the template I have for it is only for the keyboards, the word choice windows would not change.
Which one would you prefer?
Click to expand...
Click to collapse
Thats fine...If you are working on the beta, I am enrolled and can redownload it if you can make a red theme for it

Categories

Resources