0

I'm looking for a way to open a browser at a specific link automatically at a give time / daily.

Maybe there is some kind of script, add-on for bowser but I still haven't find one.

Does anyone know a good solution?

Nmaster88
  • 1,405
  • 2
  • 23
  • 65

2 Answers2

0

I suggest you to use an AalarmManager here is an example

And then here is the code you should execute

String urlString = "your_url";
Intent intent = new 
Intent(Intent.ACTION_VIEW,Uri.parse(urlString));


intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
    intent.setPackage("com.android.chrome"); 
    try { 
    context.startActivity(intent); 
    } 
    catch (ActivityNotFoundException ex) { 
     context.startActivity(intent);
     }
ismail alaoui
  • 5,748
  • 2
  • 21
  • 38
0

Seems to me this is a combination of three things, setting the alarm, firing the intent and making sure the intent has the data to open a specific uri in the browser.

start activity from an alarm

open a uri