yashsingh1/xdaforums huggingface dataset:
[HD2 General] fatappel:
First XDA post. Love the forum but never had a need to post before. I am a long time user of windows mobile and the primary reason I buy windows mobile phones is because of their ability to open outlook item files.

I recently purchased the HTC HD2 from T-Mobile USA that is running windows mobile 6.5 Professional. When trying to open an outlook mail attachment I receive the following error message, "The attachment is of a file type that could be unsafe. Messaging will not open this attachment".

My profession requires me to proof-read emails before the are sent. My company does this by attaching email drafts created on a desktop by Microsoft Outlook and are typically .eml or .msg files and sent over email. These file types were supported and viewable in WM5 & WM6. How do I enable them in WM6.5?

I am currently using Energy's ROM and the stock T-Mobile USA Radio but I was having the same issue using the Stock T-Mobile ROM. I am comfortable with registry edits if that's what it takes.

Please help if you have any ideas. I've searched all over the web. If anyone would have the answers, you guys would. Thank you.
[HD2 General] fatappel:
So I figured it out. After weeks of downloading multiple 3rd party email applications I also created a windows live email address which can receive emails from my work email address and push them to my device and I could open them in the default messaging program.

I found that I could open the .eml attachments using the default messenger through my microsoft live account which was strange and all I ever wanted but when I replied, I did not want it to be from my live account, I wanted it from my work address.

I went through all of the settings to see what could possibly be different and found the live account was set up as a pop3 and my work account was imap4.

I deleted my imap4 settings for my work mail and created a pop3 for the same address and now I can open .eml & .msg email attachments. Yay!
[HD2 General] rokkywoof:
So just where are those imap4 settings? Are you setting up your work email on your phone as an Exhcange client with IMAP4 settings? Or is that on the MS Live setup?

I have this issue with email from my work Exchange account to a personal email account that I have set up on the phone (Imagio/WM 6.5). I want to accept some forwarded items (like personally specific HR-related docs) and some calendar items to update my phone's calendar, but I do NOT want my employer to "own" my phone, so am not willing to set it up as an "Exchange extension" (don't want that remote control, or 90% internal email spam to deal with).

TIA

R
[XPERIA X1 ROM Development] Diagrafeas:
I am trying to use xml to copy these to files and it doesn't work. What is wrong? What have i to change in order to move them not just copy?

<?xml version="1.0" encoding="utf-8"?>

<wap-provisioningdoc>

<characteristic type="FileOperation">

<characteristic type="\My Documents\My Ringtones\Ring-Vision.wma" translation="install">

<characteristic type="Copy">

<parm name="Source" value="\Windows\Ring-Vision.wma" translation="install" />

</characteristic>

</characteristic>

<characteristic type="\My Documents\My Ringtones\relaXation.wav" translation="install">

<characteristic type="Copy">

<parm name="Source" value="\Windows\relaXation.wav" translation="install" />

</characteristic>

</characteristic>

</characteristic>

</wap-provisioningdoc>
[Windows Mobile Software Development] LunaticShade:
Because the SenseSDK which is available at xda lacks a control for the HTC Slider I tried to create my own.

I finally fixed some bugs and changed a bit of the behavior and here is the first release version of my SenseSlider control.

The 2nd release is ready and stable. See Changelog for further info.

Features:

mimics HTC Slider

fully functional .net Control

does not depend on images for the bar background/slider thumb (drawn at runtime) and therefore allows different color-schemes

events for SelectedIndexChanged, StartedSliding, StoppedSliding, OnSliding (Gives thes index of the hovered icon)

supports vibration (aka haptic feedback)

includes a semi-transparent panel for overlay when sliding

does not depend on other control collections (SenseSDK only used for demo application; can be used with any other collection) (does not apply for new version, uses SmartDeviceFrameWork)

changes in the 2nd release:

uses the IImaging-Implementation of the SmartDevice-Framework and is now stable and more flexible (load the IImages with SDF in any way and add them to the slider)

supports an imagefile as slider thumb (see attached screenshot)

great speed improvement (fixed a bug which slowed drawing down)

made the source code of the demo application a lot more readable and understandable (or at least I hope so ;) )

I uploaded a demo application to show some of the control's features. The source code for the demo is also available.

