Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Keeping page awake

Hi,

If I want to run a service on a timer what is the correct place to locate the timer event. If I place it on a page load event when the device goes to sleep the timer stops until the device is re-activated.

Regards,
Joe

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Keeping page awake

On page load (or app load) is fine.. but I'm not sure the mobile browsers support invoking the service when the browser is not active. Maybe there is a workaround, but you would need to check that.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Keeping page awake

Hi Max,

Thanks for the reply I have searched for a solution but have not yet found how to achieve this.

Totally unrelated, I have an image 'myimage' in a grid 'grd1' the image is hidden and I want to show it I have tried Tiggr('myimage').show(); but this does not work, what is the coreect method to do this?

Regards,
Joe

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Keeping page awake

How or on which event do you run the .show() function?

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Keeping page awake

I want to show an Image from the success event of a service call. But I have tested the show function from a button event without success.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Keeping page awake

Run this:

code
Tiggzi('image_name').parent().show();
/code

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Keeping page awake

Hi max, That's great thanks works from both the service and the button.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Keeping page awake

Hi Max,

I have found this Blog which describes a method that appears to do exactly what I need:

http://www.newtondev.com/2012/01/andr...

The functionality requires that the application manifest has an additional permission set. android.permission.WAKE_LOCK

If I wish to investigate this will I have to export my finished app then import it into eclipse in order to set it up. Please take a look and let me know what you think.

Regards,
Joe

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Keeping page awake

Yes, you would need to export.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Keeping page awake

Hi max, is there any plans to extend tiggzi to support these methods.

Return to “Issues”