[ANN] libDate on gitHub

2015-04-02 Thread Malte Brill
Monte: That is extremly interesting! I was not aware that the engine would load 
plain text files as a stack nowadays. Do you know when that was introduced? Do 
you know where I can find more information on that??

All the best and thanks a lot,

Malte



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Installer Maker 1.8.8b01

2015-04-02 Thread Mark Schonewille

Dear Installer Maker users,

Economy-x-Talk has released a beta version of Installer Maker 1.8.8. 
When it leaves beta stage, it will be a free update for anyone who 
bought a license after 1st November 2014.


Recently, we received reports from 3 of our customers about corrupt 
application packages. We have made an attempt to solve this problem, but 
we need more test results. We would like to ask for your help.


We have added a few hidden debugging features to Installer Maker. These 
features store the defaultFolder and other information about the scripts 
as they are running. The installer doesn't store any personal information.


Please, download Installer Maker here.

Windows: http://qery.us/tn6

OSX: http://qery.us/tn5

We would appreciate it if you could build and test an installer. Please, 
let us know if the application package installed by the installer is 
corrupt. If it is, we would like to have a look at your installer.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] libDate on gitHub

2015-04-02 Thread Monte Goulding
Hey Malte

I'm not sure where any more info is. There's examples in the github LiveCode 
repo if you look in the IDE support directory and also if you look in the LC 
app bundle you can see the livecodescript files.

Cheers

--
M E R Goulding
Software development services

mergExt - There's an external for that!

> On 2 Apr 2015, at 7:38 pm, Malte Brill  wrote:
> 
> Monte: That is extremly interesting! I was not aware that the engine would 
> load plain text files as a stack nowadays. Do you know when that was 
> introduced? Do you know where I can find more information on that??
> 
> All the best and thanks a lot,
> 
> Malte
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Connexion to external device

2015-04-02 Thread Richmond

You wrote:

"I wrote a simple LiveCode program running on OSX, Win, Linux, iOS and
... KindleFire (the only Android that I have), connecting an Arduino Uno
R3 + Arduino WiFi Shield. The program read the 6 analog port values and
can read/set the only 4 digital pin (5,6,8,9) remaining free when you
use the WiFi Shield (which, as probably you know, use a lot of pin :
4,11,12,13,7,10).

To increase the I/O I'm now trying to move to Arduino Mega 2560 ... ;-)

All the exchange of information is done using the HTTP/GET protocol, so
quite easy ...

If you need more info or help, free to contact me off-list ... :-)"

I am trying to send and receive information to a Valiant Roamer (turtle)
over a USB connexion (cross-platform) and would be most grateful for any 
help.


Richmond Mathewson.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Movie problems in LiveCode

2015-04-02 Thread Devin Asay

On Mar 31, 2015, at 3:14 PM, stgoldb...@aol.com wrote:

> 
> Yes, Devin, in using your script for Macintosh using LC 6.7 and higher:
> 
> set the filename of player 1 to the defaultFolder & "/media/mymovie.mov"
> 
> that appears to let the movie show after the standalone is transferred to 
> other Mac or Windows computers.
> I thank you for pointing that out. However, with that script, I am now unable 
> to see the movie in the stack prior to creating the standalone. 
> Any suggestion for that?  Thanks.
> 
> Stephen Goldberg

Stephen,

Yes, the defaultFolder is, by default, set to the folder where the LiveCode 
engine is located. That means that in standalones the defaultFolder is the 
folder where the .app bundle (on Macs) or .exe file (on Windows) is located. 
However, when working in the IDE the engine is the LiveCode application. Thus, 
in the IDE the defaultFolder is initially the folder containing the LC 
application, something like /Applications on my Mac, or C:\Program 
Files(x86)\RunRev\LiveCode on Windows. That means you need to do something 
different while working in the IDE.

In most of my projects I check the environment before setting the folder path 
for external media resources, similar to this:

  # In the script where I’m setting the filepath of the player (or image) 
object:

  set the filepath of player “myplayer” to mediaFolderPath() & 
“/media/mymovie.mov”

In the stack script I’ll include functions like this:

  function mediaFolderPath
