Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a TabActivity and there are 3 tabs in it. In one of the 3 tabs, there is a Button, and I want the button to do something. But where ever I put the EventListener, it just doesn't work. It gives me a NullPointerException.

What I have tried:

I have tried to put the EventListener in the onCreate method and the getItem method but it always returns a NullPointerException.
Posted
Comments
Richard MacCutchan 14-Sep-17 1:20am    
Then you are doing it wrong. But without seeing your code it is anyone's guess what.

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