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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:07:28+00:00 2026-05-23T14:07:28+00:00

I created my own custom browser and I also have a background service that

  • 0

I created my own custom browser and I also have a background service that runs on startup. These are not in the same package, they are two separate installs. I want the service to be able to open my custom browser and launch a specific website in it at a specific time. I am currently able to launch the custom browser from the service but I don’t know how to pass the specified url to it. Is this possible?

EDIT

I currently have it working now using something along the lines of this in my background service.

intent.putExtra("WebSite", "www.android.com") 

then in my custom browser I put this in the onCreate() method

Intent sender = new Intent();
sender = getIntent();
String address = sender.getExtras().getString("WebSite");

I am getting the url then, but it is obviously force closing when I launch the app on my own instead of letting the remote service launch it because there is no intent for getIntent to get. I’m going to put a method in to check if there is an intent and if there is to launch it and if not skip. I think that should work. does anyone else have a better idea?

  • 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-23T14:07:29+00:00Added an answer on May 23, 2026 at 2:07 pm

    First activity (thus your service):

    Intent myIntent = new Intent();
    myIntent.putExtra("website", "www.android.com");
    startActivity(myIntent);
    

    Second activity (thus your browser:)

    String website = "";
    Bundle bundle = getIntent().getExtras();
    if (bundle != null) {
       website = bundle.getString("website");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom list view, each row has it's own custom selector,
I've created a custom textInput componenet that handles it's own validation using a private
I have created my own custom role provider class SGI_RoleProvider and configured properly. Everything
I created my own custom view that extends UIControl. This custom view has its
I've created my own (custom) Dialog. But would like to have its style like
Hope you can help. I have created my own Custom UIView and I'm trying
I have created my own custom ValidationAttribute : public class UrlValidationAttribute : ValidationAttribute {
I have created my own custom workflow (for now this is just adhoc workflow
I created my own custom date picker consisting of an ASP TextBox, Button, and
I have created my own button class called custom_btn. I created it on the

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.