0

I'm trying to point to a different URL with a privacy policy in different languages, depending on the language of the device. I have the url's in a string.xml, under the key privacypolicyurl, I can't seem to get that id to show up in a java class.

public void privacyPolicy(){ //String url = "https://github.com/*******/MobileAppPrivacyPolicy/blob/master/MobilePrivacyPolicy.txt"; url = R.id.pr Uri uri = Uri.parse(getResources().getText(R.id.privacypolicy)); startActivity( new Intent( Intent.ACTION_VIEW, uri ) ); }

poboy975
  • 55
  • 5

1 Answers1

0

You are using the wrong method in getResources(). You have to use getString()

Like in here

By the way, you should check previous questions for your problem before asking a new one.

Community
  • 1
  • 1
Gustavo Conde
  • 927
  • 12
  • 20