How top upload a file in wp8.I could not find upload control.Is it possible to upload a document and can it open hard disk memory(where document resides)
Thanks in advance
In windows phone 8, There is no control like FileUpload instead of that you need to use Background Agent to upload files. here are two Good Samples you can go through How to Upload a File from a Windows Phone App and Auto-upload Sample
Related
I will attempt to be clear. Well, in the old web store of Windows Phone 8 before I could download manually any app or game, via the link: "Download and install manually" as you can see
in this image It is a feature that was lost with the arrival of the new store of Windows 10.
Ok. Now, in the following video Download and Install Apps (XAP/APPX Files) on WP8.1 via PC you can see at time t=53 sec, appears at bottom of page the link http://www.windowsphone.com/en-us/store/app/vimeo/the App ID/xap?apptype=regular
After the user clicks on 'Download and install manually' a popup box appears. Now you can see inside the pop-up box that the downloading of the app is downloaded from: http://cdn.marketplacecontent.windowsphone.com
But in fact the complete address follows this format:
http://cdn.marketplacecontent.windowsphone.com/public/the App ID?downloadname=name of the app.type of file(xap, appx or appxbundle)
For example, this is the direction of the game Tentacles: Enter the Mind from the Microsoft CDN server:
http://cdn.marketplacecontent.windowsphone.com/public/8915ee7c-c55d-4e8f-a0b6-f80497e6f26e?downloadname=tentacles-enter-the-mind.xap
As you just seen, the old web store of Windows Phone 8 could download apps and games from the Microsoft CDN server. Even with the new store Windows 10 you can still download apps from Microsoft CDN. There are website that somehow can download apps and games from the Microsoft CDN server such as: www.appx4fun.com www.windowscommunity.in and www.winphonehub.org to mention some.
Based upon everything I said, you have any idea of how to I can access the Microsoft CDN server to download apps without resorting to third-party stores? I would like to know how they do it.
NOTE: All apps can be downloaded manually using this address:http://cdn.marketplacecontent.windowsphone.com/public/the App ID?downloadname=name of the app.type of file(xap, appx or appxbundle)but for it to work you need to know the ID of the app you want to download and the type of file. How can I find the ID of the app? Know the ID is a very important information!
Well, that's all. I hope your answer
Regards.
I'm developing a windows phone application built with Titanium SDK 5.2.2.
I'm not able to save a file in directories directly accessible by the device (like Downloads directory).
I tried to use the only supported functionalities of Titanium API Titanium.Filesystem.getFile and Titanium.Filesystem.File.write, but the only way to save the file is to use Ti.FileSystem.applicationDataDirectory or Ti.File.resourcesDirectory to decide the path where store it.
It seems that, using these API, I cannot store file in one of the directories visible by the device(Documents, Downloads, Photos, Music), and then make them available inside the device.
Can I perform this download in the path visible to the device such as Downloads folder?
You might be able to use the externalStorageDirectory location:
https://github.com/appcelerator/titanium_mobile_windows/blob/e3ecddfe13179509e3b8d0699141763262ef5a97/Source/Filesystem/src/Filesystem.cpp#L81
We've had a similar request to expose the Downloads/Documents folder for iOS. I'd suggest to add a comment to request parity for Windows or create a new ticket:
https://jira.appcelerator.org/browse/TIMOB-23197
I opened an issue on Appcelerator JIRA for this question:
https://jira.appcelerator.org/browse/AC-3615 .
Is there any option to open word file in Windows Phone with web view ?
I get byte array data from specified API, and I want to show it on web view in my application.
No
You are out of luck
There are two way you can handle the DOCX files. You create a file and use Launcher.LaunchFileAsync to let the system open it in the default app (MS Office installed on Windows Phone). Or you can try to find a third party library that can display DOCX files.
I am playing alittle with windows phone 8.1 app creating. Using C# and phone emulator in VS2013. I have read on microsoft's page that i should be able to see OneDrive in standard file picker (msdn.microsoft.com/en-US/en-en/library/windows/apps/dn263258.aspx):
Use the built-in Windows features.
Whenever possible, use the Windows features and UI to host or interact
with OneDrive. For instance, use the file picker provided by the
Windows.Storage.Pickers namespace for opening and saving files. As
another example, have your app use the Windows application data APIs
to save smaller pieces of data across a user's devices.
I am using standard code from tutorial like:
openPicker.FileTypeFilter.Add("*");
StorageFile file = await openPicker.PickSingleFileAsync();
and it works but there is no OneDrive to choose. I have internet connection on emulated device and i am logged in to OneDrive.
Have you integrated your file picker with the OneDrive contract?: http://msdn.microsoft.com/en-us/library/windows/apps/hh465192.aspx
You can also use the Live SDK single sign-on feature for Windows Phone here: http://msdn.microsoft.com/en-us/library/dn631823.aspx This way, your app should work for your testing purposes because you are already signed in.
I hope this helps!
To my understanding, WinRT apps store their application data in
C:\Users\{user}\AppData\Local\Packages
My Windows Phone 8.1 application seems to have its own folder there as well, with an odd name like
App.aba911777.a60e8.a46c0.aa90d.a5038d92d276e_8wekyb3d8bbwe
However, when I browse the directory, I cannot find any of the files I've saved to ApplicationData.Current.LocalFolder. They are definitely there, because if I re-run my app in the emulator (which hasn't been closed at all), can find the cached files. Presumably these files are saved somewhere on my actual hard drive; where would they be?
(LocalFolder.Path gives me C:\Data\Users\DefApps\APPDATA\Local\Packages\2cdc8aaf-b7fe-4bcb-992a-18ad6f140771_b83k3kj2dpxdw\LocalState but I'm not sure how to find that on my hard drive)
To transfer/access files on Windows Phone Emulator (also works with device) you can use:
Isolated Storage Explorer tool - here is a good link how to do it, and also one useful here.
a very nice tool is Isolated Storage Spy - which now supports also WP8.1
Windows Phone Power Tools from here - you will have to check if that already works with WP8.1.
Search your SQLite db file in "C:\Users\\AppData\Local\Packages\".
localFolder.Path gives you correct location. You are not able to find that folder because AppData is been hidden. Please change your PC settings to view this folder.
Thanks