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 6641271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:47:28+00:00 2026-05-25T23:47:28+00:00

I am retrieving about 7 URL’s from a service. I want to be able

  • 0

I am retrieving about 7 URL’s from a service. I want to be able to write these URL’s some where and have my application read from them in another activity.

The thing that makes this tricky is the URL’s change every week. So i would need to overwrite the current URL’s. I don’t want to make the url’s stack up on top of each other where they never overrite and by the end of a month there are 24 unused URL’s.

What and how is the best way to do this?

  • 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-05-25T23:47:29+00:00Added an answer on May 25, 2026 at 11:47 pm

    Use SharedPreferences!

    lol here is a sample:

    public void SetUrls(String url[]) {
        SharedPreferences settings = getSharedPreferences("myPrefs", 0);
        SharedPreferences.Editor editor = settings.edit();
        editor.putString("url0", url[0]);
        editor.putString("url1", url[1]);
        editor.putString("url2", url[2]);
        editor.putString("url3", url[3]);
        editor.putString("url4", url[4]);
        editor.putString("url5", url[5]);
        editor.putString("url6", url[6]);
        editor.commit();
    }
    
    public String[] getUrls() {
        SharedPreferences settings = getSharedPreferences(DEALSPOTR_PREFS, 0);
        String url[] = new String[7];
        url[0] = settings.getString("url0", "default");
        url[1] = settings.getString("url1", "default");
        url[2] = settings.getString("url2", "default");
        url[3] = settings.getString("url3", "default");
        url[4] = settings.getString("url4", "default");
        url[5] = settings.getString("url5", "default");
        url[6] = settings.getString("url6", "default");
        return url;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read something about them via official doc and some posts, but I'm
I'm retrieving information about places from my database. After retreiving them, I want to
I have a question about retrieving data values which are sent from a web
I'm using Quality Center 10, and have a question about retrieving data from a
How do I go about either making, or retrieving facebook short url's (fb.me) from
I have problem today about retrieving data from SQLite. Here is my coding public
I am retrieving an array values from database which save multi dimensional array..i want
I was just wondering how I would go about retrieving the id from an
How would i go about retrieving the referring url with either PHP or apache.
How would one go about retrieving a dependent/parent object from an entity. $person->getAddress(); This

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.