Back to project page permission-explorer.
The source code is released under:
Copyright (C) 2012 Rui Gon?alves and Daniel Cibr?o Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
If you think the Android project permission-explorer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pt.up.fe.ssin.pexplorer.actions; // w w w.j a v a 2 s.co m import pt.up.fe.ssin.pexplorer.R; import pt.up.fe.ssin.pexplorer.app.PermissionAction; import android.content.Context; import android.content.Intent; import android.net.Uri; public class InternetAccessAction extends PermissionAction { private static final String URL = "http://images.wikia.com/meme/images/d/d2/14-me-gusta-22vmrft.png"; public InternetAccessAction() { super(R.string.internet_access_label, R.string.internet_access_desc, PermissionAction.WARN); } @Override protected void doAction(final Context context) { context.startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri .parse(URL))); } }