remove setting mainactivity and constants.