The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

 none
How to get windows phone total storage memory size? RRS feed

  • Question

  • Hi all,

    Is it poosible to get device total storage size in Windows phone 8.1(silverlight) application.

    Thanks


    Pallam Madhukar Windows Phone Developer

    Thursday, November 6, 2014 10:51 AM

Answers

  • I'm afrid of this can't be possible, cause windows phone app are running at SANDBOX enviroment,

    there not have public system API for commmon developer to get system storage status.

    but internal have this system API.

    Only you can do just get yourself app's storage space size.

    Thursday, November 6, 2014 2:38 PM
  • You can get free space by IsolatedStorageFile.AvailableFreeSpace Property , but can't not get total space


    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

    Thursday, November 6, 2014 3:31 PM

All replies

  • I'm afrid of this can't be possible, cause windows phone app are running at SANDBOX enviroment,

    there not have public system API for commmon developer to get system storage status.

    but internal have this system API.

    Only you can do just get yourself app's storage space size.

    Thursday, November 6, 2014 2:38 PM
  • You can get free space by IsolatedStorageFile.AvailableFreeSpace Property , but can't not get total space


    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

    Thursday, November 6, 2014 3:31 PM
  • Hi Bill Chung and THKAW

    If getting total space not possible, can we get filled storage space in device?

    Thanks 


    Pallam Madhukar Windows Phone Developer

    Friday, November 7, 2014 6:21 AM
  • No.

    Only your app can get space info is Bill Chung said.

    using IsolatedStorageFile.AvailableFreeSpace Property to get local storage space info.

    Friday, November 7, 2014 8:47 AM
  • Hi,
    You said that not possible. But I saw many applications used this feature in the Windows Store. See. (iCleaner, Storage Cleaner Pro ... ) So how is this possible? There must be a way. 
    Tuesday, June 28, 2016 12:32 PM
  • Hi Burhan Aksendir

    You can write Helper class to get the total device space with respective to the device model number. May be iCleaner, Storage Cleaner Pro apps also implemented same way.


    Pallam Madhukar Windows Phone Developer


    Wednesday, July 13, 2016 9:49 AM