[android-developers] Re: Do I have to test my app on Dev Phone for ADC II

2009-08-08 Thread Maps.Huge.Info (Maps API Guru)

If you're working with the location service, then a real phone is a
must. The emulator only briefly flirts with the location service, the
real device is quite complex and has a number of failure modes not
present in the emulator.

-John Coryat


--~--~-~--~~~---~--~~
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] Settings.Secure.ANDROID_ID longevity

2009-08-04 Thread Maps.Huge.Info (Maps API Guru)

According to the documentation, this setting: The Android ID (a
unique 64-bit value) as a hex string

Question: How dynamic is this value? Is it unchanging throughout the
life of the device, the same across Android versions or what?

I'd like to use this constant to identify a distinct device without
having to get anything like phone number or other settings that
actually identify the user.

Any input on the topic would be welcome

-John Coryat
--~--~-~--~~~---~--~~
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: Rectangle vs Parallelogram..Plz Help!!!!

2009-08-04 Thread Maps.Huge.Info (Maps API Guru)

A more generic solution might be to treat it as a polygon and do a
point in polygon analysis.

Can the Java class Polygon be used with Android?

-John Coryat
--~--~-~--~~~---~--~~
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: Settings.Secure.ANDROID_ID longevity

2009-08-04 Thread Maps.Huge.Info (Maps API Guru)

I found this link in Google:

More spoofing of the android id…
http://strazzere.com/blog/?tag=android_id

This article deals spoofing the deprecated

Settings.System.Android_ID

However, I'm using

Settings.Secure.ANDROID_ID

which suggests that it's secure.

Any comments?

-John Coryat



--~--~-~--~~~---~--~~
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: Any updates on ADC-2?

2009-07-28 Thread Maps.Huge.Info (Maps API Guru)

The terms are fairly plain and obvious if you read them:

a. SUBMISSION OF ENTRIES: To qualify for a Prize, an Entry to the
Challenge consists of an original application that is written using a
version of the Android Software Development Kit (SDK) (available at
http://developer.android.com) that validly executes on Android version
1.5.

There is no ambiguity, the SDK is required.

-Jonn Coryat
--~--~-~--~~~---~--~~
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] Log with Production App

2009-07-27 Thread Maps.Huge.Info (Maps API Guru)

I've been working on an app for a couple of months, it's loaded with
log statements (android.util.Log) now and they are very useful.

Question: Is it better to remove log statements before deploying to
the market or can they be left in? Are there good reasons to remove
them regardless?

Thanks in advance.

-John Coryat
--~--~-~--~~~---~--~~
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: Log with Production App

2009-07-27 Thread Maps.Huge.Info (Maps API Guru)

Dianne,

Thanks, that's exactly the kind of answer I was looking for,

-John Coryat

On Jul 27, 11:12 pm, Dianne Hackborn hack...@android.com wrote:
 Please do remove them.  They make your app larger, slower to run (can be
 SIGNIFICANTLY slower because of the work Java ends up doing building
 strings), and...  for people working on the platform having an app spewing
 logs is super annoying, since it buries any -interesting- messages that
 other parts of the system print.

 Actually if I see an app I have installed spewing logs, I will often
 uninstall it because it is so annoying and greatly reduces the amount of
 information available in the log if I need to track down something going
 wrong with my device.

 Fyi, it is very easy to conditionally compile them -- just define a static
 final boolean DOLOG = false value, and check that before each log.  The Java
 compiler will strip all of that code out when the constant is false.

 On Mon, Jul 27, 2009 at 9:01 PM, Maps.Huge.Info (Maps API Guru) 

 cor...@gmail.com wrote:

  I've been working on an app for a couple of months, it's loaded with
  log statements (android.util.Log) now and they are very useful.

  Question: Is it better to remove log statements before deploying to
  the market or can they be left in? Are there good reasons to remove
  them regardless?

  Thanks in advance.

  -John Coryat

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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: Android Dev Phone 1 out of stock

2009-07-25 Thread Maps.Huge.Info (Maps API Guru)

I suggest trying eBay.

-John Coryat
--~--~-~--~~~---~--~~
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: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-23 Thread Maps.Huge.Info (Maps API Guru)

