Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.

2012-04-25 Thread Simon Platten
Sorry, you are quite correct, I'm working with lots of protocols, a lot of which are polled, sorry for the confusion, you do just listen for and receive an NMEA message. The only sending involved is to enable specific messages. Our GPS receivers are embedded devices, I'm not absolutely sure of th

Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.

2012-04-25 Thread Simon Platten
If ZDA isn't implemented or supported then you are really out of luck as the time from the GPS could be out significantly also add to that the lag in sending and receiving the NMEA message. We use the 1PPS pulse at work to synchronise remote devices in the field, once we lock on with the RMC the 1

Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.

2012-04-24 Thread Simon Platten
Hi, The RMC message contains a status parameter, this is either V=data not valid or A=data valid. You need to wait until you read an A in the RMC, before this you will not get a ZDA message even if you have enabled it. To enable RMC messages: $PSRF103,04,00,01,01 Once you get an A in the RMC m

Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.

2012-04-24 Thread Simon Platten
You need to enable RMC messages and then wait for a GPS lock, then enable ZDA messages these give a 1PPS message with a timestamp accurate to 1ms. On Apr 25, 2012 6:02 AM, "Andrew Gregory" wrote: > > 1300ms ahead sounds odd. If it was behind I'd say it was just a reporting delay as part of the usu

Re: [android-developers] Re: Account suspended

2011-10-27 Thread Simon Platten
, you'll still need a lawyer to > take action on your behalf. > > And to be honest, hiring a lawyer is probably (for you) going to be > much more expensive than just cutting your losses and starting over > with a new account.. > > Kris > > On Thu, Oct 27, 2011 at 9:51

Re: [android-developers] Re: Account suspended

2011-10-27 Thread Simon Platten
If I type Marvel into google images and hit the search button I get lots of images from various source. The links it provides are not only the correct / proper / originator site but also everyone else that has copied or used it. So Google is peddling stolen goods? Whatever spin you want to put o

Re: [android-developers] Re: Account suspended

2011-10-27 Thread Simon Platten
"I'm a 'pro-sumer' photographer. If my (lower-res) pics show up in Google search result, i don't mind, because people will click on it and this will take them to my galleries. And they can possibly buy my pics from my gallery. Google search-results serves as a billboard/ad in this case." You might

Re: [android-developers] Re: Account suspended

2011-10-26 Thread Simon Platten
For starters a lot of the applications I offer on the market are free, the ones that I do charge for are so low cost, and an attempt to recover the development costs of the applications. I certainly haven't made £100's out of any applications. I sourced the images I used from the web and in most

Re: [android-developers] Re: Account suspended

2011-10-26 Thread Simon Platten
I am very happy to remove any offending applications from the market. I believed 'wrongly' that the images I was using were not copyrighted. On Wed, Oct 26, 2011 at 3:07 PM, Streets Of Boston wrote: > Yep, > > If that's indeed his set of apps, Sy's using images and artwork that are > copyrighted

Re: [android-developers] Android development is very bad

2011-08-21 Thread Simon Platten
Whos "him"? On Mon, Aug 22, 2011 at 7:22 AM, Naveen wrote: > i think android development is very bad for android developer compare > to xcode. > > xcode giving framework for each and every ap implementation. > > > here i want to generate a codec interface facing issue, post to > android communit

Re: [android-developers] Re: App Crash during HTTP Post

2011-08-19 Thread Simon Platten
10mb? Have you tried zipping it before posting? Depending on the content you could reduce the data size dramatically Regards,Sy On 19 Aug 2011 21:03, "Chris Stratton" wrote: On Thursday, August 18, 2011 2:30:43 AM UTC-4, perumal316 wrote: > > I checked the logcat, it is showing: > > ERROR/An

[android-developers] Ultimate Wall-paper rotator

2011-08-12 Thread Simon Platten
Finally released the "Ultimate Wall-paper Rotator" which has taken quite a while to get right, but I'm very happy with the final application, lots of nice little features which I would like to thank the community for the support, help and gudiance in implementing. The list view / gallery works ver

[android-developers] Comments in market place

2011-07-27 Thread Simon Platten
Is there anyway to remove spam comments from your applications? I have several applications on the market place, today someone has posted a comment saying the application contains spyware, which is complete rubbish and not true, how can you prevent this kind of thing? -- Regards, Sy -- You rec

Re: [android-developers] Listview with image, text and checkbox

2011-07-27 Thread Simon Platten
In a nutshell as was said by the last poster, the listview re-uses the same objects over and over for those items on view. In your adapter you can have an array which contains the entire content but you should be very careful that you aren't storing to much in this array, for example don't att

Re: [android-developers] ImageView and Recyling

2011-07-26 Thread Simon Platten
I'll have a play and post when I get it working. Thank you, On 26/07/2011 9:44 PM, TreKing wrote: On Tue, Jul 26, 2011 at 3:36 PM, Simon Platten mailto:simonaplat...@googlemail.com>> wrote: Thank you, I know the bitmap has a recycle method, but how do you recycle th

Re: [android-developers] ImageView and Recyling

2011-07-26 Thread Simon Platten
Thank you, I know the bitmap has a recycle method, but how do you recycle the imageview? Do you get the drawable first then convert that to a bitmap before recycling ? On 26/07/2011 9:30 PM, TreKing wrote: On Tue, Jul 26, 2011 at 2:44 PM, Simon Platten mailto:simonaplat...@googlemail.com

[android-developers] ImageView and Recyling

2011-07-26 Thread Simon Platten
How do you force and ImageView to recyle its bitmap? I am using a loader to load bitmap images in the background then show them in an imageview, the imageview is part of a listview which is recycled, however I don't think the bitmaps are being free'd up when a new image is loaded and assigned, the

Re: [android-developers] Listview with image, text and checkbox

2011-07-26 Thread Simon Platten
6/07/2011 2:57 PM, Viral Brahmbhatt wrote: ok.. np.. thanks for your response. plz note my skype id: viralbrahmbhatt. if you can add me to your list, we can directly chat on this. On Tue, Jul 26, 2011 at 7:20 PM, Simon Platten mailto:simonaplat...@googlemail.com>> wrote: I

Re: [android-developers] Listview with image, text and checkbox

2011-07-26 Thread Simon Platten
n directly chat on this. > > > On Tue, Jul 26, 2011 at 7:20 PM, Simon Platten < > simonaplat...@googlemail.com> wrote: > >> I'm at work atm, when I get home I will take a look, its 14:49 here (GMT) >> shoudl be home at 17:30 ish. >> >> >> >

Re: [android-developers] Listview with image, text and checkbox

2011-07-26 Thread Simon Platten
{ > ex.printStackTrace(); > } > return converView; > } > > -- > > On Tue, Jul 26, 2011 at 6:34 PM, Simon Platten < > simonaplat...@googlemail.com> wrote: > >> I am doing something very similar its because the views in th

Re: [android-developers] Listview with image, text and checkbox

2011-07-26 Thread Simon Platten
I am doing something very similar its because the views in the listview are re-used as you scroll them out of view they are re-cycled for the new views coming into view. You need to manage the change over in the getView method. On Tue, Jul 26, 2011 at 1:33 PM, Viral Brahmbhatt wrote: > Hi ther

Re: [android-developers] Sql query not working

2011-07-25 Thread Simon Platten
I don't think the == is valid in SQL, if you want to test for equality, just use =. On 25/07/2011 9:06 PM, saurabh kulkarni wrote: Why this query is not working?? My date column has date like:2011-07-25. final Calendar c = Calendar.getInstance();

Re: [android-developers] Re: Memory management and Exceptions

2011-07-25 Thread Simon Platten
I think so, however I will take a close lookagain. On 25/07/2011 8:06 PM, Streets Of Boston wrote: Do you properly re-use the list-*item* views in your list-view? E.g. in your list-adapter 'getView()' method: public void View getView(int position, View convertView, ViewGroup parent) { i

Re: [android-developers] Re: Memory management and Exceptions

2011-07-25 Thread Simon Platten
I am using images in a listview, I would have hoped that the images would be released as the items change, I only have 2 images on view at a time. I load a thumbnail version of the image for the listviews which is a fraction of the original size. If I hit a limit on memory I would like to ha

[android-developers] Memory management and Exceptions

2011-07-25 Thread Simon Platten
I've been coding in C / C++ since the mid 80's and a few years in Java, I'm relatively new to Android development and have been writing apps. for Android for about 18 months. I have always adopted a defensive programming phylosophy, with a view if it can go wrong it will. That said, this doesn't

Re: [android-developers] Re: Listbox with ImageView and heapspace

2011-07-24 Thread Simon Platten
Thank you, I will give it a try. On 24/07/2011 8:16 PM, Streets Of Boston wrote: Purge the queue that is filled by your background process. List item views (and imageviews within your list item views) are recycled. Remember for which list-item (or image-view) the background-thread is loading

[android-developers] Listbox with ImageView and heapspace

2011-07-24 Thread Simon Platten
I have a listbox which has an imageview in every item, the bitmaps for the images are loaded in the background as the user brings the items into view. The images are queued for loading in the background as the user scrolls through the list items. If I have a large list and I take my time scrolling

[android-developers] Memory allocation

2011-07-23 Thread Simon Platten
Is there a method or object I can override that will root all the memory allocation performed by my application through to something I can control...this would include any views and objects I reference. I have a problem where a background thread loads images in the background, as I scroll through

Re: [android-developers] Re: Listview oddity with imageview

2011-07-23 Thread Simon Platten
I wish I could say it helped but it hasn't. On Sat, Jul 23, 2011 at 1:27 AM, Abhishek Akhani wrote: > invalidate the view after rotating... hope this may help... > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this grou

Re: [android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Simon Platten
nge. On 22/07/2011 9:45 PM, Kostya Vasilyev wrote: Try setting a scaleType property on the ImageView, perhaps you can get consistent results that way. 2011/7/23 Simon Platten: Is this a bug or is there a property that needs setting ? On Fri, Jul 22, 2011 at 7:27 AM, Simon Platten wrote:

[android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Simon Platten
Is this a bug or is there a property that needs setting ? On Fri, Jul 22, 2011 at 7:27 AM, Simon Platten wrote: > Has anyone else encountered this problem? > > On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten < > simonaplat...@googlemail.com> wrote: > >> I have a list

[android-developers] Re: 9 patch errors in eclipse

2011-07-22 Thread Simon Platten
Sorry, just dragged the image into the 9 patch tool, re-saved and error message disappearednot sure why, but its ok now. On Fri, Jul 22, 2011 at 9:12 PM, Simon Platten wrote: > I've created an image called frame.9.png which according to various online > examples and tutorials s

[android-developers] 9 patch errors in eclipse

2011-07-22 Thread Simon Platten
I've created an image called frame.9.png which according to various online examples and tutorials should be ok, but when using this name in eclipse the IDE displays errors for all the other drawables in the folder with a little red cross by the 9 patch image. I couldn't see any mention of this onl

[android-developers] Re: Listview oddity with imageview

2011-07-21 Thread Simon Platten
Has anyone else encountered this problem? On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten wrote: > I have a listview with each item defined as: > > > http://schemas.android.com/apk/res/android"; > android:layout_width="fill_parent" > >

[android-developers] Re: Listview oddity with imageview

2011-07-21 Thread Simon Platten
It doesn't do this in the emulator, but it does on my Sony X10 running 2.1 On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten wrote: > I have a listview with each item defined as: > > > http://schemas.android.com/apk/res/android"; > android:

[android-developers] Listview oddity with imageview

2011-07-21 Thread Simon Platten
I have a listview with each item defined as: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:padding="10dp"> This

Re: [android-developers] Google Checkout Problem

2011-07-20 Thread Simon Platten
I had a similar problem, the problem was caused by a google cancelled order, due to credit card failure. The solution was to change the sort order by date ascending then go to the last page until you find the offending items, then you can go in and archive or delete those entries, it all worked fi

Re: [android-developers] Re: Checkbox bug?

2011-07-18 Thread Simon Platten
://marketplace.cisco.com/apphq/products/510 On Jul 17, 3:45 pm, Simon Platten wrote: Whilst building a layout I think I've found a bugin a relative layout: Works find, with the text aligned to the left of the checkbox, however if I add a background colour to the checkbox, the text overlay

Re: [android-developers] Invoking clickable call-back?

2011-07-17 Thread Simon Platten
at 6:40 PM, TreKing wrote: > On Sun, Jul 17, 2011 at 12:23 PM, Simon Platten < > simonaplat...@googlemail.com> wrote: > >> I have already checked the documentation. > > > > http://developer.android.com/reference/android/widget/Compound

Re: [android-developers] Invoking clickable call-back?

2011-07-17 Thread Simon Platten
;t. On Sun, Jul 17, 2011 at 6:11 PM, TreKing wrote: > On Sun, Jul 17, 2011 at 11:32 AM, Simon Platten < > simonaplat...@googlemail.com> wrote: > >> I have a checkbox that has an onClick listener function attached, when my >> application starts up I read in the settings

[android-developers] Invoking clickable call-back?

2011-07-17 Thread Simon Platten
I have a checkbox that has an onClick listener function attached, when my application starts up I read in the settings and set-up the initial state of the controls, is there anyway to get the views (in this case a checkbox) to invoke its onClick call-back when a value is assigned to it? -- Regard

Re: [android-developers] How long is a paid app considered refundable?

2011-07-17 Thread Simon Platten
24 hrs I believe. On 17/07/2011 2:54 PM, Jim Graham wrote: I seem to recall seeing this mentioned, either in the dev guide or somewhere else, but I have no idea where it was How long is a paid app, with an accompanying free app, considered refundable? If I remember correctly, with a free ap

[android-developers] Checkbox bug?

2011-07-17 Thread Simon Platten
Whilst building a layout I think I've found a bugin a relative layout: Works find, with the text aligned to the left of the checkbox, however if I add a background colour to the checkbox, the text overlays the checkbox: -- Regards, Sy -- You received this message because you ar

[android-developers] Re: Spinner Adapter problem

2011-07-17 Thread Simon Platten
== true ) { m_arySelItems.remove(strFolder); } } } } On Sun, Jul 17, 2011 at 9:42 AM, Simon Platten wrote: > I have a spinner with a checkbox in it, here is the XML for the item: > > > http://schemas.android

[android-developers] Spinner Adapter problem

2011-07-17 Thread Simon Platten
I have a spinner with a checkbox in it, here is the XML for the item: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:padding="10dp"> Here is th

Re: [android-developers] Spinner usage

2011-07-16 Thread Simon Platten
Thank you, I've re-written the adapter and it now works. On 17/07/2011 6:56 AM, TreKing wrote: On Sat, Jul 16, 2011 at 8:56 AM, Simon Platten mailto:simonaplat...@googlemail.com>> wrote: When I'm not making a selection the spinner shows as an empty box with a down

[android-developers] Spinner usage

2011-07-16 Thread Simon Platten
I've used a spinner with a Base Adapter. The spinner works fine and I can make selections, my question is: When I'm not making a selection the spinner shows as an empty box with a down arrow, once I've made a selection the list is removed but the spinner still shows empty, shouldn't it show the c

Re: [android-developers] SQLiteCursor problem

2011-07-14 Thread Simon Platten
is correct, there'll be a warning message there. -- Kostya Vasilyev 15.07.2011 0:50 пользователь "Simon Platten" написал: > I have an activity which scans the SD-Card for files, whilst it is scanning > it displays a progr... > -- > You received this message because you

[android-developers] SQLiteCursor problem

2011-07-14 Thread Simon Platten
I have an activity which scans the SD-Card for files, whilst it is scanning it displays a progress dialog that shows the folder and file name, these are updated using the runOnUiThread method. This works ok, I added support for SQLite to write the findings into a database, unfortunately sometime i

Re: [android-developers] Listview help...

2011-07-10 Thread Simon Platten
/android/widget/ImageView.html#setImageMatrix%28android.graphics.Matrix%29> > > -- Kostya > > 10.07.2011 23:39, Simon Platten пишет: > >> so far the only way I've been able to get the rotation to work is to get >> the imageview in my event listener, rotate the bitmap then p

Re: [android-developers] Listview help...

2011-07-10 Thread Simon Platten
BTW, Just ordered your book on Amazon! On Sun, Jul 10, 2011 at 8:39 PM, Simon Platten wrote: > I'm trying to do this in such a way that I don't have to replicate > code...what ideally I would like is when I press either of the rotate > buttons, it invalidates the image

