Page 1 of 2

Keeping page awake

Posted: Mon Jan 07, 2013 1:54 pm
by Joe Bohen

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


Keeping page awake

Posted: Mon Jan 07, 2013 5:03 pm
by maxkatz

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.


Keeping page awake

Posted: Mon Jan 07, 2013 6:06 pm
by Joe Bohen

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


Keeping page awake

Posted: Mon Jan 07, 2013 6:18 pm
by maxkatz

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


Keeping page awake

Posted: Mon Jan 07, 2013 6:30 pm
by Joe Bohen

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.


Keeping page awake

Posted: Mon Jan 07, 2013 6:52 pm
by maxkatz

Run this:

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


Keeping page awake

Posted: Mon Jan 07, 2013 8:27 pm
by Joe Bohen

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


Keeping page awake

Posted: Thu Jan 10, 2013 2:38 pm
by Joe Bohen

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


Keeping page awake

Posted: Thu Jan 10, 2013 4:29 pm
by maxkatz

Yes, you would need to export.


Keeping page awake

Posted: Fri Jan 11, 2013 11:38 pm
by Joe Bohen

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