Mobile App is closing during execution

Can you please share sample mobile deice connection properties and capabilties to reuse connection through out entire execution? Properties i applied are: Created a base class having a connection where i made output connection . I keep reusing this conn