It seems there is a very simple answer to piracy on this platform
anyway. If the market would keep a record of the device ID's that
purchased the app, it would be extremely easy to tell (via a server
based solution) which installations are valid and which are not. Then
again, what do I know?

-John Coryat

On Jul 23, 9:51 am, Ed edmundcl...@gmail.com wrote:
 In fact, using the pirating site listed previously as an example, here
 is what I found for each cell phone platform:

 Symbian OS9: 39 pages of apps, 24 pages of games

 Symbian OS6-8: 41 pages of apps, 34 pages of games

 Nokia S40: 9 pages total of apps and games

 PocketPC/Palm: 19 pages of apps, 7 pages of games

 SonyEricsson: 16 pages total of apps and games

 Symbian UIQ: 7 pages of apps, 2 pages of games

 iPhone: 7 pages total of apps and games

 Android: 2 pages total of apps and games
--~--~-~--~~~---~--~~
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: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-22 Thread Maps.Huge.Info (Maps API Guru)

What does the Android market send the developer when an app is
purchased? Is there any sort of notification?

-John Coryat
--~--~-~--~~~---~--~~
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] UnknownHostException

2009-07-22 Thread Guru
I saw this thread(since it is a dead thread--starting a new one):

http://groups.google.com/group/android-developers/browse_thread/thread/cd5be36a07ad1a3d/ba559f2e2ff06e32#ba559f2e2ff06e32

I have also encountered such problems in the emulator.

What I was interested in knowing is that ,is this an emulator problem or a
problem in the SDK. Many of our users complain of errors while they are
using the app.Actually the users get Unknownhost exception.And this
exception does not appear when the users re-start their device.Can some one
shed some light on this.

Thanks
Guru

--~--~-~--~~~---~--~~
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: Is there a way to auto-power on the phone?

2009-07-22 Thread Maps.Huge.Info (Maps API Guru)

Question:

If the phone is in a power off condition, how would an app know to
turn it on?

-John Coryat
--~--~-~--~~~---~--~~
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: Age of GPS data (continued)

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

Can you check to see if your user has selected Automatic - Use
network-provided values?

The second question would be: Where does the location.getTime() time
come from? Is it provided by the satellite fix itself or from the
phone. If from the phone then it's not really relevant how the user
sets the time.

I'm curious as to the cause and effect of system time on GPS time. I
hadn't considered it before reading this question but my app is also
dependent on the comparing the fix time vs. the clock time.

-John Coryat
--~--~-~--~~~---~--~~
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: Age of GPS data (continued)

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

I just did a test.

location.getTime() 1248184334000
System.currentTimeMillis() 1248184346934

It appears as if the GPS tracks time down to the second and it can
vary from the Automatic setting by quite a bit. This example shows a
variance of about 100 seconds between the two.

Perhaps the best strategy would be to save a time difference as a
setting for the app, while updating this value every time a difference
is noted.

-John Coryat
--~--~-~--~~~---~--~~
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: Adc2 Demo Game

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

If you put up any version of your application to the market, free or
paid, before August 1st, it will not be eligible. Keep that in mind...

-John Coryat
--~--~-~--~~~---~--~~
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: How to compare two (simple) images?

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

I don't know if this can be done in Java, but what I have done for
similar things is to convert the image to a PNG or GIF and count the
number of colors in the color table.

-John Coryat
--~--~-~--~~~---~--~~
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: GPS still not working on emulator with r3

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

Until you send it a location with DDMS, the location will be null.
After you send it, everything works as expected. No altitude, speed,
bearing or any of the GpsStatus comes across though. It would be nice
if these things were also accessible in DDMS.

-John Coryat
--~--~-~--~~~---~--~~
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: GPS still not working on emulator with r3

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

p.s. Make sure you have GPS enabled in the emulator settings.
--~--~-~--~~~---~--~~
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: GPS still not working on emulator with r3

2009-07-21 Thread Maps.Huge.Info (Maps API Guru)

I haven't used geo fix, but I assume it will work as well as DDMS.

-John Coryat
--~--~-~--~~~---~--~~
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: problems importing existing project into eclipse

