Write/Save File to External Storage | Android Studio

Поділитися
Вставка
  • Опубліковано 19 сер 2024
  • 🏆 My Online Courses
    stevdza-san.com
    🐱‍👤 Wanna become a member? Join!
    / @stevdzasan
    📸 Instagram
    / stevdza_san
    Learn how to easily save/write simple .txt file to external storage.
    Check out my previous tutorial, to learn how to check if external storage state is enabled for writing or reading: • Check External Storage...
    Download Project Files: q.gs/E0cXz

КОМЕНТАРІ • 35

  • @eksno
    @eksno 5 років тому +26

    People like you on the internet making videos about these rare things that not too many people watch are the real heroes of this earth!

  • @mintulnilukarismi2151
    @mintulnilukarismi2151 5 років тому +2

    thanks man...!! you solve my problem... i just need to access the file path directory, and i implement my code to save another type of file... and works!!!!

  • @iamjorellr
    @iamjorellr 4 роки тому +4

    This will NOT write to external storage (not removable storage). This write to the "external" emulated storage.

  • @ijhafe8uyasdij9u823ihuqbhy
    @ijhafe8uyasdij9u823ihuqbhy 2 роки тому

    for android 10,11+ you need additional permission:

  • @storyversestories
    @storyversestories 3 роки тому +1

    Hey bro,update this video for android 11

  • @berserk989_
    @berserk989_ 4 роки тому

    Thanks so much for your help!!! I was getting a weird error until I found your tutorial.

  • @joashnaidoo8644
    @joashnaidoo8644 4 роки тому +1

    thats not the actual external directory. The file is still saved in the internal storage

  • @shade6946
    @shade6946 6 років тому +1

    What do i have to do if I want to write a file into for example the DCIM folder?

  • @johanfick8690
    @johanfick8690 6 років тому

    Thanks man this worked for me! Keep up the good work.

  • @AndreySvininykh
    @AndreySvininykh 3 роки тому

    Can you create video about Storage Access Framework using?

  • @christopherpantazi316
    @christopherpantazi316 6 років тому +4

    I dont kmow why but I cant write to External storage... I dont have the permission even with the

    • @ajbleas
      @ajbleas 6 років тому

      Same issue here
      Not entirely sure how to resolve, but still looking.

    • @draceon
      @draceon 6 років тому +3

      developer.android.com/training/permissions/requesting
      Newer APIs let the user decide which permissions to allow and which to deny. Therefore, even if a permission is specified in the manifest, it doesn't mean its granted. You will need to ask the user for this permission manually, using a dialog. Check out the above link, it should help you create such a dialog.

    • @srs.r6354
      @srs.r6354 3 роки тому +1

      Same issue

  • @pravinpund7523
    @pravinpund7523 3 роки тому

    Dear sir, Greetings of the day! I want to create an app which can extract data from excel, csv, xlsx formats and save into android sqlite database and then plot it in Mpandroid chart. If you could help me , please prepare series on it, in kotlin. Searched on youtube but couldn't find good tutorial Thanks in advance

  • @syedashireen451
    @syedashireen451 6 років тому

    In writeFile method in if statement I am getting an error tht cannot find d symbol variable permission...

  • @abhirrup93patra
    @abhirrup93patra 6 років тому

    if i want to store more than 1 input what will the difference in code

  • @SoCu2
    @SoCu2 6 років тому +2

    Hello PentestingBro, thanks for the tutorial, yes you can write on the external card, but you can't write on the removable SD Card, how should the code be to write on the SD Card?

    • @isaacperez2071
      @isaacperez2071 5 років тому

      do you know what's the diference between "external card" from "emulated" and external card "SD"?

    • @iamjorellr
      @iamjorellr 4 роки тому +1

      @@isaacperez2071 external here is the internal "emulated" storage, not the actual external storage.

  • @haydenkennedy3306
    @haydenkennedy3306 5 років тому

    Thank you, this has help me alot!

  • @Soft_menu
    @Soft_menu 4 роки тому

    this is cool!! thanks bro

  • @asadsayyed8412
    @asadsayyed8412 4 роки тому +1

    Please make the same in kotlin

    • @coulterminer
      @coulterminer 3 роки тому

      please switch to a reliable language if you want good tutorials

  • @WMPD39
    @WMPD39 6 років тому

    ٍversion 4.2 not not !!!

  • @SafdarAliShah_TimeTraveler
    @SafdarAliShah_TimeTraveler 6 років тому

    how to make intro like you brother.....

  • @loveAyou1
    @loveAyou1 Рік тому

    3:10

  • @johnny88sunday
    @johnny88sunday 5 років тому

    Bentesting Pro

    • @StevdzaSan
      @StevdzaSan  5 років тому +1

      Pentesting Bro was my previous channel name. :-)