Click here to Skip to main content
15,888,251 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im using the Libgdx framework and that is what´s making it all very difficult. Cause I want purchases to made with the click of a button. And that button is located in another "project".
So what I figured was to use an interface playing as a middle hand sort of. This is what I´ve done: (Not sure if you prefer Pastebin or direct code?)
The class that holds the buttons = http://pastebin.com/tTrfXj1s

The interface:

public interface purchaseInterface{

public String TOMBSTONE_ONE = "Tombstone_one";
	
	//Request code for the purchase flow
	static final int RC_REQUEST = 10001;
	public void applyTombstone();
	
	
	
}


And the AndroidLauncher class =http://pastebin.com/xqn5LK8d

I get either NullPointer or nothing at all depending on how I integrate the classes and interfaces.

Thanks in advance!
Posted
Comments
Richard MacCutchan 4-Jan-15 3:59am    
People here are not going to follow links (which are not clickable) to try and figure out what your issue is. Edit your question and add all the relevant information if you want help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900