Windows Phone 7 Manage files - file

I have storaged a web in the phone using the isolated storage and now It has to download pdf into the phone and be able to transfer it to a PC.
Since the isolated storage only let you use the files of an app in that same app, it is posible to accomplish what i want in Windows Phone 7?

No, Windows Phone OS uses the Sandbox principle witch isolates app data so that other apps cannot access and/or modify other app's data.
The only public part of WP app are known libraries as mediaLibrary and in some WindowsPhone versions Documents Library
Check this
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681698(v=vs.105).aspx

Related

WPF Desktop Bridge App as chromium native messaging host

I have a client WPF app that uses NativeMessagingHost feature in Chromium browsers.
I've packaged my WPF app into Windows Store Package (.appx) via Desktop Bridge using VisualStudio to publish it in Windows Store in the future.
My app works correctly from Store package. Creates ChromeManifest.json file. But cannot link manifest to chrome NativaMessagingHost name via registry.
Desktop Bridge Apps cannot modify HKCU\Software\Google\Chrome\NativeMessagingHosts\. This is allowed but it's modified in sandbox (proof), so chrome do not see the registry value.
Result: chrome extension cannot find NativeMessagingHost.
NOTE: If I change the registry value to valid value manually via regedit.exe - everything works fine!
So, is there any way/workaround to modify registry key or link ChromeManifest.json from Desktop Bridge App? Maybe on package install?
This is not allowed from a Store app. You would also need to take care of the Chrome-specific registration when the user installs/registers the app as Chrome extension.

Is Metro a good fit for apps that access the File System?

I understand that Metro limits the access an app has to the user's computer. Can anybody verify this, as I am considering creating an email client that will work with at least yahoo/at&t.net and gmail. Will I be able to access a user's email (assuming they provide their username and password, of course) with a Metro style app, or will I need to stick with creating an "old-fashioned" Desktop app for this scenario?
Metro applications can access the users Document Library, Picture Library, Video Library and Music Library without user intervention if the developer adds those capabilities to the Package.appxmanifest (double-click on it in Visual Studio and go to the Capabilities tab).
Even without these capabilities the app can read and write in its own local folders. And even with out these capabilities the app can prompt the user to open a file anywhere on disk using the FileOpenPicker. So yes, absolutely Metro can be used for an e-mail client.
For a sample of using FileOpenPicker (i.e. to add an attachment to your e-mail message) see:
http://code.msdn.microsoft.com/windowsapps/File-picker-sample-9f294cba
Metro can easily be used to create email clients. For something like this, you would be syncing data between the mail-server and the client.
Metro apps have limited access to the filesystem. But they can access Application Data Storage and isolatedStorage which can be used to store data pertaining to the application offline. This helper library helps store structured data in isolated storage, and might suit your needs.
For your scenario, a metro application would be a very good fit. However, the reach of metro applications will be decided by how well Windows 8 does after launch.

Deploy on Windows Phone 7 in App Hub unsupported country

I would like to debug and deploy the application on the Windows Phone 7 device in order to test and debug it. But to do that I need to register my phone(http://msdn.microsoft.com/en-us/library/ff769512%28v=vs.92%29.aspx) and for that I need to be registered as a developer on App Hub (http://msdn.microsoft.com/en-us/library/ff769508%28v=vs.92%29.aspx), but my country is not on the list of supported countries yet.
So just to start to play with the OS and deploy on device development I need to wait? Here (http://msdn.microsoft.com/en-US/library/hh286410%28v=VS.92%29.aspx) is mentioned the APPA market – would this be a way to register and get the phone being registered as a developer phone?
Thanks a lot
Regards,
STeN
Yes, as you mentioned, the way to publish from (and test in) countries which are not currently supported by the App Hub or Marketplace is via the Global Publisher Program.

Silverlight Open File

If i've got a filepath that the current browsers computer can access. Is there anyway that a silverlight application can open that file?
I dont want to run out of browser if possible as well.
Thanks in advance
In Silverlight 4 OpenFileDialog is the only option to access any place on the file system. Elevated trust, out of browser applications can access the current user folder only. However, in Silverlight 5 this type of application will be able to access anywhere on the file system.
From new features of Silverlight 5 at:
http://www.microsoft.com/silverlight/future/
Silverlight 5 extends features of the
‘Trusted Application’ model to the
browser for the first time. These
features, when enabled via a group
policy registry key and an application
certificate, mean users won’t need to
leave the browser to perform complex
tasks:
Host HTML content as a Web browser
control within the Silverlight
application. HTML pages, such as help
content or e-mail, can be integrated
within the application. Read and write
files to the user’s My Documents
folder, making it easier to find media
files or create local copies of
reports. Launch Microsoft Office and
other desktop programs. Users can open
Microsoft Outlook and create an e-mail
message, or send a report to Word
utilizing the power of Office. Access
devices and other system capabilities
by calling into application COM
components. Users can access a USB
security card reader or a bar-code
scanner. Enjoy full keyboard support
in full screen, which enables richer
kiosk and media viewing applications.
Call existing unmanaged code directly
from within Silverlight with PInvoke.
Note that this feature is available only on the Windows platform.

How do I programmatically access files in Windows Phone 7's Office Hub / Extend the Office Hub

I have developed a PDF Converter / Viewer for Windows Phone 7, but it is rather useless unless it can get the source files (Word, Excel, PowerPoint, etc) from somewhere.
An obvious place to get these files from is the Office hub on the phone, but there doesn't appear to be a documented way to access these files programmatically. I can only access my own application's files using IsolatedStorage.
Alternatively I would like to extend the functionality of the Office Hub with an extra button to convert a file, but I am not sure this is possible either.
Naturally I can retrieve files from a SharePoint Server, but I prefer not to do this unless I absolutely have to. Alternatively is there a way to map my application to a file extension so email attachments can be loaded into it?
Any brilliant ideas? How does the official PDF Viewer from Acrobat deal with this?
I'm afraid it's not possible using the SDK to accomplish any of these ideas for files stored on the phone.
The closest to load a pdf / office document from an app into the corresponding Adobe or Office application is to publish the documents on a server and link to them through a web page shown from your app. This probably doesn't suit your requirements though.
The official one does this utilising capabilities not available through the 3rd party SDK that we use.

Resources