Re: [android-developers] Listview help...

2011-07-10 Thread Simon Platten
ted out, your data items (whether you use > ArrayAdapter or not) should have enough information to recreate the visual > state in getView: in your case, store the rotation value there. Update the > rotation value in the data item whenever it's changed by the user, so it's > there next

Re: [android-developers] Listview help...

2011-07-10 Thread Simon Platten
rence the array directly, but with little success. On Sun, Jul 10, 2011 at 7:24 PM, Mark Murphy wrote: > On Sun, Jul 10, 2011 at 2:04 PM, Simon Platten > wrote: > > I've been working on a listview for while now. Each of my items in the > list > > has a checkbox, an image and

[android-developers] Listview help...

2011-07-10 Thread Simon Platten
I've been working on a listview for while now. Each of my items in the list has a checkbox, an image and two buttons. It works like a gallery and enables the user to preview images in my application, the buttons allow the user to rotate the image in the listview by 90 degrees, clockwise or counte

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
aying in your last post, can you please clarify? Thank you, Simon On Sat, Jul 2, 2011 at 3:25 PM, Mark Murphy <mailto:mmur...@commonsware.com>> wrote: On Sat, Jul 2, 2011 at 10:14 AM, Simon Platten mailto:simonaplat...@googlemail.com>> wrote: > I can't c

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
can see that the image in the listview is rotating, however when the row goes out of view the rotation is ignored. I don't understand what you were saying in your last post, can you please clarify? Thank you, Simon On Sat, Jul 2, 2011 at 3:25 PM, Mark Murphy wrote: > On Sat, Jul 2, 2

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
bnail() in getView(). On Sat, Jul 2, 2011 at 9:39 AM, Simon Platten wrote: I believe thats exactly what I'm doing: public View getView(int position, View convertView, ViewGroup parent) { View v = convertView;

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
e when it goes out of view. On 02/07/2011 2:20 PM, Mark Murphy wrote: On Sat, Jul 2, 2011 at 9:07 AM, Simon Platten wrote: I have a listview which has an ImageView in each item and a couple of buttons. The buttons allow the user to rotate the image clockwise and counter clockwise by 90 degr

[android-developers] Listview notification?

2011-07-02 Thread Simon Platten
I have a listview which has an ImageView in each item and a couple of buttons. The buttons allow the user to rotate the image clockwise and counter clockwise by 90 degrees on each press. This works find and the ImageView is rotated, however if I scroll the item off view, when I scroll it back int

Re: [android-developers] Re: Photos Folder (DCIM)

2011-06-29 Thread Simon Platten
ublicDirectory(java.lang.String) Regards On Jun 30, 5:45 am, Simon Platten wrote: Is the folder DCIM a standard on all Android phones? Can I rely on it being call this or is there a call I can make to determine what it is? Thank you -- Regards, Sy -- You received this message because you are subscribed

[android-developers] Photos Folder (DCIM)

2011-06-29 Thread Simon Platten
Is the folder DCIM a standard on all Android phones? Can I rely on it being call this or is there a call I can make to determine what it is? Thank you -- Regards, Sy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] TabHost and TabWidget ?

2011-06-20 Thread Simon Platten
Ok, Thank you for explaining that, I'll take a look. Regards, Sy On 20/06/2011 7:23 PM, Tor Norbye wrote: On Mon, Jun 20, 2011 at 11:06 AM, Simon Platten wrote: Thank you, I think I'll give it a miss in that case until its fixed for older API's, as I want to make the applic

Re: [android-developers] TabHost and TabWidget ?

2011-06-20 Thread Simon Platten
Thank you, I think I'll give it a miss in that case until its fixed for older API's, as I want to make the application available to a wider audience. On 20/06/2011 6:36 PM, Tor Norbye wrote: On Mon, Jun 20, 2011 at 10:26 AM, Simon Platten wrote: According to the Android lin

Re: [android-developers] TabHost and TabWidget ?

2011-06-20 Thread Simon Platten
, or, install the preview > versions of the backports of the layout library to 2.x - see > http://tools.android.com/download . > > -- Tor > > On Sun, Jun 19, 2011 at 10:44 AM, Simon Platten > wrote: > > I am trying to create a layout using the TabHost and

[android-developers] TabHost and TabWidget ?

2011-06-19 Thread Simon Platten
I am trying to create a layout using the TabHost and TabWidge views as described here: http://developer.android.com/resources/tutorials/views/hello-tabwidget.html My XML so far looks like this: http://schemas.android.com/apk/res/android"; android:id="@android:id/tabhost" android:layout_

Re: [android-developers] Setting text colour programmatically

2011-06-19 Thread Simon Platten
fore asking? > Fred. > > > On 19/06/2011, Simon Platten wrote: > > I am adding some views to a linear layout in code, I have set the colour > of > > the text view as follows: > > > > TextView tvImagesTitle = new TextView(this); > >

[android-developers] Setting text colour programmatically

2011-06-19 Thread Simon Platten
I am adding some views to a linear layout in code, I have set the colour of the text view as follows: TextView tvImagesTitle = new TextView(this); tvImagesTitle.setTextColor(R.color.blue); tvImagesTitle.setText("Some text"); m_llImages.addView( tvIma

Re: [android-developers] Cancelling and Alarm

2011-06-14 Thread Simon Platten
Ty Mark, I'll try it! On 14/06/2011 8:37 PM, Mark Murphy wrote: On Tue, Jun 14, 2011 at 3:34 PM, Simon Platten wrote: The application schedules wall-paper changes, originally I was using Timers, but this meant the application had to be resident all the time, now I'm using the Alarm

Re: [android-developers] Cancelling and Alarm

2011-06-14 Thread Simon Platten
n't expect anyone to set it that low. Regards, Simon On 14/06/2011 8:29 PM, Mark Murphy wrote: On Tue, Jun 14, 2011 at 3:23 PM, Mark Murphy wrote: On Tue, Jun 14, 2011 at 3:16 PM, Simon Platten wrote: In my activity I let the user change the alarm time interval, this is then applied to th

[android-developers] Cancelling and Alarm

2011-06-14 Thread Simon Platten
When I update an alarm I call the alarm manager cancel method before setting it up...However this doesn't always cancel the old alarm and sometimes I seem to get more than one alarm scheduled at different rates. In my activity I let the user change the alarm time interval, this is then applied to

Re: [android-developers] SQLite problem

2011-06-14 Thread Simon Platten
cursor.moveToNext()) { > ... get data using the column indices . > } > cursor.close(); > } > > This works because a cursor's initial position is -1 (before the first > record). > > -- Kostya > > 2011/6/14 Simon Platten > >> I ha

[android-developers] SQLite problem

2011-06-14 Thread Simon Platten
I have written a class 'clsDB', please see source below. I'm testing it in the emulator and the first time around it runs fine without error, then on the second run eclipse jumps into the Class File Editor for SQLiteCursor.class. The application continues to run without exception or error, but ec

Re: [android-developers] Services and Alarm Manager

2011-06-13 Thread Simon Platten
My alarm clock just went off 6:30 am, no sign of any process left running after I dissmiss it, yet tomorrow it will go off again, thats what I want to achieve. Regards,Sy On 14 Jun 2011 06:17, "Simon Platten" wrote: Ok, so how do you schedule an alarm in the same way the alarm cloc

Re: [android-developers] Services and Alarm Manager

2011-06-13 Thread Simon Platten
, "Mark Murphy" wrote: On Mon, Jun 13, 2011 at 5:21 PM, Simon Platten wrote: > Ty, makes sen... Correct. A user can only task-kill or force-stop you when your code is actively running. That's what you did to your own app, and it nuked the scheduled alarms. One imagines that if

Re: [android-developers] Services and Alarm Manager

2011-06-13 Thread Simon Platten
Ty, makes sense I guess, but then how does the alarm clock keep its scheduled alarms? I'm sure that no alarm clock is running or at least it does appear to be... Regards,Sy On 13 Jun 2011 21:58, "Mark Murphy" wrote: On Mon, Jun 13, 2011 at 4:52 PM, Simon Platten wrote:

[android-developers] Services and Alarm Manager

2011-06-13 Thread Simon Platten
I finally got my application to continue after a reboot, however if I use a task manager to kill the application the scheduled alarms also appear to stop. I have scheduled a repeating alarm in the alarm manager and this goes off at regular intervals, after a reboot the alarm is set-up again and co

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
less hiccupy after a reboot. -- Kostya 2011/6/12 Simon Platten <mailto:simonaplat...@googlemail.com>> I really want to keep the data and the application code seperate...my application activity really does nothing except add the data from a resource and call the library rout

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
initialization code, it's just not getting called at the right time. Two ways to ensure it gets called are: a lazy-initialize singleton, or a subclass of Application and its onCreate. I very much prefer the former (and not alone in this). -- Kostya 2011/6/12 Simon Platten <mailto:si

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
activitiy will be 1) constructed 2) initialized with onCreate 3) go on doing its thing, interacting with the user. Until then, no. -- Kostya 2011/6/12 Simon Platten <mailto:simonaplat...@googlemail.com>> During testing, I have shutdown all processes including the application

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
method. -- Kostya 2011/6/12 Simon Platten <mailto:simonaplat...@googlemail.com>> Hi, I've managed to find out why my application wasn't restarting correctly after a boot up and it was an uninitialised array that is normally set-up by the main activity when t

[android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
Hi, I've managed to find out why my application wasn't restarting correctly after a boot up and it was an uninitialised array that is normally set-up by the main activity when the application starts. The question now ishow do I get the main application activity? The reason it isn't so strai

Re: [android-developers] RECEIVE_BOOT_COMPLETED problem

2011-06-11 Thread Simon Platten
Ty, done! On 11/06/2011 10:12 PM, Mark Murphy wrote: On Sat, Jun 11, 2011 at 5:07 PM, Simon Platten wrote: I just tried to send you a reply in: cw-andr...@googlegroups.com But I'm not sure if the group is correct, I got an email back telling me I may not have the right to post. You

Re: [android-developers] RECEIVE_BOOT_COMPLETED problem

2011-06-11 Thread Simon Platten
Sat, Jun 11, 2011 at 4:47 PM, Simon Platten wrote: Yes the onReceive is certainly being called, which I discovered after adding the Toast, but the call: wpService.sendWakefulWork( context ) Doesn't appear to be working after a reboot... That doesn't make much sense. All that does i

Re: [android-developers] RECEIVE_BOOT_COMPLETED problem

2011-06-11 Thread Simon Platten
Sorry, Yes the onReceive is certainly being called, which I discovered after adding the Toast, but the call: wpService.sendWakefulWork( context ) Doesn't appear to be working after a reboot... On 11/06/2011 9:38 PM, Mark Murphy wrote: On Sat, Jun 11, 2011 at 4:33 PM, Simon Platten

Re: [android-developers] RECEIVE_BOOT_COMPLETED problem

2011-06-11 Thread Simon Platten
background stuff, alarms and boot receivers in particular, even for diagnostic stuff. LogCat will be more safer and less likely to be missed. On Sat, Jun 11, 2011 at 4:13 PM, Simon Platten wrote: Its been a while since I first posted regarding this problem, I've been away...Mark Murphy

[android-developers] RECEIVE_BOOT_COMPLETED problem

2011-06-11 Thread Simon Platten
Its been a while since I first posted regarding this problem, I've been away...Mark Murphy was advising me on the problem and I said I would post the code: I can see from the Toast in my class that the onReceive method is being called, but the actual intent that I install in the AlarmManager doesn

Re: [android-developers] Delete a variable

2011-06-08 Thread Simon Platten
Java may not garbage collect until resources are low and it knows that an object is no longer in use. Make sure that you assign your object to null or ensure it goes out of scope then java wilĺ treat it as no longer referenced. Regards,Sy On 9 Jun 2011 04:11, "TreKing" wrote: On Wed, Jun 8, 20

Re: [android-developers] Great Problem

2011-06-08 Thread Simon Platten
Add try and catch clauses to your methods that should help you locate the problem. Regards,Sy On 8 Jun 2011 15:49, "Diogo Salaberri" wrote: hi guys, I need a help please. I got this error on my app: 06-08 14:42:33.584: ERROR/AndroidRuntime(269): java.lang.RuntimeException: Unable to start act

Re: [android-developers] Loading Bitmaps in native heap

2011-06-08 Thread Simon Platten
Java doesnt support pointers or direct access to memory which is why native routines exist...why dont you open the files as streams and only render what is require for the view orrescale the image? Regards,Sy On 8 Jun 2011 18:21, "Erik R" wrote: I'm working on a simple image manipulation ap

Re: [android-developers] Re: text color

2011-06-08 Thread Simon Platten
Select the textview, then click on the properties tab, scroll down to text coloryou have to create a colors.xml file in your resources and put all your color definitions in it. Regards,Sy On 8 Jun 2011 18:07, "James Ots" wrote: What part of colour setting are you having difficulty with? Ja

Re: [android-developers] Alarm Manager...spoke to soon

2011-06-07 Thread Simon Platten
Internally that routine installs the alarm, I will post the code tomorrow...on mobile now... Regards,Sy On 7 Jun 2011 22:27, "Mark Murphy" wrote: You are not setting an alarm. You are calling startService(). On Tue, Jun 7, 2011 at 4:48 PM, Simon Platten wrote: > Hi, > >

[android-developers] Alarm Manager...spoke to soon

2011-06-07 Thread Simon Platten
Hi, Thank you Mark again for the BOOT_COMPLETED onReceive sample...I have implemented my version of the code and can see that it does call the onReceive method on boot, I've put in a Toast message just to see that its being called. However, the logic I've added to kick start my application by ins

Re: [android-developers] Alarm Manager

2011-06-07 Thread Simon Platten
Thank you Mark, Works like a charm :) On Tue, Jun 7, 2011 at 8:26 PM, Mark Murphy wrote: > On Tue, Jun 7, 2011 at 3:23 PM, Simon Platten > wrote: > > Thanks to pointers from "Mark Murphy" I now have an applicaiton than > > schedules alarms and works even when th

[android-developers] Alarm Manager

2011-06-07 Thread Simon Platten
Thanks to pointers from "Mark Murphy" I now have an applicaiton than schedules alarms and works even when the phone is asleep, using the Wake Lock. However, if I switch the phone off and on again, the alarm is not scheduled and I then have to restart the application to reschedule the alarm. Is th

Re: [android-developers] CWAC Demo

2011-06-05 Thread Simon Platten
Service have a constructor with a > string parameter is they are meant to be subclassed. And that's something > you could consider as well to improve maintainability. > > -- Kostya > > 2011/6/5 Simon Platten > >> Earlier I posted a question regarding a problem I

[android-developers] CWAC Demo

2011-06-05 Thread Simon Platten
Earlier I posted a question regarding a problem I'm having with my BroadcastReceiver and onReceive method. I found that the logic in onReceive would sometimes crash and I couldn't find an explanation why, one road I went down was to try creating a thread in onReceive, whilst this was better, it di

Re: [android-developers] Repeating alarm service

2011-06-05 Thread Simon Platten
Thanks Mark, I have that sample application from a previous query, I'll take another look. Regards, Simon On 05/06/2011 2:38 PM, Mark Murphy wrote: On Sun, Jun 5, 2011 at 9:27 AM, Simon Platten wrote: I think I may have fixed it, I looked around for some information on BroadcastRec

Re: [android-developers] Repeating alarm service

2011-06-05 Thread Simon Platten
whatever you posted (Runnable / Message). Looking at the stack trace is logcat should do it, though. -- Kostya 2011/6/5 Simon Platten <mailto:simonaplat...@googlemail.com>> I have an alarm service runnining in Android 2.1, there is a problem with the service in that for some reaso

[android-developers] Repeating alarm service

2011-06-05 Thread Simon Platten
I have an alarm service runnining in Android 2.1, there is a problem with the service in that for some reason unknown to me it starts to exception after a period of time. To try and capture the reason why, I have scheduled the service to run at 1 second intervals. I can see in the debugged when t

Re: [android-developers] Is there any way to run small bits of code from a console to check simple results?

2011-06-01 Thread Simon Platten
Why not use the toast method to display data? Regards,Sy On 1 Jun 2011 23:45, "Spooky" wrote: Ok, maybe that didn't make sense What I'm looking for, *IF* it exists for Android/Java, is some way to open up, say, a console, load the code, and check the value returned by some line in the cod

  1   2   >