To use the Slider in your own applications just add the SenseSlider.dll and instantiate LunaticShade.SenseSlider (see the source of the demo application for details). (The new Version needs also the OpenNETCF Assemblies enclosed in the package or an installed version of the SmartDeviceFramework on the target device)

At this time the control cannot be drawn at designtime (due to heavy P/Invokes) but you can set the properties and events with the property editor.

Please report any bugs you may encounter.

If you got questions just ask ;)
[Windows Mobile Software Development] Obelix_A:
looks quite interesting. I will give it a try as soon as I can integrate in my apps (testing makes no sense - I also have HD2 ;) )

keep on developing!

Obelix
[Windows Mobile Software Development] Wyatt:
Looks cool ! I'll try it as soon as a release is available !
[Windows Mobile Software Development] ZaxXx:
Looks nice, not exactly like Sense (no vibration, no left-right/right-left gesture, if I tap&hold some icon and then swipe to left or right, the slider doesn't follow my finger), but good. Can't wait to be able to use it in my apps :D
[Windows Mobile Software Development] LunaticShade:
first release,

see first post
[Windows Mobile Software Development] Archer:
That's VERY nice mate. I'm also particularly pleased that you used the Sense SDK interface in your demo, as I was considering using this slider in one of my apps that uses the Sense SDK heavily. I'm not considering it any more though - I'm all over it :D

I'm not currently at a dev machine and therefore can't really check out the control, so I do have one question that I may be able to answer if I looked in the IDE. Can you stop it changing page by sliding left and right on the page itself? I'd rather people had to use the slider to change page.

But yeah, very nice - thanks a lot!
[Windows Mobile Software Development] LunaticShade:
I'm glad to hear that you like it.

Actually it is the WinMo 6.5 TabControl which exposes this behavior. If you slide over a TabPage it changes the tab respectively, the senseslider then only reflects this action. So this is not the default behavior of the Slider (actually you could just set back the SelectedTab if it was not changed by the SenseSlider).
[Windows Mobile Software Development] Archer:
Ah fair enough. I didn't realise you'd used a tab control, but I guess that makes sense.

Thanks for the reply mate :)
[Windows Mobile Software Development] TeDeV:
nice control man.

i got 4-5 times a crash on the program. when i changed the button slider color, and stopped the vibration, then when i moved the slider fast from left to right, etc, an error occured.

overall nice work. i don't know if it is your icons, or the real time drawing, but the icons at the slider have a very bad quality. hope you can make the graphics much more similar to the HTC Slider looks :)

well done for a 0.1 version.
[Windows Mobile Software Development] TeDeV:
anyone knows what is wrong with this line?

Dim imageNames = assembly.GetManifestResourceNames().Where(Function(r) r.Contains("_b"))

i can't get the slider to work having a vb code. this slider needs so many things. i guess the reason that my slider is not working right now is because of the above code line, which returns me nothing, even though i have a picture which contains _b in the name
[Windows Mobile Software Development] LunaticShade:
your resources have to be embedded. in the file browser of visual studio open the Resources folder (not the resx file!) select the images and in the property window change Build action to embed in resx.
[Windows Mobile Software Development] TeDeV:
i tried that, but when i add the image in the resources file, and choose the embed build action, i get errors

DividedByZeroException

stackTrace....

"σε LunaticShade.SenseSlider.Draw(Graphics g, Int32 x, Int32 y) σε LunaticShade.SenseSlider.Draw(Graphics g) σε LunaticShade.SenseSlider.OnPaint(PaintEventArgs e) σε System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) σε System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) σε Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) σε System.Windows.Forms.Application.Run(Form fm) σε PrimeKeys.Form1.Main() "

i also have a question.

how do you "connect" the senseSlider with the tabControl?

for example.... if i had two tabcontrols, how does the SenseSlider, knows which tabcontrol to bind?

i can't find that code in your sample.
[Windows Mobile Software Development] LunaticShade:
hm, that's strange. are you using pngs? did you set the IconSize Property of the senseslider? maybe a call of senseslider.updatevalues() in your constructor helps.

actually the senseslider does not know that it controls a tabcontrol. It raises the event SelectedIndexChanged when the user selects an icon. In this event I activate the corresponding TabPage to be active.
[Windows Mobile Software Development] TeDeV:
yes but the corresponding tabpage of which tabcontrol?

