Hi I am integrating Heyzap Leaderboard with my app for the first time. I have gone through this document on the official website of Heyzap. But I feel they have guided only on the check-in Heyzap.
I downloaded sdk for leaderboard Heyzap and made that a library project in my project. But I'm getting errors in the below mentioned three java files inside that sdk.
1) HeyzapLib.java:
Errors-
- errror1
i.setFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
The error says "FLAG_INCLUDE_STOPPED_PACKAGES cannot be resolved or is not a field";
- error2
new LeaderboardDialog(context, context.getPackageName(), levelId).show();
The error says "The constructor LeaderboardDialog(Context, String, String) is undefined"
- error3
LeaderboardScoreLauncher.launchScoreDialog(context, score, displayScore, levelId, gameIcon, context.getPackageName(), true, showScoreDialog);
The error says "The method launchScoreDialog(Context, String, String, String, Drawable, String, boolean) in the type LeaderboardScoreLauncher is not applicable for the arguments (Context, String, String, String, Drawable, String, boolean, boolean)"
2) HeyzapMarmalade.java:
error:
The import com.ideaworks3d cannot be resolved
3) UnityHelper.java:
error:
The import com.unity3d cannot be resolved
Also, in the document that came along with the SDK, they have guided to make Leaderboards on their dashboard by finding the game by the package name and then adding the leaderboards. I have done as directed but then how to link that with my code?
Can anyone suggest anything or advise on how to proceed?