Please help us to help you.
You have not told us anything except "my program does not work".
No logs, no code snippits, no telling us what you have already tried, etc.
Try posting the LogCat around where you think the problem is and if you
think it will help post some of your code referenced from LogCat.
You could also try putting a breakpoint in your code just before the
error(s) you see in LogCat and have a look yourself and see what your
program is doing the the debugger.