2009-07-20 Thread Maps.Huge.Info (Maps API Guru)

I'll bet you have an R.java file in your source directory, delete it
and your error should go away.

-John Coryat
--~--~-~--~~~---~--~~
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: Asking for Donations

2009-07-18 Thread Maps.Huge.Info (Maps API Guru)

According to the market terms:

All fees received by Developers for Products distributed via the
Market must be processed by the Market’s Payment Processor.

Does this allow for fees to be collected outside of the market, like
in OP's question, but using the Market's Payment Processor? Another
words, if the OP uses Google Checkout on his own web site will this
satisfy this provision?

By my reading of the terms, the OP's idea of collecting additional
revenue for his application by selling levels would be fine as long
as he used Google Checkout.

CAUTION: IANAL

-John Coryat
--~--~-~--~~~---~--~~
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: SDK 1.5_r3 is available

2009-07-18 Thread Maps.Huge.Info (Maps API Guru)

If you mean by GPS emulation bug the problem with network provider
on the emulator, it does, or at least does to my satisfaction. Before,
accessing the network provider caused an error. Now it works as
expected.

-John Coryat
--~--~-~--~~~---~--~~
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: GPS on G1/G2

2009-07-18 Thread Maps.Huge.Info (Maps API Guru)

If you mean by a G2 the Google Ion (HTC Magic given out at Google
IO), then the answer is yes, it does work as expected. I don't have a
G1 to confirm this but if it works on the emulator, I would expect it
to work on the Ion.

-John Coryat
--~--~-~--~~~---~--~~
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: Screen becomes black while Swicthing Activity

2009-07-17 Thread Maps.Huge.Info (Maps API Guru)

You might also want to display an indeterminate progress dialog so
your users won't think the app is frozen.

-John Coryat
--~--~-~--~~~---~--~~
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: Any updates on ADC-2?

2009-07-15 Thread Maps.Huge.Info (Maps API Guru)

Looks like the app has to be written with the SDK. See the official
terms and conditions for the exact wording.

My application works only in the US, I wonder if that will doom it's
possibilities? Someone who judges the app in Europe will rate it a fat
zero.

-John Coryat
--~--~-~--~~~---~--~~
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] GpsStatus

2009-07-11 Thread Maps.Huge.Info (Maps API Guru)

How can I derive the getMaxSatellites(), getSatellites() and
getTimeToFirstFix() from the GpsStatus Listener?

-John Coryat

I've got the listener for GpsStatus working like this:


LocationManager locMgr = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
locMgr.addGpsStatusListener(onGpsStatusChange) ;


// Listener for GPS Status...

private final Listener onGpsStatusChange=new GpsStatus.Listener()
{
public void onGpsStatusChanged(int event)
{
switch( event )
{
case GpsStatus.GPS_EVENT_STARTED:
// Started...
break ;
case GpsStatus.GPS_EVENT_FIRST_FIX:
// First Fix...
break ;
case GpsStatus.GPS_EVENT_STOPPED:
// Stopped...
break ;
}
}
} ;

Thanks...

-John Coryat
--~--~-~--~~~---~--~~
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: GpsStatus

2009-07-11 Thread Maps.Huge.Info (Maps API Guru)

Answered my own question, but now I have another...

In this code: (which works fine)

case GpsStatus.GPS_EVENT_SATELLITE_STATUS:
GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ;
IterableGpsSatellite iSatellites = xGpsStatus.getSatellites() ;
Iterator it = iSatellites.iterator() ;
while ( it.hasNext() )
{
GpsSatellite oSat = (GpsSatellite) it.next() ;
Log.v(TEST,LocationActivity - onGpsStatusChange: Satellites: 
 +
oSat.getSnr() ) ;
}
break ;

there is a warning error on this line:

Iterator it = iSatellites.iterator() ;

Iterator is a raw type. References to generic type IteratorE should
be parameterized

As I am a relative newcomer to Java, I can't find out how to fix this,
although the code runs as expected. Is this an important error or
something that can be ignored? I would prefer to fix it if possible.

-John Coryat
--~--~-~--~~~---~--~~
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: GpsStatus

