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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:59:00+00:00 2026-06-01T01:59:00+00:00

EXTRA_APPLICATION_ID seems not to work in the tablet. Do you know other work around

  • 0

EXTRA_APPLICATION_ID seems not to work in the tablet. Do you know other work around to reuse tab of the Browser.apk when starting the Browser by intent from my service. This is directly related to 9902225. Any hints is appreciated.

Cause: The resuseTab() will not be called if the device is a tablet.

See line:

* 3-tablet) Open new tab

See line:

if (activateVoiceSearch || !BrowserActivity.isTablet(mActivity)) {

// Browser.apk source code (Android 4.0.3_r1-6)

com.android.browser.IntentHandler

void onNewIntent(Intent intent) {
....
   /*
     * TODO: Don't allow javascript URIs
     * 0) If this is a javascript: URI, *always* open a new tab
     * 1) If this is a voice search, re-use tab for appId
     *    If there is no appId, use current tab
     * 2) If the URL is already opened, switch to that tab
     * 3-phone) Reuse tab with same appId
     * 3-tablet) Open new tab
     */
    final String appId = intent
            .getStringExtra(Browser.EXTRA_APPLICATION_ID);
    if (!TextUtils.isEmpty(urlData.mUrl) &&
            urlData.mUrl.startsWith("javascript:")) {
        // Always open javascript: URIs in new tabs
        mController.openTab(urlData);
        return;
    }
    if ((Intent.ACTION_VIEW.equals(action)
            // If a voice search has no appId, it means that it came
            // from the browser.  In that case, reuse the current tab.
            || (activateVoiceSearch && appId != null))
            && !mActivity.getPackageName().equals(appId)) {
        if (activateVoiceSearch || !BrowserActivity.isTablet(mActivity)) {
            Tab appTab = mTabControl.getTabFromAppId(appId);
            if (appTab != null) {
                mController.reuseTab(appTab, urlData);
                return;
            }
        }
        // No matching application tab, try to find a regular tab
        // with a matching url.
        Tab appTab = mTabControl.findTabWithUrl(urlData.mUrl);
        if (appTab != null) {
            // Transfer ownership
            appTab.setAppId(appId);
            if (current != appTab) {
                mController.switchToTab(appTab);
            }
            // Otherwise, we are already viewing the correct tab.
        } else {
            // if FLAG_ACTIVITY_BROUGHT_TO_FRONT flag is on, the url
            // will be opened in a new tab unless we have reached
            // MAX_TABS. Then the url will be opened in the current
            // tab. If a new tab is created, it will have "true" for
            // exit on close.
            Tab tab = mController.openTab(urlData);
            if (tab != null) {
                tab.setAppId(appId);
                if ((intent.getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) {
                    tab.setCloseOnBack(true);
                }
            }
        }
  • 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-01T01:59:02+00:00Added an answer on June 1, 2026 at 1:59 am

    For ICS and tablet devices, you need to set the intent’s App ID as the browser’s App ID.
    So you need to use com.android.browser instead of getPackageName()

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

Sidebar

Related Questions

In my application user can share information with different apps using: shareIntent.putExtra(Intent.EXTRA_SUBJECT, Link from
I'm taking the following structure from around the net as a basic example of
How do I add extra data into an atom feed that does not map
So I'm not sure how to do this in a cakey way. I've hacked
I am designing a database and initially I setup addresses separate from orders so
I have this facebook application which adds a custom tab to fan pages. You
I'm posting data from a Flex app to a php script. GET works fine
We have an XMPP application that uses MySQL to store information. We are not
i'm trying to upgrade an old CMS to use NHibernate and can't deter from
Not really sure what happened here, as Devise was working until recently. 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.