Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I'm trying though!

  1. #1
    Junior Member
    Join Date
    Feb 2023
    My Mood
    Thanked 0 Times in 0 Posts

    Default I'm trying though!

    Hey guys,
    I hate admitting it, but I'm totally newbie material here... Proficient in other languages, but beginning in this one. So I'm hoping there is a kind Wizard among you that is able to shed some light on my quest so that I may save the world.

    I currently run a site which hosts apk files for download. This site is only accessible via an application on the subscribers device. The application is also responsible for downloading and installation when the subscriber chooses a file. Recently, this application has been updated for security reasons, resulting in my site undergoing several ssl modifications as well. The issue is, the downloader application isn't finding the file that is being selected. After decompiling the newest version, I see the download path has been changed to something that's set each time the application is ran.

    private TabletStateProvider(Context context) {
    this.context = context;

    public static TabletStateProvider getInstance(Context context) {
    TabletStateProvider tabletStateProvider = tabletStateProvider;
    if (tabletStateProvider == null) {
    tabletStateProvider = new TabletStateProvider(context);
    } else {
    return tabletStateProvider;

    public void setContext(Context context) {
    this.context = context;

    Afterwards the download path is set by setting "tabletStatePath"...

    public static void initTabletstatePath(Context context) {
    tabletStatePath = context.getFilesDir().getAbsolutePath();

    Where I'm confused is setContext...If i understood this a little bit better, it would help me to understand the directory hierarchy that should match my server... Any help?
    Last edited by SupaMane; February 7th, 2023 at 11:40 PM. Reason: I hate auto-correct

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I'm trying though!

    I'm confused is setContext
    Please explain what the problem is. That method looks like a normal set method: it takes a value and saves/sets it in the class.

    Please edit your post and wrap your code with code tags:


    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Tags for this Thread