2009-07-11 Thread Maps.Huge.Info (Maps API Guru)

Excellent!

That removed the warning.

Thanks...

I haven't seen any examples of this code anywhere, so for those that
want to get detailed information about the status of a GPS fix, this
code works.

-John Coryat


On Jul 11, 1:02 pm, Mark Murphy mmur...@commonsware.com wrote:
 Maps.Huge.Info (Maps API Guru) wrote:



  Answered my own question, but now I have another...

  In this code: (which works fine)

  case GpsStatus.GPS_EVENT_SATELLITE_STATUS:
     GpsStatus xGpsStatus = locMgr.getGpsStatus(null) ;
     IterableGpsSatellite iSatellites = xGpsStatus.getSatellites() ;
     Iterator it = iSatellites.iterator() ;
     while ( it.hasNext() )
     {
             GpsSatellite oSat = (GpsSatellite) it.next() ;
             Log.v(TEST,LocationActivity - onGpsStatusChange: Satellites: 
   +
  oSat.getSnr() ) ;
     }
     break ;

  there is a warning error on this line:

     Iterator it = iSatellites.iterator() ;

  Iterator is a raw type. References to generic type IteratorE should
  be parameterized

  As I am a relative newcomer to Java, I can't find out how to fix this,
  although the code runs as expected. Is this an important error or
  something that can be ignored? I would prefer to fix it if possible.

 Try IteratorGpsSatellite instead of just Iterator. The code will run
 just fine in this case, but you lose any compile-time type-safety checks
 for down the road (e.g., you accidentally try assigning an
 IteratorString instead of an IteratorGpsSatellite).

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

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
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] ACCURACY_COARSE and ACCURACY_FINE

2009-07-10 Thread Maps.Huge.Info (Maps API Guru)

I've been toying with these two concepts for a while and was wondering
what the consensus is on how to handle accuracy changes.

I would like to be able to use the FINE but if not available use
COARSE. The issue is how to handle these two. I thought about using
two listeners and that seems like a good idea but it seems a bit of
overkill if there is a simpler method.

Any ideas? Code examples?

Thanks in advance.

-John Coryat
--~--~-~--~~~---~--~~
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: How do you display many points on a map?

2009-06-30 Thread Maps.Huge.Info (Maps API Guru)

The standard way of handling the too many points problem is to use a
clustering system, either server based or client based. Clustering
converts the many markers that can appear in one area, usually
determined by a matrix, into a single marker.

Another method is to limit what is loaded into the map by using the
map bounds as a selection criteria. As the map moves, new points are
loaded and ones out of view are dropped.

Still another method is to use an image overlay instead of individual
points and develop your own method to make the points active. There
are several strategies to accomplish this but essentially, the meta
data associated with the image is loaded into an array that is
analyzed as the pointer moves. This method works better than
individual markers as there are far fewer objects and DOM nodes
created.

If you're interested in learning more about these methods, I suggest
visiting the Google Maps API discussion group and research the
archives. There's a lot of information on these specifics on that
forum.

-John Coryat
--~--~-~--~~~---~--~~
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: 30 Days of Android Applications

2009-06-26 Thread Maps.Huge.Info (Maps API Guru)

The source for day 17 and 18 are missing...

Keep up the good work, only 8 days left!

-John Coryat
--~--~-~--~~~---~--~~
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: Strange ListView loading problems

2009-06-24 Thread Guru
Are you running any thread in the getView of the adapter?

On Wed, Jun 24, 2009 at 2:04 PM, Peter pkana...@gmail.com wrote:


 I have a listview that is populated by a couple threads that pull in
 data from the network. Before that data comes in, there are some
 default values displayed. When the screen loads, there are 6 items
 displayed, each with the default data. The 1st (index 0) loads and is
 updated on the screen, and then number 6 (index 5) is updated with
 that same info. Then, item 2 (index 1) loads, and then item 5 (index
 4) mirrors that data. Then item 3 loads, then item 4 reloads with the
 correct data, then then item 5 with the correct data, then item 6.

 Why are items 5 and 6 briefly showing the data from other elements in
 the list? I can't figure out what in the world could be causing this.
 