if i have 2 tabcontrols, with 5-6 tabpages inside each tabcontrol, how does the slider knows, to which tabcontrol to bind? i don't get it.

i am creating the senseSlider dynamically. and this is my code...

senseSlider.Location = New System.Drawing.Point(0, 554) '504

'senseSlider.Dock = DockStyle.Bottom

senseSlider.Size = New System.Drawing.Size(480, 84)

senseSlider.BackColor = System.Drawing.Color.FromArgb(CInt(CByte((239))), CInt(CByte((235))), CInt(CByte((239))))

senseSlider.BorderBaseColor = System.Drawing.Color.FromArgb(CInt(CByte((235))), CInt(CByte((235))), CInt(CByte((235))))

senseSlider.DarkBaseColor = System.Drawing.Color.Silver

senseSlider.DarkSliderColor = System.Drawing.Color.FromArgb(CInt(CByte((35))), CInt(CByte((35))), CInt(CByte((35))))

senseSlider.HapticFeedback = True

senseSlider.IconSize = New System.Drawing.Size(72, 72) '56,56

senseSlider.IconSpacing = 25

senseSlider.LightSliderColor = System.Drawing.Color.Silver

senseSlider.UpdateValues()

'=====================

anything wrong there?

ok i have figured it out. it is the IconSize! if i use other png images with different dimensions than yours, then i get that error, no matter what. i don't get it. what is 56,56? because none of your icons are 56x56
[Windows Mobile Software Development] LunaticShade:
The senseslider does not bind to a TabControl it only informs you that the SelectedIndex was changed. In the event handler for SelectedIndexChanged you decide what to do then. That is which TabControl to refresh. If you do nothing, nothing will happen. (In the sample I subscribed to the SelectedIndexChanged event and change the SelectedIndex of the TabControl to the SelectedIndex of the Slider by code).

The IconSize only says how big the Icons are drawn. If they are smaller or bigger they will be stretched. I don't know why this does not work but

i will try to figure this out.
[Windows Mobile Software Development] richieacc:
Very nice. I've been wanting to write something similar for an app that I want to write. You've just saved me a boatload of work! Thanx!

One issue that I saw though; when the app starts up, the ons screen keyboard icon is displayed over the slider. Opening and closing the keyboard hides the icon. Is there a way to have the application hide the keyboard icon on startup?
[Windows Mobile Software Development] TeDeV:
the slider must be able to DOCK = bottom.

if i have an app which rotates, then i can't use the height thing, in order to anchor.

and depending on the pda resolution the height will be different. and you have to consider that people want menu bar at the bottom, and not just the slider. so it is difficult to have this without dock = bottom.

thanks
[Windows Mobile Software Development] Archer:
But that's a very simple thing to manually code, so not an issue. It would be good to not have to code it though, so docking would be nice.

Edit:

Actually, forget coding. Just anchor it in a panel that's docked to the bottom of your form.
[Windows Mobile Software Development] czbenson:
cool. thx for you job.
[Windows Mobile Software Development] otherworld:
Wow

Fantastic work - really looking forward to seeing this develop. It's so frustrating that HTC don't just release this stuff so that the developers here can make the phone shine compared to android and iphone - the standard winmo controls are so 1980s ;) !

Cheers

Ian
[Windows Mobile Software Development] TeDeV:
you forget about the tabcontrol.

the slider needs to be above the tabcontrol. so even if we had a docked panel, which would be the same thing as docking the slider, it wouldn't matter because the tabcontrol would still be above the panel - slider, so it wouldn't hide it.

as you said, docking can be done by coding, but i don't want to write all this code for just a silly thing. i have better things to do.
[Windows Mobile Software Development] Archer:
Eh? You've lost me now. I thought you wanted the slider control docked? With the suggestion I give you get exactly that, with just 1 more step.

If you want the tab control behind the slider, then the slider

can't

be docked, or you won't get that! Docking is not your issue if that's what you want, and you will have to code the slider to act accordingly.

(I assume when you say "the slider needs to be above the tab control", you actually mean in front of it.)
[Windows Mobile Software Development] LunaticShade:
you could anchor the TabControl to all 4 edges and the slider to Top, Bottom then they should resize accordingly.

Or you find a way to hide the TabPage headers
[Windows Mobile Software Development] richieacc:
Not sure why, or exactly what I did. I could not replicate it, but the line;

in the method

