Copy SDF file from WP8 device - windows-phone-8

I need to copy a .sdf SQL Server CE database file from my WP 8 device to my computer. How can I do that?
Using the WP8 Emulator and Isolated Explorer i can copy from my emulator but I need to copy from my real device.
Regards
JR

You can write the database file to the SD Card.
MSDN : SD Card Example : Make sure you have removableStorage capability in app manifest.
You also might need to associate your app to handle the file extension you want to copy to the SD Card.
MSDN : File associations
Let me know how it goes or if you need more help.

I've found a way to get the contents of my db from my device: Windows Phone Power Tools do this!
http://wptools.codeplex.com/

Related

Access restricted site from internet explorer

I have a chating software - voice and cam, and someone uses the same software but he has a new addition. My software need to install ajax file, cab file to login the site. He uses dll file put it on the cab file to block my site, when any user go to him and install his cab Automatically writes in the Registry this keys :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\saudidos.com
to block my site from internet explorer and he is add addition on Task Scheduler to Re-register him file File every 10 minutes
can anyone help me to fix this problem on the html
Thank you.

WinRT: What happens when file is shared via file extension?

I'm recently looking into the file-sharing features of Windows Phone 8.1. One possibility is, to do this via file extensions. My question is, how exactly my app gets access to a launched file that it registered to handle.
I know that in WP8 this was done with a URI and a file token (https://msdn.microsoft.com/en-us/library/windows/apps/jj206987%28v=vs.105%29.aspx), but since the SharedStorageAccessManager class is not available anymore, I guess that it must be done different in 8.1.
So: What happens on "OS-level" in Win8.1/WP8.1 when an app is launched via a file extension, and how does the target-app actually get the launched file?
Thanks in Advance!
The app can register as a file handler in its Package.appxmanifest. Openthe manifest designer in Visual Studio, go to the Declarations tab, and add a File Type Associations declaration. You'll be prompted to fill out the details.
The app's Application.OnFileActivated method will be called with the launched StorageFiles in the FileActivatedEventArgs.Files property.
See How to handle file activation and the Association Launching sample for documentation and walkthroughs.
At a system level this all gets stored in the registry and when the launcher is called on a file the shell looks up the association then uses COM (or historically command line parameters or DDE) to launch or connect to the app registered for the file type. The details are hidden from Windows Runtime apps but are more directly exposed to desktop apps on Windows. See File type and URI associations model Implementing a Custom File Format

Get size of a file in Isolated Storage WP 8.0

In a Windows Phone 8.0 application I calculate the size of a file with this following method:
Windows.Storage.FileProperties.BasicProperties props = await thisFile.GetBasicPropertiesAsync();
size = props.Size;
I've read here that this is for Windows Stors apps or WP 8.1 only, not below but it works and I am not getting any Exceptions. Why does it work if it's not supported? Are they going to reject my application submitting to Store?
If it's really not supported, what is the proper way, API to calculate the size of a file in Isolated Storage on WP 8.0?
If it works, it might be the documentation problem and there is no reason to reject your application from the store.

How to execute a background task only for once in windows phone 8.1 universal app

In my application after first login/registration I need to download data from server this will take some time. And user can quit the application while data is loading. So I need to download the data in background process. I know I can use backgorund application/Class and register this class in windows phone application but this is only for one time. Is there any other way to do so without creating backgourd task for this?
Maybe this will help,
You're looking for BackgroundDownloader and DownloadOperation in the Windows.Networking.BackgroundTransfer namespace.
BackgroundDownloader downloader = new BackgroundDownloader();
DownloadOperation download = downloader.CreateDownload(source, destinationFile);
MSDN Windows.Networking.BackgroundTransfer
Background Transfer Sample Project (Windows Universal)

Launch music from sd card in wp8

I am working a wp8 app which can read some different types file.Then launch them in a simply way.Like we can launch mp3 using MediaPlayerLauncher .But I failed.Any help will be kind to me.Thanks
I assume that you managed to use ExternalStorage. Firt of all you are not able to see this (mp3) files because they are reserved. What you can do is to change extensions to them and copy to InternalStorage. As you have done that you can play them well with MediaElement or BackGroundAudio.
Also it's not possible (for now) to play directly from ExternalStorage (SD card).