put the environment into tEnv
if tEnv is “development” then
  return enclosingFolder()
else if tEnv is “standalone” then
  return the defaultFolder
else if tEnv is “mobile” then
  return specialFolderPath(“engine”)
end if
  end mediaFolderPath

  function enclosingFolder
set the itemDelimiter to “/“
return item 1 to -2 of the effective filename of this stack
  end enclosingFolder

There is one interesting wrinkle with setting the defaultFolder on Mac OS X 
that allows you to “hide” your media assets inside the .app bundle. If you 
choose to set the defaultFolder to enclosingFolder() in the standalone 
environment, the defaultFolder will be the ApplicationName.app/Contents/MacOS 
folder *inside* the .app bundle. If you choose NOT to set the defaultFolder in 
the standalone, it will remain, by default, the folder that encloses the .app 
bundle. Of course, if you choose to “hide” your media assets using this 
technique you must be sure to move them into the Contents/MacOS folder at build 
time. This is most easily done by using the Copy Files tab in the Standalone 
Application Settings.

(Some time ago I added a note regarding this "quirk"—I happen to think it’s a 
“feature”—of Mac OS X to the defaultFolder entry in the LC dictionary. You may 
also find that helpful.)

Regards,

Devin

Devin Asay
Office of Digital Humanities
Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Data Crid - set the dgNumberOfRecords

2015-04-02 Thread Peter Haworth
The datagrid calls GetDataForLine every time it needs a line of data to put
into the datagrid.  You will need to write a GetDataForLine handler in the
datagrid's script to handle the logic for doing this.

Get DataFor Line includes a parameter that specifies the line number of the
line needed.  If you are using a database cursor, use the line number to
get hold of the database data for that line (actually, it's the line number
- 1 since cursor record numbers are zero based), format it according to the
datagrid columns, and put into the pdata parameter of the handler.

Be aware that using this method to populate the datagrid means that things
like the dgText and dgData properties of the datagrid will return empty.
If I remember correctly, you will also have to handle your own sorting when
the user clicks on a column header.

It's not trivial and I would not recommend doing it unless you truly need
to display a very large number of records in the datagird and you are
experiencing performance issues.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 

On Wed, Apr 1, 2015 at 8:16 PM, JB  wrote:

> I am using a table form of data grid and trying
> to display the records using a cursor and then
> setting the dgNumberOfRecords.
>
> I am able to get the cursor and the record count
> of the cursor and I can get dgNumberOfRecords
> before I set dgNumberOfRecords.
>
> I want to set dgNumberOfRecords so the records
> are displayed dynamically like is done in the sample
> stack for displaying a large number of records.
>
> Am I supposed to set up the GetDataForLine or the
> dgNumberOfRecords in my data grid somehow?
>
> When I set dgNumberOfRecords nothing else happens
> and any script after that does not work either.
>
> Anyone have a clue why it stops or a different stack that
> shows how to use it properly?
>
> John Balgenorth
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Getting in a mix-up with COMn

2015-04-02 Thread Richmond
Having got my USB device connected to a Windows 7 box, and the driver 
installed, and determined that the

device is listed at COM3 I put this into a button:

on mouseUp
   open file "COM3:" for read
   read from file COM3: until end
   put it into fld "DData"
end mouseUp

and I got one of those charmingly seasonal red hotcross buns right next 
to line 3,


which seems funny give that I just copied that from the Documentation . . .

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Data Crid - set the dgNumberOfRecords

2015-04-02 Thread JB
Hi Pete,

Thank you very much for the reply and
all of the info!

I relay appreciate the help.  It sounds like
that is not the way to go.  I assume it will
also disable any checkboxes that were
added to the data grid.

thanks again,
John Balgenorth


On Apr 2, 2015, at 9:22 AM, Peter Haworth  wrote:

> The datagrid calls GetDataForLine every time it needs a line of data to put
> into the datagrid.  You will need to write a GetDataForLine handler in the
> datagrid's script to handle the logic for doing this.
> 
> Get DataFor Line includes a parameter that specifies the line number of the
> line needed.  If you are using a database cursor, use the line number to
> get hold of the database data for that line (actually, it's the line number
> - 1 since cursor record numbers are zero based), format it according to the
> datagrid columns, and put into the pdata parameter of the handler.
> 
> Be aware that using this method to populate the datagrid means that things
> like the dgText and dgData properties of the datagrid will return empty.
> If I remember correctly, you will also have to handle your own sorting when
> the user clicks on a column header.
> 
> It's not trivial and I would not recommend doing it unless you truly need
> to display a very large number of records in the datagird and you are
> experiencing performance issues.
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> 
> On Wed, Apr 1, 2015 at 8:16 PM, JB  wrote:
> 
>> I am using a table form of data grid and trying
>> to display the records using a cursor and then
>> setting the dgNumberOfRecords.
>> 
>> I am able to get the cursor and the record count
>> of the cursor and I can get dgNumberOfRecords
>> before I set dgNumberOfRecords.
>> 
>> I want to set dgNumberOfRecords so the records
>> are displayed dynamically like is done in the sample
>> stack for displaying a large number of records.
>> 
>> Am I supposed to set up the GetDataForLine or the
>> dgNumberOfRecords in my data grid somehow?
>> 
>> When I set dgNumberOfRecords nothing else happens
>> and any script after that does not work either.
>> 
>> Anyone have a clue why it stops or a different stack that
>> shows how to use it properly?
>> 
>> John Balgenorth
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Unconference in NYC

2015-04-02 Thread PystCat
Thanks Craig.  I just got this… you go straight into my spam folder… apparently 
Google thinks you are a spam sender…


> On Mar 11, 2015, at 4:41 PM, dunbarx  wrote:
> 
> There are parking garages around the neighborhood, one on Broadway (Brooklyn,
> of course) just below the Williamsburg Bridge, and a few a bit north of the
> venue. All within a handful of blocks.
> 
> Colin lives in Brooklyn. I would follow his lead
> 
> The old NYHUG group is meeting tonight. I will try to find out about the
> time. I assume it starts at 10AM EST.
> 
> Craig Newman
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/OT-Unconference-in-NYC-tp4689980p4689986.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [OT] Unconference in NYC

2015-04-02 Thread Peter Haworth
On Thu, Apr 2, 2015 at 4:04 PM, PystCat  wrote:

> Thanks Craig.  I just got this… you go straight into my spam folder…
> apparently Google thinks you are a spam sender…
>

I used to have the same problem with anyone on AOL.  I have a gMail filter
that sends all the lC mailing list entries to a specific folder.  I just
changed that filter to use the "never send to spam" option.

HTH,

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [OT] Unconference in NYC

2015-04-02 Thread PystCat
HA!!  Thanks… I’m going to go check that out in Gmail, now…


> On Apr 2, 2015, at 7:16 PM, Peter Haworth  wrote:
> 
> On Thu, Apr 2, 2015 at 4:04 PM, PystCat  wrote:
> 
>> Thanks Craig.  I just got this… you go straight into my spam folder…
>> apparently Google thinks you are a spam sender…
>> 
> 
> I used to have the same problem with anyone on AOL.  I have a gMail filter
> that sends all the lC mailing list entries to a specific folder.  I just
> changed that filter to use the "never send to spam" option.
> 
> HTH,
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Data Crid - set the dgNumberOfRecords

2015-04-02 Thread Peter Haworth
Not sure about that since I've never used dgNumberOfRecords with a datagrid
that had a checkbox.  But yes, unless there's a really good reason to use
it, which is usually performance related, I wouldn't bother with it.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 

On Thu, Apr 2, 2015 at 3:58 PM, JB  wrote:

