I downloaded the IPFS library as the following article
But it doesn’t show how to pass the credentials, like projectid and secretid
Follow the article, show me this error “android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)”
I know you need to send the information, but how to send this information to authenticate yourself?
private AppBarConfiguration appBarConfiguration;
private ActivityMainBinding binding;
MultiAddress IPFS_INFURA_URL = new MultiAddress("/dnsaddr/ipfs.infura.io/tcp/5001/https");
IPFS ipfsClient;
//Creating an IPFS client:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new Thread(new Runnable() {
@Override
public void run() {
ipfsClient = new IPFS(IPFS_INFURA_URL);
}
}).start();
}
i tryed with ultiAddress(“kornerzipfs.infura-ipfs.io/ipfs/2H5loO4DyHz8E7SAvDhIzV8YDaL”) too
when after the last / is my project id