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

  • Home
  • SEARCH
  • 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 7532101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:21:17+00:00 2026-05-30T05:21:17+00:00

is there a way to change the urls without compiling the app or deployment

  • 0

is there a way to change the urls without compiling the app or deployment once i pushed to the market? the url might change in future or point to different urls.

currently i am hardcoding the urls somethign like this:

 try {
 url = "http://ofertaweb.ro/android/sleepandlovemusic/" + songs_array[counter] + ".mp3";
 mediaPlayer.setDataSource(url);
 } 
  • 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-30T05:21:18+00:00Added an answer on May 30, 2026 at 5:21 am

    here is what i found a way to read the html file:

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    
    import org.apache.http.HttpResponse;
    import org.apache.http.client.ClientProtocolException;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.impl.client.DefaultHttpClient;
    
    public class Get_Webpage {
    
        public String parsing_url = "";
    
        public Get_Webpage(String url_2_get){       
            parsing_url = url_2_get;
        }
    
        public String get_webpage_source(){
    
            HttpClient client = new DefaultHttpClient();
            HttpGet request = new HttpGet(parsing_url);
            HttpResponse response = null;
            try {
                response = client.execute(request);
            } catch (ClientProtocolException e) {
    
            } catch (IOException e) {
    
            }
    
            String html = "";
            InputStream in = null;
            try {
                in = response.getEntity().getContent();
            } catch (IllegalStateException e) {
    
            } catch (IOException e) {
    
            }
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
            StringBuilder str = new StringBuilder();
            String line = null;
            try {
                while((line = reader.readLine()) != null)
                {
                    str.append(line);
                }
            } catch (IOException e) {
    
            }
            try {
                in.close();
            } catch (IOException e) {
    
            }
            html = str.toString();
    
            return html;
        }
    
    }
    

    then you read like this:

    try {
        Get_Webpage obj = new Get_Webpage("http://ofertaweb.ro/android/sleepandlovemusic/list_files.php");
        directory_listings = obj.get_webpage_source();
    } catch (Exception e) {
        }
    
    //Log.d("director listing", directory_listings);
    
    songs_array = directory_listings.split(":::");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to change the BackColor of the border of a panel
Is there any way to change the icon of an application after it is
Is there a way to change location of IsolatedStorage files? I am using .NET
Is there a way to change the root folder for the views to the
Is there a way to change the alignment of the icon or text of
Is there a way to change the value contained in an NSNumber after it
Is there a way to change the order of the controls inside a StackPanel
Is there a way to change the application language during runtime? So, after the
Is there a way to change the default ajax progressbar that is there in
is there a way to change the background color of a QTextBlock in a

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.