Threw a COM error. I'm sorry, I did not copy the exact error when it occurred. Do you have any idea what would cause this?
[Windows Mobile Software Development] TeDeV:
ehm, i

can

and i just

did

:)

all u have to do is the following.....

add the senseHeader (if you want) docked to the top. then dock the Tabcontrol to FILL. after that dock the senseSlider to bottom, then use the senseslider.bringtofront, and then set the font size of the tabcontrol to 23,9 (or whatever fits u according to ur slider height).

it works perfectly and nicely. Lunatic maybe you should hardcode this in the control so that users don't have to do it manually.

the only problem right now is the icons. i am creating 64x64 png images, just like in the sample, but the program crashes every time i use them (dividedbyZeroException) which is strange. if i use the png from the sample, the code works just fine.

EDIT: I figured out the icon problem. the names must be specific, for the slider to "read" them. i don't know why or how, but this is how it works.

i have this code over here....

Dim imageNames = assembly.GetManifestResourceNames().Where(Function(r) r.Contains("1.png"))

no matter what i do, if i don't have files with the names icon... or big... for example, i get the dividedbyZeroException.
[Windows Mobile Software Development] Archer:
Okay, so you've got what you wanted - well done. Don't assume that every user will want the same thing though and tell him to hardcode it into the control.

Incidentally, depending on the order of docking, you'll get different results. That's why you get one thing and I suggested you'd get another.
[Windows Mobile Software Development] TeDeV:
don't get me wrong, but i don't think that someone will want to have the tabheaders visible. (that's the whole point of senseSlider in the first place).

if this "fix" that i posted gets "hardcoded", then people who will use this dll, won't have to deal with form levels like bringtofront or sendtoback, in order to get their work done.

i believe that what i am saying is logical
[Windows Mobile Software Development] LunaticShade:
could you send me your pngs so that I can see what's going wrong?

Because changing the IconSize myself does not lead to a crash on my HD2
[Windows Mobile Software Development] Archer:
I understand what you're saying mate. I'm just from a Win32 background where I'd just make the tabs not show, if I didn't want to show them.

The only reason I'd be wary of having the tabcontrol filling the screen is that any controls on the tab may sit behind the slider. Imagine having 20 SensePanelItems on a tab and when you slide them up they stop with the bottom one at the bottom of the tabcontrol. It would be partially covered by the slider, unless the slider took up exactly the same amount of space as the tabs.

What would you do about that?
[Windows Mobile Software Development] TeDeV:
i just found out that the following code also brings up the dividedzero exception thing..

senseSlider.RemoveIconAt(senseSlider.NoOfIcons - 1)

also ....

if i use this code...

Dim imageNames = assembly.GetManifestResourceNames().Where(Function(r) r.Contains("") AndAlso r.EndsWith(".png")).OrderBy(Function(r) r)

it works Fine, but if i use this code...

Dim imageNames = assembly.GetManifestResourceNames().Where(Function(r) r.Contains("icon") AndAlso r.EndsWith(".png")).OrderBy(Function(r) r)

i get the DividedByZeroException again!

the crazy thing is that your c# code sample works!

(check the picture below for the error)

john, this is why i said to make your tab header's font size bigger :)

if u make the tab header's font size big (23,9 i have set), then the tab header becomes as high as the senseslider height, and you are not missing anything from the sense list ;)

just try it and you will understand what i am saying.
[Windows Mobile Software Development] TeDeV:
i have created a small sample, so that you can actually test what i am saying.

http://rapidshare.com/files/381606457/DividedError.rar.html

just start it and press the remove button
[Windows Mobile Software Development] LunaticShade:
ok, found it. There was a bug that prevented the slider to be drawn when there's only one icon left (dividing by NoOfIcons-1, which is obviously 0 then)

Will be fixed in the next uploaded release
[Windows Mobile Software Development] TeDeV:
yes but that's not all :)

try the contains bug too. i have left it blank there. fill it in like contains("icon") and blah blah, and u will see that it will crash again.
[Windows Mobile Software Development] LunaticShade:
Actually it is quite the same issue. Because you only have one icon named "icon". And the slider is not able to draw a bar with only one item atm
[Windows Mobile Software Development] TeDeV:
oh ok :) thanks for fixing it
[Windows Mobile Software Development] Cir0w:
This looks interesting! I'll check it out tonight :)
[Windows Mobile Software Development] czbenson:
thx,i 'll try it .
[Windows Mobile Software Development] Stefano_1986_:
wow!

