Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7774887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:29:28+00:00 2026-06-01T17:29:28+00:00

I am decrypting a video before playing it in Android. When I decrypt it

  • 0

I am decrypting a video before playing it in Android. When I decrypt it I want to store in the Android private folder so other apps and users cannot access it – I ve looked up some code which looks like this

String FILENAME = "hello_file";
String string = "hello world!";

FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();

I am calling this from a helper class which is not an activity class. How do I do this ? It seems to be expecting a call from an activity. And then how do I play it eventually from the folder?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:29:30+00:00Added an answer on June 1, 2026 at 5:29 pm

    By instancing your helpers class your constructor should accept Context as an extra argument and save it as a class member.
    So in the calling activity you can just pass this into it.

    Then call ctx.openFileOutput(FILENAME, Context.MODE_PRIVATE) – assuming you named the class member ctx.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to perform encryption - decryption of certain audio - video files. Can
Is it possible to use pure Encrypting and Decrypting keys instead of private and
I have encrypted video file and while decrypting it i have defined Byte byte[]
In my application i want to store some secure data by encrypting it. When
I'm uploading an encrypted file from Android phone to a server and decrypting the
With the wondrous lulsec, anonymous and other interesting parties breaking, decrypting (unless your plain-text
I have a Video file of 700 mb, For security reason, I want to
here are my methods for encrypting and decrypting data using RSA: private RSACryptoServiceProvider _RSACSP
Hi I want to decrypting my php encrypted string. My code is UsingPHP.java import
I'm encrypting/decrypting files of all sizes and kinds, from small text files to video

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.