Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
hitmanhell25
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: Mar 2012
Question [Q]How to download any file type on wp 7.5 Mango

I just got samsung omnia w with windows mobile 7.5 mango
but nor it has file manager nor i can download any files types from internet connection .i.e .rar,.torrent, etc. It just says file type not supported and then does not download it.

What I only want is to download any file types of any file size over a 3G network, and then access it from PC .i.e copy the downloaded from Mobile to PC.

Is it Possible?? If yes Please tell how.

If needed i am also ready to hack .i.e jailbreak the phone.
 
GoodDayToDie
Old
#2  
Recognized Developer
Thanks Meter 1364
Posts: 3,563
Join Date: Jan 2011
Location: Seattle
The only file types that I know WP7 supports are Office (.doc, .docx, .ppt, etc.), images, videos, audio, text, and some kinds of HTML / XML. It will also open ZIP files (but not RAR) and can open any file of the above types that is contained in them.

To add additional file types, you need to access the registry. On the Omnia W, it's possible but somewhat difficult to write to the registry, and that's assuming your firmware is a little bit out of date. If it's not (although your phone might *appear* to be fully updated anyhow), we don't currently have registry write access. However, even with registry access, there's not a lot you can currently do. For example, my phone will open .LOG files as if they were .TXT, but still can't open most other filetypes.

Trying to torrent on your phone sounds like a phenomenally good way to get your carrier pissed at you and/or blow your data connection (remember, it includes upload too), but I suppose you could write a torrent app. You'd also need a PC client to transfew the files off the torrent and onto the PC. However
Win8/Windows RT Projects:
EnableFlash script
List of desktop apps for hacked RT devices

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
GoodDayToDie
Old
#3  
Recognized Developer
Thanks Meter 1364
Posts: 3,563
Join Date: Jan 2011
Location: Seattle
You got me curious, so I looked into HKCR again and have cracked it enough to allow me to do whatever I want, more or less. Here's the basic provxml template that you need to add a filetype handler to the registry. You need to replace the values inside { } with the values you want; there are examples given after the equals signs.

"<wap-provisioningdoc>
<characteristic type='Registry'>
<characteristic type='HKCR\{FILE_EXTENSION=.rar}'>
<parm name='' value='{FILETYPE=RarArchive}' datatype='string' />
</characteristic>
<characteristic type='HKCR\{FILETYPE}'>
<parm name='' value='{FILETYPE_DESCRIPTION=RAR Archive}' datatype='string' />
</characteristic>
<characteristic type='HKCR\{FILETYPE}\BrowseInPlace'>
</characteristic>
<characteristic type='HKCR\{FILETYPE}\shell\open\command'>
<parm name='' value='app://{APP_GUID=5B04B775-356B-4AA0-AAF8-6491FFEA5665}/_default?file=%s' datatype='string' />
</characteristic>
</characteristic>
</wap-provisioningdoc>"

If you just want to add a new extension that the phone will treat like an existing one (such as me adding .LOG to my phone and hving it act like .TXT), use the following template:

"<wap-provisioningdoc>
<characteristic type='Registry'>
<characteristic type='HKCR\{FILE_EXTENSION=.log}'>
<parm name='' value='{EXISTING_FILETYPE=txtfile}' datatype='string' />
</characteristic>
</characteristic>
</wap-provisioningdoc>"

It really is that easy. Now, writing an app that can actually decode .RAR... that's up to you. Also, you'll need to add ID_CAP_FILEVIEWER to the app's manifest if you want the app to be able to open the file in place, isntead of first copying it to the isostore. Of course, that's not needed on a custom ROM with full unlock.
Win8/Windows RT Projects:
EnableFlash script
List of desktop apps for hacked RT devices

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.
 
hitmanhell25
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: Mar 2012
Thanks GoodDay
I just wanted how to download file any extension.And it seems you just gave me the right direction.
The only thing i want to know is, after adding the rar or any extension manually to phone's registry,
will i able to download it with Internet Explorer??
if yes will it support pause resume
and if i successfully downloaded the rar file, where will it be saved in phone's memory??
and will I able to transfer that downloaded file to PC??

If the answers of above question is yes, then please post it here step by step it will really a Great help and time saving for me.
 