very good!
[Windows Mobile Software Development] nagagaya:
thanks

please let me know when i and where i can get the link.

thanks in advance
[Windows Mobile Software Development] drizztje:
COMException

Hi LunaticShade,

First, I would like to thank you for your work. I use it in my VoIP application, SipekMobile.

I have a problem, some users report COMException crash as can be seen attached. I used to get it myself also, but after defining the memorystreams globally (the ones used in senseSlider1.AddIcon and LunaticShade.Imaging.LoadImageFromStream) I don't get the crash anymore. But, some users still get it.

What could be the problem?

Thanks
[Windows Mobile Software Development] LunaticShade:
Maybe there's a problem on WinMo 5 or with some ROMs. I don't know whether there exist different versions of the IImaging-Interfaces I'm using.

I could prepare an alternative declaration and send it to you for testing?

It's strange that the scope of the MemoryStreams has an influence on this.

Unfortunately the COMException Message is not really informative (Blame you error text writers -_-)
[Windows Mobile Software Development] drizztje:
it's not wm5, it is wm6.5. Also strange is only some users have the problem. It seems to be resolved if I move AddIcon calls after the initialization of all the pages of the tab control.

If you send me an alternative decleration, I can test it.
[Windows Mobile Software Development] janneman22:
Nice, but make the graphics more realistic:rolleyes:
[Windows Mobile Software Development] drizztje:
Another error from IImage

Hi LunaticShade,

The IImage interface is really problematic. Another user reported the following error:

Error:

0x00510038 reading module with error: coredll.dll

Offset: 0x00054a4

Imaging.IImage.Draw(IntPtr hdc, Rectangle& dstRect, IntPtr NULL)

Is it possible for you to change it such that it doesn't use IImage anymore?
[Windows Mobile Software Development] LunaticShade:
Hi,

Sorry for the delay but I do not have much spare time at the moment.

Maybe you can try the alternative version I attached and tell me whether it's better or not.

The problem with the default Image is that it does not support png transparency hence not using IImage won't work. But I'll look for another implementation I could use. Maybe I just got something with the Interfaces wrong? I'll keep you informed.

edit: I created a version of the slider which uses the Smart Device Framework (OpenNETCF) for drawing the images. I have attached it as well, so that you can test both versions. If the latter runs smoothly it will become the new main build. I'm also planning to enable the use of custom bar and slider thumb images.
[Windows Mobile Software Development] tonev:
I found a problem when rotating... when i start in portrait mode and then rotate in landscape then the slider is not showing the whole image and also the dim is not fullscreen and the icon is not centered, but when you start it in landscape and then switch it to portrait everything works fine and when you switch it back it works perfect...
[Windows Mobile Software Development] LunaticShade:
I uploaded a new version which uses the SmartDeviceFramework for the IImaging stuff and thus should not be crashing anymore occasionally

See first post for details

maybe a resolution related problem. Which resolution has your the device?

On my HD2 I added the Demo App to the AutoRotate WhiteList and it's working fine. Anyone else experiencing this problem?
[Hero CDMA General] Papa Smurf151:
137 mb...wow
[Hero CDMA General] danaff37:
I have the new a2sd, and my free space is....

88mb. Haha..... I have a lot of apps installed. Lots of data taken up. LOL
[Hero CDMA General] kyouko:
Haha I said the same thing. 3mb to ~135mb free :eek: . Glad i finally took the plunge.
[Hero CDMA General] Papa Smurf151:
I mean my phone is stream lined when it comes to apps but o still have a bunch
[Hero CDMA General] danaff37:
I was down to twenty free when I ran it. Was happy to see the results. And so far no difference in speed.

Sent from my HERO200 using the XDA mobile application powered by Tapatalk
[Hero CDMA General] Papa Smurf151:
I'm amazed with the results
[General Questions and Answers] rsx19:
like lets say for each person 20 sent and 20 received, and after those numbers are reached they start to delete the oldest ones. or maybe for the inbox/sent to only keep 250 each untill it starts to auto delete.

is there anything i can do for this?

i dont necessarily want to delete all of my texts and i dont want to go in one by one deleting it so that it will load faster. thanks!