Results 1 to 3 of 3

Thread: setOfflineStoragePath() to "internal shared storage/Android/data/<APPNAME>/"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2019
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Unix/X11 Windows

    Default setOfflineStoragePath() to "internal shared storage/Android/data/<APPNAME>/"

    Hello gurus,

    im looking to see how I can set the offlinestoragepath to the android folder "internal shared storage/Android/data/<APPNAME>/".
    Basicaly its because i need to store soem application files for public purposes where it can be downloaded just via plugging USB cable and browsing these public folders...
    and unfortunatelly, because the device is not rooted, after plugging usb cable and setting UBS to "Transfer files", i see only one drive on the device "Internal shared storage" as i dont use the external card.

    Than kyou

  2. #2
    Join Date
    Mar 2009
    Brisbane, Australia
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows
    Wiki edits

    Default Re: setOfflineStoragePath() to "internal shared storage/Android/data/<APPNAME>/"

    So you want to know how to determine a system path on Android so that you can address the location. Seems that Google and StackExchange think this is the function you are after:
    Qt Code:
    1. File dir = Environment.getExternalStorageDirectory(); // external to your application, not external to the machine
    2. String path = dir.getAbsolutePath();
    To copy to clipboard, switch view to plain text mode 
    except you want it from C++ not Java.

Similar Threads

  1. Replies: 1
    Last Post: 14th November 2019, 20:55
  2. Replies: 4
    Last Post: 15th July 2012, 02:41
  3. Replies: 1
    Last Post: 7th April 2010, 21:46
  4. Replies: 3
    Last Post: 25th August 2009, 13:03
  5. QPixmap: X11 "memory leak" due to shared pixmap data?
    By chezifresh in forum Qt Programming
    Replies: 0
    Last Post: 21st April 2009, 19:53


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.