-- 
Thanks and Regards
Gurudutt P.S.

--~--~-~--~~~---~--~~
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: Use own map layer in Google Maps

2009-06-23 Thread Maps.Huge.Info (Maps API Guru)

You could call a Google API based map that uses a custom tile layer or
other type of overlay as a webkit page directly from an Android
application. The easiest way to do so would be to use a parameter
based positioning method, another words, pass the coordinates of
interest to the map via lat and lng parameters to the page. It's not
too hard to do this, nor is it too difficult to create a page with a
custom tile overlay, putting it all together requires a lot of little
things so if you're new to both Android and Google Maps API, then
figure at least a month or two of hard work to understand the dozen or
so pieces of the puzzle.

Here's a link to a parameter based map that essentially does what
you're looking to do with a whole image overlay instead of a custom
tile layer.

http://www.usnaviguide.com/v3maps/WhatZipCode.htm?lat=38lng=-123

-John Coryat
--~--~-~--~~~---~--~~
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: Use own map layer in Google Maps

2009-06-23 Thread Maps.Huge.Info (Maps API Guru)

What JavaScript error do you see? I get none. This is a Maps v3 demo
app, it should work well with any modern browser.

The v3 API doesn't have a tile layer yet but it does have an overlay
method. I wrote the one used in the demo. It handles whole image
overlays so if you can create a single image that contains all your
data then it works well. The v2 API has tile overlays which may work
better for your application. The v3 api is smaller and faster, better
for mobile apps.

-John Coryat

On Jun 23, 5:25 pm, JP jetp...@yahoo.com wrote:
 Hi John,

 Thanks for your reply. Gonna look into that tomorrow for sure!

 In your example you have added a point to the map, and I also get a
 javascript error. I am interested in adding a shape. Kind of like
 this:

 http://www.weather.com/maps/activity/garden/index_large.html

 I was trying to find a temperature map, but this will do ;-). There
 are shapes in red, yellow and green, and I have a similar map with a
 rating I use. I want to know which chape I am currently in.

 But thanks for the pointer, I will look into it!

 JP
--~--~-~--~~~---~--~~
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: Any way to get current time or time zone from Address or long/lat pair?

2009-06-21 Thread Maps.Huge.Info (Maps API Guru)

I believe you can get time zone info using the coordinate from
geonames.org. Check their site to be sure.

-John Coryat
--~--~-~--~~~---~--~~
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: Geocoder backend service

2009-06-17 Thread Maps.Huge.Info (Maps API Guru)

This isn't really an Android question, however, if you are trying to
create this service for the US, there are the Tiger shapefiles that
contain a lot of what you're looking for. Search Google for Tiger
Shapefiles 2008 for the details. They're available at no charge and
have no copyright, so you can do with them as you please.

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com

http://www.zipmap.net
--~--~-~--~~~---~--~~
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: In need of a developer...

2009-06-13 Thread Maps.Huge.Info (Maps API Guru)

You might want to consider figuring this out for yourself. It's not
that difficult if you use the tutorial book ($35) written by Mark
Murphy at http://commonsware.com/ - tutorial 17 did it for me...

I wrote a similar program without much prior knowledge myself in about
three days of study. Your mileage may vary.

-John Coryat

http://maps.huge.info
--~--~-~--~~~---~--~~
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: Prob using efficient list adapter

2009-06-11 Thread Guru
Actually ,I was able to get to the root of the prob.The problem is that
getView gets called multiple times(atleast 3 times) for each row by the
Adapter.Because of which when I am running a thread for the image to get
loaded from the network,I am getting unwanted results.This thread is being
called multiple times and causing unwanted results.Is there any way to make
sure that I call thread only once so that there are no unwanted results.Any
ideas.

Thanks very much
Guru

