Connecting Metamask to a Java application on Android Studio

How to connect my application to Metamask in Java, written in Android Studio, so that Metamask Asks to give the user permission to access the wallet for convenient transactions and balance viewing? I want to add a button in the project itself, when clicked, the dapp makes a request to Metamask, which is installed on the android phone, in order to get permission to access the user’s wallet. This is necessary so that when making transactions within the application, the user can simply confirm the transaction in the pop-up Metamask window. An example would be a simple Metamask connection to a website. However, I need to implement this in Android Studio on Android on Java. I will be grateful for any answer.

can you give more context?

you are trying to open metamask from a mobile application?

did you try to use wallet connect?

I want to add a button in the project itself, when clicked, the dapp makes a request to Metamask, which is installed on the android phone, in order to get permission to access the user’s wallet. This is necessary so that when making transactions within the application, the user can simply confirm the transaction in the pop-up Metamask window. An example would be a simple Metamask connection to a website. However, I need to implement this in Android Studio on Android on Java. I will be grateful for any answer.

Look at the replies to my letter

I don’t have experience with that in particular, I understand that you want to access metamask from a mobile application, on a mobile device usually wallet connect is used in order to connect to a wallet

Then how to implement the WalletConnect connection to the Android application?

maybe this helps:
https://medium.com/walletconnect/beginner-guide-to-walletconnect-v2-0-sign-protocol-for-android-developers-936293e30700

Hey @Egor, just checking you back in

Did you find the guide from @cryptokid helpful? or did you find any other hurdle?

Please let us know and we’ll help you as much as we can :raised_hands: