Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

That is, I want my browser to start with two tabs open, set to two different URLs. I have tried putting "google.com | facebook.com" into the URL but that does not seem to achieve the intended effect.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

No, it's not possible.

How did I get such result? As always I started to google this possibility but found nothing interesting. So I decided to check Android Browser source code. If you want you can download it by typing in console:

git clone https://android.googlesource.com/platform/packages/apps/Browser

After 5-10 minutes (I'm not new in programming) of looking repository I found 2 facts:

1) The homepage is saved as one String (Java type).

2) The homepage is opening by calling this function (in Controller.java):

@Override
public Tab openTabToHomePage() {
    return openTab(mSettings.getHomePage(), false, true, false);
}

So as you see (If you know programming a bit) it returns one tab, not several (like List<Tab>).

share|improve this answer
    
Kudos for taking the time to read the source. I should have done that but wasn't familiar with Android source tree to quickly find the browser code. –  merlin2011 Jan 22 '13 at 22:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.