> Hi Pete,
>
> Thank you very much for the reply and
> all of the info!
>
> I relay appreciate the help.  It sounds like
> that is not the way to go.  I assume it will
> also disable any checkboxes that were
> added to the data grid.
>
> thanks again,
> John Balgenorth
>
>
> On Apr 2, 2015, at 9:22 AM, Peter Haworth  wrote:
>
> > The datagrid calls GetDataForLine every time it needs a line of data to
> put
> > into the datagrid.  You will need to write a GetDataForLine handler in
> the
> > datagrid's script to handle the logic for doing this.
> >
> > Get DataFor Line includes a parameter that specifies the line number of
> the
> > line needed.  If you are using a database cursor, use the line number to
> > get hold of the database data for that line (actually, it's the line
> number
> > - 1 since cursor record numbers are zero based), format it according to
> the
> > datagrid columns, and put into the pdata parameter of the handler.
> >
> > Be aware that using this method to populate the datagrid means that
> things
> > like the dgText and dgData properties of the datagrid will return empty.
> > If I remember correctly, you will also have to handle your own sorting
> when
> > the user clicks on a column header.
> >
> > It's not trivial and I would not recommend doing it unless you truly need
> > to display a very large number of records in the datagird and you are
> > experiencing performance issues.
> >
> > Pete
> > lcSQL Software 
> > Home of lcStackBrowser  and
> > SQLiteAdmin 
> >
> > On Wed, Apr 1, 2015 at 8:16 PM, JB  wrote:
> >
> >> I am using a table form of data grid and trying
> >> to display the records using a cursor and then
> >> setting the dgNumberOfRecords.
> >>
> >> I am able to get the cursor and the record count
> >> of the cursor and I can get dgNumberOfRecords
> >> before I set dgNumberOfRecords.
> >>
> >> I want to set dgNumberOfRecords so the records
> >> are displayed dynamically like is done in the sample
> >> stack for displaying a large number of records.
> >>
> >> Am I supposed to set up the GetDataForLine or the
> >> dgNumberOfRecords in my data grid somehow?
> >>
> >> When I set dgNumberOfRecords nothing else happens
> >> and any script after that does not work either.
> >>
> >> Anyone have a clue why it stops or a different stack that
> >> shows how to use it properly?
> >>
> >> John Balgenorth
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Data Crid - set the dgNumberOfRecords

2015-04-02 Thread JB
Thanks again, Pete!

If there is a performance issue due to
a large number of records it can easily
be solved by making another database.

I won’t be using it.  You save me a lot of
time and that really is a big help!

John Balgenorth


On Apr 2, 2015, at 4:19 PM, Peter Haworth  wrote:

> Not sure about that since I've never used dgNumberOfRecords with a datagrid
> that had a checkbox.  But yes, unless there's a really good reason to use
> it, which is usually performance related, I wouldn't bother with it.
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> 
> On Thu, Apr 2, 2015 at 3:58 PM, JB  wrote:
> 
>> Hi Pete,
>> 
>> Thank you very much for the reply and
>> all of the info!
>> 
>> I relay appreciate the help.  It sounds like
>> that is not the way to go.  I assume it will
>> also disable any checkboxes that were
>> added to the data grid.
>> 
>> thanks again,
>> John Balgenorth
>> 
>> 
>> On Apr 2, 2015, at 9:22 AM, Peter Haworth  wrote:
>> 
>>> The datagrid calls GetDataForLine every time it needs a line of data to
>> put
>>> into the datagrid.  You will need to write a GetDataForLine handler in
>> the
>>> datagrid's script to handle the logic for doing this.
>>> 
>>> Get DataFor Line includes a parameter that specifies the line number of
>> the
>>> line needed.  If you are using a database cursor, use the line number to
>>> get hold of the database data for that line (actually, it's the line
>> number
>>> - 1 since cursor record numbers are zero based), format it according to
>> the
>>> datagrid columns, and put into the pdata parameter of the handler.
>>> 
>>> Be aware that using this method to populate the datagrid means that
>> things
>>> like the dgText and dgData properties of the datagrid will return empty.
>>> If I remember correctly, you will also have to handle your own sorting
>> when
>>> the user clicks on a column header.
>>> 
>>> It's not trivial and I would not recommend doing it unless you truly need
>>> to display a very large number of records in the datagird and you are
>>> experiencing performance issues.
>>> 
>>> Pete
>>> lcSQL Software 
>>> Home of lcStackBrowser  and
>>> SQLiteAdmin 
>>> 
>>> On Wed, Apr 1, 2015 at 8:16 PM, JB  wrote:
>>> 
 I am using a table form of data grid and trying
 to display the records using a cursor and then
 setting the dgNumberOfRecords.
 
 I am able to get the cursor and the record count
 of the cursor and I can get dgNumberOfRecords
 before I set dgNumberOfRecords.
 
 I want to set dgNumberOfRecords so the records
 are displayed dynamically like is done in the sample
 stack for displaying a large number of records.
 
 Am I supposed to set up the GetDataForLine or the
 dgNumberOfRecords in my data grid somehow?
 
 When I set dgNumberOfRecords nothing else happens
 and any script after that does not work either.
 
 Anyone have a clue why it stops or a different stack that
 shows how to use it properly?
 
 John Balgenorth
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android local notifications