On Tue, Jun 9, 2009 at 11:45 AM, Guru gurudut...@gmail.com wrote:


 I have a list view with images and some text items. The images are actually
 URLs and are locally cached if the url is already displayed once.The problem
 is the listview seems to change the image itself while rendering.I am very
 sure that the caching mechanism of the url works fine.

 Is there anything that i am doing wrong .?

 if (convertView == null) {
   LayoutInflater mInflater = LayoutInflater.from(this.context);
 convertView = mInflater.inflate(resID, null);
 holder = new ViewHolder();
 holder.Image= (WebImage) convertView
 .findViewById(R.id.image);
 holder.text= (TextView) convertView
 .findViewById(R.id.name);
 }else{
 convertView.setTag(holder);
 }
 holder.position = position;
 String friendImage = myObj.get[position]
 .getUrl();
 if (friendImage != null) {

 holder.mFriendImage.getImage(friendImage);
 }


--~--~-~--~~~---~--~~
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: 30 Days of Android Applications

2009-06-11 Thread Maps.Huge.Info (Maps API Guru)

It appears as if your 03day app source is missing...

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com

http://www.zipmap.net
--~--~-~--~~~---~--~~
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] Prob using efficient list adapter

2009-06-09 Thread Guru
I have a list view with images and some text items. The images are actually
URLs and are locally cached if the url is already displayed once.The problem
is the listview seems to change the image itself while rendering.I am very
sure that the caching mechanism of the url works fine.

Is there anything that i am doing wrong .?

if (convertView == null) {
  LayoutInflater mInflater = LayoutInflater.from(this.context);
convertView = mInflater.inflate(resID, null);
holder = new ViewHolder();
holder.Image= (WebImage) convertView
.findViewById(R.id.image);
holder.text= (TextView) convertView
.findViewById(R.id.name);
}else{
convertView.setTag(holder);
}
holder.position = position;
String friendImage = myObj.get[position]
.getUrl();
if (friendImage != null) {

holder.mFriendImage.getImage(friendImage);
}

--~--~-~--~~~---~--~~
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: Publishing Paid Apps on Android Market Can Cost You Money

2009-06-08 Thread Maps.Huge.Info (Maps API Guru)

What you receive from the Google checkout is a boilerplate e-mail. It
would probably be a good idea if they changed that to one specific to
the Android marketplace.

Either way, you have a choice. List your app with the marketplace and
pay the fees or use another payment method and pay their fees. As
several posters have pointed out, it's the cost of doing business. If
you sell 10 copies of your app and one bounces, then it could be
important. If you sell 10,000 copies and 100 bounce, it's irrelevant.
All a matter of numbers.

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com

http://www.zipmap.net

--~--~-~--~~~---~--~~
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: Able to use T-Mobile G1 without contract for application testing?

2009-06-08 Thread Maps.Huge.Info (Maps API Guru)

There are a few of the unlocked HTC Magic phones available on eBay.
These are the ones given out at the Google IO conference that will
work without a SIM or on any capable network. Search eBay for Google
IO and you'll find them. Nice phones, I wouldn't part with mine for
anything.

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com

http://www.zipmap.net
--~--~-~--~~~---~--~~
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: [ListView + Custom adapter] items can't be selected (or highlighted)

2009-06-02 Thread Guru
Probably u have returned false in  areAllItemsEnabled  in the adapter

or
returning false in isEnabled(position)

On Tue, Jun 2, 2009 at 4:36 PM, Tom thomas.coz...@gmail.com wrote:


 Hi,

 I developped a ListView with a custom adapter (which extends
 ArrayAdapter).
 The problem is that i can't selected or highlighted items.
 Is there a attribut to fix in the listView Layout or something else?

 Best regards,
 Tom
 



-- 
Thanks and Regards
Gurudutt P.S.

--~--~-~--~~~---~--~~
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] Question on performance of layout inflater

2009-05-14 Thread Guru
I have question on what is the best approch to take.I have a header view in
all my screens of the app.

So is it best to have the setContent of the header view and then adding the
views by inflating them in the sub-class activity as below

Base extends Activity{

private Linearlayout mHeader;
   public void onCreate(Bundle b){
   setContentView(R.layout.header);

 mHeader = (LinearLayout)findViewById(R.id.myheader);
 }

}

MyView extends Base{
 public void onCreate(Bundle b){
m_Inflater = LayoutInflater.from(this);
ViewGroup layout = (ViewGroup)
m_Inflater.inflate(R.layout.actual_layout,
mHeader );
}

}

