Keith Lynn wrote:Can you tell us what compile errors are reported?
Well that's part of the problem I get different errors each time because I'm not sure I'm placing this MainActivity.java code in the right spot or for that matter if anything else might be missing. Your best bet is to just look at my dropbox MainActivity file above and then show me where to place this code below exactly and maybe see if there is anything else I need to add for this to work. Because I'm a total newb at this but I'm learning a lot the last couple days.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//open up browser or play store with the provided link
String url = linkToYourDeveloperPage;
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);
}
});
}