GoodDayToDie
Old
#5  
Recognized Developer
Thanks Meter 1364
Posts: 3,563
Join Date: Jan 2011
Location: Seattle
Yes, you'll be able to download the files with IE (or from email).

However, they won't offer a "Save" option; they'll just open in the registered program (like how .doc opens in Word). That program may offer a Save option, though.

Mobile IE does not support pause/resume for file downloads, so far as I know. If the file is so big that it takes more than a few seconds to download, your phone probably isn't the right device to download it on.

Downloaded files are temporarily saved into a location under your phone's \Application Data\Volatile\ directory. Apps with the FILEVIEWER capability will be able to access these files (on a fully-unlocked ROM, any app can access them of course).

Transferring the file to the PC will require that the app that opens it be able to do the transfer. Alternatively, an app like Root Weberver could be used to allow you to access the file from the PC and download it off the phone.
Win8/Windows RT Projects:
EnableFlash script
List of desktop apps for hacked RT devices

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
hitmanhell25
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: Mar 2012
Once Again Thanks GoodDay,
You just gave me the exact piece of information I was looking for.
Now the only problem is Big Files to download. Anyways I will manage it.
I am just quite upset as i can't use a phone so costly,which claims to be the most feature full and has an inability to download files beyond its known list and also can't download big files even if we change registry to make OS recognize those unknown file extension.
As I can't Use a phone only for listening musics and watching Videos.
Maybe I should consult some good WP7.5 app developers to make a download manager to download files without limits of file extension and file size.It will be just like a revolution for me and i will just be waiting for that day when this app will be released.

Some trouble for you once

Can WP7.5 be able to compile Python programing??, if it would may be I can develop my own Download Manager App for me,as know python.

Does Samsung Omnia W can be loaded with other mobile OS like Symbian or Android??

Where Can I learn about app Development for WP7.5?? may be its time I would learn it in order to Use a windows mobile full potential.
 
GoodDayToDie
Old
#7  
Recognized Developer
Thanks Meter 1364
Posts: 3,563
Join Date: Jan 2011
Location: Seattle
Well, you could certainly write a download manager app, though it would be a bit tricky. I'm surprised you feel that big downloads are needed, though; aside from apps (which the OS handles) I very rarely download a file more than ~5MB, which only takes a few seconds on 3G.

Generally the way things like torrents are handled is that the phone doesn't actually download the big files. Instead, it acts as a remote control to some torrent app on the PC. You might use the phone to fetch the .TORRENT file and send it to the PC, but the bit download is done there. Some torrent software already supports some of this functionality (for example, uTorrent allows running a simple webserver on the PC so you can control it from any web browser anywhere).

Python is not supported on Windows Phone. It's possible that IronPython will be supported soon (IronPython is an implementation of Python in .NET), but currently the only options are C# and VB.NET for Silverlight or XNA apps, and C/C++ for native code. However, if you're reasonably familiar with Python, picking up C# shouldn't be too hard.

Currently, the Omnia W can't even be loaded with custom ROMs of WP7. Switching it to fully another OS is probably not going to happen soon. First, it's bootloader must be unlocked. Then, somebody must build a ROM with all the right drivers. Most people who are interested in Windows Phones also aren't Android developers or ROM chefs...

There are lots of tutorials for getting started with WP7 app development. The tools are free, though they only run on Windows. Learning to use native code will be required for the "full potential" that you speak of, but once you know WP7 development in general, it's not that hard to get started going native.
Win8/Windows RT Projects:
EnableFlash script
List of desktop apps for hacked RT devices

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.
 
hitmanhell25
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: Mar 2012
hello again I finally unlocked my Omnia w
and installed wprootools.now I want to run some apps like ucweb in background...but I am not getting it.
can you help me in this direction .i.e running any app in background continuously under cellular network below the lockscreen.
as it will help me in downloading files more efficienty while doing other tasks. what I want is the true multitasking.
 
hitmanhell25
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: Mar 2012
where are all developer gone...
can't you help out for this situation
 
hitmanhell25
Old
#10  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: Mar 2012
still no answers...... xda on crisis

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Gear Up Because it’s Time to Save Earth

*Cue Dramatic Music*Put on your red and blue latex overalls and cape because it’s time to … more

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more