Or is it ideal to have the include tag in the xmls and setContentView at
once.
-- 
Thanks and Regards
Gurudutt P.S.

--~--~-~--~~~---~--~~
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] file that is wriiten on an SDCard not visible

2008-10-16 Thread guru

I needed to download a file and store it in my sdcard.I first save it
by writing in the output stream(by using openFileOutput) in the
application package.From here I copy it to my SDCard and its written
on my SDCard.But when i see my SDCard in the file in the DDMS mode i
am able to see that file,but in the SDCard i was not able to see that
file.Please could anyone tell how can this be acheived.


heres the code snippet i use.

String fileName = myFileName;
File bufferedFile = new File(/sdcard/+fileName);
copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());

private void copyFiletoSDCard(File fromFile, String fileName) {
FileInputStream from = null;
FileOutputStream to = null;
try {
from = context.openFileInput(fromFile.getName());
to = new FileOutputStream(fileName);
byte[] buffer = new byte[4096];
int bytesRead;

while ((bytesRead = from.read(buffer)) != -1)
to.write(buffer, 0, bytesRead); // write
} catch(IOException ioException){
Log.i(getClass().getName(),ioException Msg);
Log.i(getClass().getName(),ioException.getMessage());
ioException.printStackTrace();
}finally {
if (from != null)
try {
from.close();
} catch (IOException e) {
;
}
if (to != null)
try {
to.close();
} catch (IOException e) {
;
}
}

}
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to change the ringtone of the phone

2008-10-15 Thread guru

hello,

I need to know whether there is any way the ringtone of the phone can
be changed programatically.If yes,please could any one help me on
this.


Thanks
Guru
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-10-10 Thread guru

I have been trying to push an mp3 file for quite a while but i am
getting the error.
---
D:\android-sdk-windows-1.0_r1\toolsmksdcard 1024M sdcard.img

D:\android-sdk-windows-1.0_r1\toolsadb push D:/android-sdk-
windows-1.0_r1/tools/anirudh.mp3 /sdcard
530 KB/s (0 bytes in 4031977.007s)

D:\android-sdk-windows-1.0_r1\toolsadb push D:/android-sdk-
windows-1.0_r1/tools/anirudh.mp3 \sdcard
failed to copy 'D:/android-sdk-windows-1.0_r1/tools/anirudh.mp3' to
'\sdcard': Read-only file system

---

When i see in the emulator,I dont see the file i have pushed.Thanks
for your help.

Thanks
Guru


On Sep 24, 2:50 pm, Sudha [EMAIL PROTECTED] wrote:
 in addition to the above mail

 I tried  to pull out the default image coming the camera
 folder( apperas in the pictures in the emulator) and tried to push teh
 same back to /sdcar/dcim/camera.
 now also teh image appreas liek red block and blank screen when
 selected..

 Nothing is happening with the 1.0

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-10-10 Thread guru

I was trying to add audio files on to the emulator.I started the
emulator with the option -sdcard D:\android-sdk-windows-1.0_r1\tools
\sdcard.img
---
D:\android-sdk-windows-1.0_r1\toolsmksdcard 1024M sdcard.img

D:\android-sdk-windows-1.0_r1\toolsadb push D:/android-sdk-
windows-1.0_r1/tools/anirudh.mp3 /sdcard
530 KB/s (0 bytes in 4031977.007s)

D:\android-sdk-windows-1.0_r1\toolsadb push D:/android-sdk-
windows-1.0_r1/tools/anirudh.mp3 \sdcard
failed to copy 'D:/android-sdk-windows-1.0_r1/tools/anirudh.mp3' to
'\sdcard': Read-only file system
---

The files were not pushed.Please could anyone help


Thanks
Guru

On Sep 24, 2:50 pm, Sudha [EMAIL PROTECTED] wrote:
 in addition to the above mail

 I tried  to pull out the default image coming the camera
 folder( apperas in the pictures in the emulator) and tried to push teh
 same back to /sdcar/dcim/camera.
 now also teh image appreas liek red block and blank screen when
 selected..

 Nothing is happening with the 1.0

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



<    2   3   4   5   6   7