Google play wear os companion app

If you put button like in video then you need to call a function on it as well, otherwise they might not accept your app calling a function on a button is pretty easy as well just google it “how u create an intent of a browser on a button” you will find some help there.
Here is how you create function of a button inside MainActivity.java


 Button downloadBTN = (Button)findViewById(R.id.downloadBtn);
    downloadBTN.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
           
Uri uri = Uri.parse("https://play.google.com/store/apps/details?id=com.digitalwings.digitalwatch"); Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

} });
1 Like