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

2012-04-22 Thread Alan Smith
I could probably knock you up one quite quickly as I'm currently spending a
lot of time in that space. Could you be more specific about your
requirements? Maybe communicate directly with me through the info {at}
gpsanimator {dot} com

On Mon, Apr 23, 2012 at 12:00 AM, Panam pandem...@googlemail.com wrote:

 Just to let you know, I am currently experimenting with GPS on a S Galaxy
 I whose GPS is off about 24 hs in the future (+-some seconds) and it does
 not seem to depend on the system time (adjusted the system time by some
 minutes without effects). This seems to be a systematic error.
 Btw. does somebody know an free app that shows the GPS time + date?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2012-04-22 Thread Alan Smith
I can assure you that the time reported by the quoted gpsclock site is NOT
the  time reported by GPS devices. It's really easy to demonstrate: Compare
what you see on your GPS with what's displayed from the web site. The
quoted time is around 15 seconds ahead of the time from the GPS device. I
wonder what that's really all about?

On Mon, Apr 23, 2012 at 5:08 AM, lbendlin l...@bendlin.us wrote:

 http://leapsecond.com/java/gpsclock.htm

 That explains the +/- some seconds.  As I mentioned already, GPS chips on
 phones are cheap and cheerful. They use all kinds of dirty tricks to cut
 corners (AGPS etc). You probably won't find two smartphone models (even
 from the same OEM) that have the same GPS behavior .


 On Sunday, April 22, 2012 10:00:31 AM UTC-4, Panam wrote:

 Just to let you know, I am currently experimenting with GPS on a S Galaxy
 I whose GPS is off about 24 hs in the future (+-some seconds) and it does
 not seem to depend on the system time (adjusted the system time by some
 minutes without effects). This seems to be a systematic error.
 Btw. does somebody know an free app that shows the GPS time + date?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android Http

2012-03-06 Thread Alan Smith
Learn a little PHP and use the start_session() functionality

On Tue, Mar 6, 2012 at 10:35 PM, lycoris zgh...@gmail.com wrote:

 everyone, i use the http to download the html file,and then use the
 loadDataWithBaseURL,which is a method of Webview, to open the html
 file. but i have met a problem,that is: i can login successfully, but
 when access another page int the same way, it download the login page.
 how can i maintain the session?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Prevent multiple copies of an Android service

2012-03-02 Thread Alan Smith
Thanks. I had my code in the  onHandleIntent()  method, so it was, as you
suggest, being executed on each call to startService. I've now got my code
in the onCreate method and things are moving forward.

On Fri, Mar 2, 2012 at 11:49 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Mar 1, 2012 at 11:51 PM, Alan Smith gpsanima...@gmail.com wrote:
  The doco for startService states If this service is not already
 running, it
  will be instantiated and started (creating a process for it if needed);
 if
  it is running then it remains running. I'm finding that each call to
  startService appears to be starting a separate instance of the service,
 in
  that the work that the service is doing (in my test case, trivially
 writing
  to a new log file) is being done again for each call.

 That does not mean that there are multiple instances of the service.
 onStartCommand() will be called for each startService() call, so if
 your work is there (or, say, in onHandleIntent() of an IntentService),
 N calls to startService() will result in N runs through your work.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Prevent multiple copies of an Android service

2012-03-01 Thread Alan Smith
The 
docohttp://developer.android.com/reference/android/content/Context.html#startService%28android.content.Intent%29
for
startService states If this service is not already running, it will be
instantiated and started (creating a process for it if needed); if it is
running then it remains running. I'm finding that each call to
startService appears to be starting a *separate* instance of the service,
in that the work that the service is doing (in my test case, trivially
writing to a new log file) is being done again for each call. I'm trying to
detect the service by looping through ActivityManager...
getRunningServices(Integer.MAX_VALUE)) but it's not showing up. Android
2.3.3 on SGS 11 I'm missing something here.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to set the preferred rotation ?

2012-02-28 Thread Alan Smith
Add to your manifest
android:screeOrientation=portrait
On Feb 29, 2012 1:09 AM, mobidyc mobi...@gmail.com wrote:

 Hi,

 I want to set the preferred orientation for the system, How can I
 define it ?

 I tried to define in landscape with :
 android.provider.Settings.System.putInt(getContentResolver(),
 user_rotation, Surface.ROTATION_90);
 and even with the disabled ACCELEROMETER_ROTATION setting, It doesn't
 work.

 Can you help ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: requestLocationUpdates ignore minTime parameter?

2012-02-25 Thread Alan Smith
Do you say that from experience ok from technical knowledge? I am looking
for the specs on the gps in my samsung galaxy S11
On Feb 26, 2012 12:12 PM, lbendlin l...@bendlin.us wrote:

 Let's rephrase that as smartphone GPS chips generally are limited to 1 Hz
 in order to conserve battery. You use a 10Hz Bluetooth GPS receiver with
 your phone to measure your motorbike lap times...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en