MLBB Player Info Fetcher Library for Android
Add below codes to your root build.gradle
file (not your module build.gradle file).
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
And add a dependency code to your module's build.gradle
file.
dependencies {
implementation 'com.github.sudoxE7:MLBBPlayerInfoFetcher:master-SNAPSHOT'
}
Add in your Activity file.
int playerId = 1224417029;
int serverId = 11439;
new MLBBPlayerInfoFetcher(this, playerId, serverId)
.fetchPlayerInfo(new MLBBPlayerInfoFetcherListener() {
@Override
public void onPlayerInfoFetched(String imageUrl, String playerName) {
((TextView) findViewById(R.id.textview1)).setText(playerName);
}
});
// Credit to Exodus