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

2012-04-25 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

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

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

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 andrew.greg...@gmail.com wrote: 1300ms ahead sounds odd. If it was behind I'd say it was just a reporting

Re: [android-developers] Re: Account suspended

2011-10-27 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-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-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

Re: [android-developers] Re: Account suspended

2011-10-27 Thread Simon Platten
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 AM, Simon Platten simonaplat...@gmail.com wrote: If I type Marvel into google images and hit the search button I get lots of images from

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 flyingdutc...@gmail.comwrote: Yep, If that's indeed his set of apps, Sy's using images and artwork

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

2011-08-22 Thread Simon Platten
Whos him? On Mon, Aug 22, 2011 at 7:22 AM, Naveen kumarnaveen.si...@gmail.com 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

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 cs07...@gmail.com wrote: On Thursday, August 18, 2011 2:30:43 AM UTC-4, perumal316 wrote: I checked the logcat, it is

[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 very

[android-developers] Comments in market place

2011-07-28 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

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

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

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

2011-07-26 Thread Simon Platten
= (ViewHolder) converView.getTag(); } holder.text.setText(TEST TEXT); holder.icon.setImageDrawable(IMAGE FROM RESOURCE); holder.chk.setId(1); } catch (Exception ex) { ex.printStackTrace(); } return converView; } -- On Tue, Jul 26, 2011 at 6:34 PM, Simon

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

2011-07-26 Thread Simon Platten
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. On Tue, Jul 26, 2011 at 2:23 PM, Viral Brahmbhatt viralbrahmbh...@gmail.com wrote

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

2011-07-26 Thread Simon Platten
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 simonaplat...@googlemail.com mailto:simonaplat...@googlemail.com wrote: I'm at work atm, when I

[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,

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 simonaplat...@googlemail.com

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 simonaplat...@googlemail.com mailto:simonaplat...@googlemail.com wrote: Thank you, I know the bitmap has a recycle method, but how do you

[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: 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

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) {

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();

[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

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

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 abhishek.akh...@gmail.comwrote: 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

[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

[android-developers] Re: Listview oddity with imageview

2011-07-22 Thread Simon Platten
Has anyone else encountered this problem? On Thu, Jul 21, 2011 at 7:54 PM, Simon Platten simonaplat...@googlemail.com wrote: I have a listview with each item defined as: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android

[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

[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 simonaplat...@googlemail.com wrote: I've created an image called frame.9.png which according to various online examples

[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 simonaplat...@googlemail.com 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 listview

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

2011-07-22 Thread Simon Platten
Platten simonaplat...@googlemail.com 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 listview with each item defined as: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http

[android-developers] Listview oddity with imageview

2011-07-21 Thread Simon Platten
I have a listview with each item defined as: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight

[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 simonaplat...@googlemail.com wrote: I have a listview with each item defined as: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com

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

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

2011-07-18 Thread Simon Platten
Thank you, will do! On 18/07/2011 9:21 AM, Ali Chousein wrote: Make a bug entry here: http://code.google.com/p/android/issues/list -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for Cisco Cius)

Re: [android-developers] Spinner usage

2011-07-17 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 simonaplat...@googlemail.com mailto:simonaplat...@googlemail.com wrote: When I'm not making a selection the spinner shows as an empty box

[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: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight

[android-developers] Re: Spinner Adapter problem

2011-07-17 Thread Simon Platten
) { m_arySelItems.remove(strFolder); } } } } On Sun, Jul 17, 2011 at 9:42 AM, Simon Platten simonaplat...@googlemail.com wrote: I have a spinner with a checkbox in it, here is the XML for the item: ?xml version=1.0 encoding=utf-8

[android-developers] Checkbox bug?

2011-07-17 Thread Simon Platten
Whilst building a layout I think I've found a bugin a relative layout: CheckBox android:text=File-name android:layout_width=fill_parent android:layout_height=wrap_content android:layout_gravity=left android:id=@+id/chkUse

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

[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? --

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

2011-07-17 Thread Simon Platten
, 2011 at 6:11 PM, TreKing treking...@gmail.com 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 and set-up the initial state

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

2011-07-17 Thread Simon Platten
:40 PM, TreKing treking...@gmail.com 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/CompoundButton.html#setOnCheckedChangeListener

[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

[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

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 simonaplat...@googlemail.com написал: 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] 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

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

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

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

2011-07-10 Thread Simon Platten
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 time getView is called for this particular item. -- Kostya 10.07.2011 22:29, Simon Platten пишет

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 simonaplat...@googlemail.com 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
/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 put it back in the imageview. -- Kostya

[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

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
:20 PM, Mark Murphy wrote: On Sat, Jul 2, 2011 at 9:07 AM, Simon Platten simonaplat...@googlemail.com 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 degrees on each press

Re: [android-developers] Listview notification?

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

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
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 mmur...@commonsware.com wrote: On Sat, Jul 2, 2011 at 10:14 AM, Simon Platten simonaplat...@googlemail.com wrote: I can't call rotateThumbnail directly from

Re: [android-developers] Listview notification?

2011-07-02 Thread Simon Platten
Ok, Thank you, that makes sense, I'll have a play and see what I can come up with. On 02/07/2011 9:13 PM, Kostya Vasilyev wrote: This has to do with list view item recycling. Here is a good tutorial with pictures: http://android.amberfog.com/?p=296 -- Kostya 03.07.2011 0:10, Simon Platten

[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] Re: Photos Folder (DCIM)

2011-06-29 Thread Simon Platten
Thank you, I'll take a look at the link. On 29/06/2011 10:53 PM, gjs wrote: Hi, No you can't rely on this being the same on all devices the user can remove it anyway. Yes see

Re: [android-developers] TabHost and TabWidget ?

2011-06-20 Thread Simon Platten
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 simonaplat...@googlemail.com wrote: I am trying to create a layout using the TabHost and TabWidge views as described here

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 simonaplat...@googlemail.com wrote: According

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 simonaplat...@googlemail.com 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

[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(

Re: [android-developers] Setting text colour programmatically

2011-06-19 Thread Simon Platten
. On 19/06/2011, Simon Platten simonaplat...@googlemail.com 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); tvImagesTitle.setTextColor(R.color.blue

[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: ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android;

[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

Re: [android-developers] SQLite problem

2011-06-14 Thread Simon Platten
()) { ... 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 simonaplat...@googlemail.com I have written a class 'clsDB', please see source below. I'm testing

[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] Cancelling and Alarm

2011-06-14 Thread Simon Platten
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 Murphymmur...@commonsware.com wrote: On Tue, Jun 14, 2011 at 3:16 PM, Simon Platten simonaplat...@googlemail.com wrote: In my activity I let the user change the alarm time

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 simonaplat...@googlemail.com 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

[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

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 mmur...@commonsware.com wrote: On Mon, Jun 13, 2011 at 4:52 PM, Simon Platten simonaplat

Re: [android-developers] Services and Alarm Manager

2011-06-13 Thread Simon Platten
, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jun 13, 2011 at 5:21 PM, Simon Platten simonaplat...@googlemail.com 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

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 simonaplat...@googlemail.com wrote: Ok, so how do you schedule an alarm in the same way

[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

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 simonaplat...@googlemail.com

Re: [android-developers] Waking up after reboot

2011-06-12 Thread Simon Platten
hiccupy after a reboot. -- Kostya 2011/6/12 Simon Platten simonaplat...@googlemail.com 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

[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

Re: [android-developers] RECEIVE_BOOT_COMPLETED problem

2011-06-11 Thread Simon Platten
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 simonaplat...@googlemail.com wrote: Its been a while since I first posted regarding this problem, I've been away...Mark Murphy

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
, 2011 at 4:47 PM, Simon Platten simonaplat...@googlemail.com 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

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 simonaplat...@googlemail.com 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

Re: [android-developers] Delete a variable

2011-06-09 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 treking...@gmail.com wrote:

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 james...@gmail.com wrote: What part of colour setting are you having

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 ejwrobert...@gmail.com wrote: I'm working on a simple

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 caxix...@gmail.com 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:

[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

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 mmur...@commonsware.com wrote: On Tue, Jun 7, 2011 at 3:23 PM, Simon Platten simonaplat...@googlemail.com wrote: Thanks to pointers from Mark Murphy I now have an applicaiton than schedules alarms and works

[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

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 mmur...@commonsware.com wrote: You are not setting an alarm. You are calling startService(). On Tue, Jun 7, 2011 at 4:48 PM, Simon Platten simonaplat

[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

Re: [android-developers] Repeating alarm service

2011-06-05 Thread Simon Platten
(Runnable / Message). Looking at the stack trace is logcat should do it, though. -- Kostya 2011/6/5 Simon Platten simonaplat...@googlemail.com 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 reason

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 simonaplat...@googlemail.com wrote: I think I may have fixed it, I looked around for some

[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

Re: [android-developers] CWAC Demo

2011-06-05 Thread Simon Platten
something you could consider as well to improve maintainability. -- Kostya 2011/6/5 Simon Platten simonaplat...@googlemail.com 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

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 spooky1...@gmail.com 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

[android-developers] Market sales stuck again

2011-05-31 Thread Simon Platten
This is happening to frequently and there doesn't seem to be anything that I can do about it. Several of my sales have failed to charge and are over 24 hours. Why is this happening? Thank you, Simon -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Purchases stuck again in Google Checkout

2011-05-24 Thread Simon Platten
Over 48 hrs now and still not charged...do they still get the app? Regards,Sy On 24 May 2011 16:15, niko20 nikolatesl...@yahoo.com wrote: Same here, many sales that don't Clear until way late the next day On May 23, 5:24 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Locking - Lucky On May

  1   2   >