2015-04-02 Thread J. Landman Gay
Is anyone using local notifications on Android? I need to know more 
about how they work and I can't find much online about it.


I need to send notifications every half hour for a 5-minute period, 30 
seconds apart. I have this working in theory; notifications are 
scheduled correctly and mostly fire on time until the user opens the 
app, when I cancel any pending ones.


First issue: often some alerts do not trigger at all, or trigger 
sporadically, or are significantly delayed (up to 2 minutes late.) A 
5-minute interval will have 10 notifications if the user does not 
respond. Sometimes fewer icons appear in the status bar than audio 
alerts were heard. Sometimes more icons appear than audio alerts.


Second issue: I would like a way to replace an existing notification 
icon with the next one (every 30 seconds) so that there is only one at a 
time, but I don't see how we can do that. If the phone is sleeping or 
the app is backgrounded we have no control, so to overcome that I need 
to schedule all 10 alerts in a block while the app is frontmost. When 
those come due they all stack up in the notification bar until the user 
opens the app (when I cancel them all.)


So briefly, I need:

Alerts to trigger on time, every 30 seconds, with no delay
A subsequent alert should replace an existing alert

The timely delivery is more important than the multiple icons in the 
status bar. Does anyone know how Android prioritizes these? What are the 
rules for the "default" priority, which I assume is what we've got.


There are no other apps running on the phone, and it has no cell 
service. It is intended to be a dedicated device for this one app, so 
there shouldn't be anything else running except for normal OS operations.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android local notifications

2015-04-02 Thread Mark Wilcox
Android can delay notifications for power saving reasons. As I understand it 
the more there are from one app and the less the user interacts with them, the 
more likely they are to be delayed.

I think to do what you want more reliably you'd need to use background 
processing (wake up every 30 seconds, clear the current notification and 
replace with a new one) and I don't think LiveCode enables you to that yet.

Mark

Sent from my iPhone

> On 3 Apr 2015, at 05:27, J. Landman Gay  wrote:
> 
> Is anyone using local notifications on Android? I need to know more about how 
> they work and I can't find much online about it.
> 
> I need to send notifications every half hour for a 5-minute period, 30 
> seconds apart. I have this working in theory; notifications are scheduled 
> correctly and mostly fire on time until the user opens the app, when I cancel 
> any pending ones.
> 
> First issue: often some alerts do not trigger at all, or trigger 
> sporadically, or are significantly delayed (up to 2 minutes late.) A 5-minute 
> interval will have 10 notifications if the user does not respond. Sometimes 
> fewer icons appear in the status bar than audio alerts were heard. Sometimes 
> more icons appear than audio alerts.
> 
> Second issue: I would like a way to replace an existing notification icon 
> with the next one (every 30 seconds) so that there is only one at a time, but 
> I don't see how we can do that. If the phone is sleeping or the app is 
> backgrounded we have no control, so to overcome that I need to schedule all 
> 10 alerts in a block while the app is frontmost. When those come due they all 
> stack up in the notification bar until the user opens the app (when I cancel 
> them all.)
> 
> So briefly, I need:
> 
> Alerts to trigger on time, every 30 seconds, with no delay
> A subsequent alert should replace an existing alert
> 
> The timely delivery is more important than the multiple icons in the status 
> bar. Does anyone know how Android prioritizes these? What are the rules for 
> the "default" priority, which I assume is what we've got.
> 
> There are no other apps running on the phone, and it has no cell service. It 
> is intended to be a dedicated device for this one app, so there shouldn't be 
> anything else running except for normal OS operations.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode