Getting errors : activity change

ilan

Expert
Licensed User
Longtime User
Hi

I am trying to make a program with some activities
But its not working correctly
Sometimes the switching works but whe i go back to main
Activity iget errors not always it happens if itry chage fast between
The activities and also if the phone was in sleep mode and i enter
The program it happens too

I have to say that i have a mediaplayer that plays a background music
If you enter the main activity and i have some timers that are moving image views cross the screen

What am i doing wrong?

Do i have to intialize the timers and the mediaplayer in activity resume?
I get erros that says you need to intialize object before using it
I am almost 100 % sure it has something to do with the mediaplayer

I almost give up with abdroid enveloping because more than one week i cannot solve the problem
I had in every activity mediaplayers and i removed them just to make my prog working

It shouldnot be so hard to make a prog via b4a

I work lot of hours on this prog and i am thinking to put all 5 activities in only one and change between them with panels
But if it would work smooth via activities i preffer to keep the prog like it is now with 5 activities

Who can help me please get my prog work without errors please
I want to put my prog in the play market as soon as possible
Thanx guys
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…