[android-developers] I don't see how to do this....

2010-01-06 Thread furby
I want to grab the latitude and longitude of a phone without using a
mapview (I want to send the location to a server side process from a
form) But this code constantly crashes the app :

Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
criteria.setAltitudeRequired(false);
criteria.setBearingRequired(false);
criteria.setCostAllowed(true);
criteria.setPowerRequirement(Criteria.POWER_LOW);
LocationManager locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
String provider = locationManager.getBestProvider(criteria,
true);
Location loc = locationManager.getLastKnownLocation(provider);
double lat = loc.getLatitude();
-- 
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: I don't see how to do this....

2010-01-06 Thread furby
Aha! Thank you!

As soon as I read your response it hit me - I am testing on the
emulator, which will always give me a null provider! Which means no
matter what I do I am gonna get a null which means I can't get a
latitude... Which shows that I have had WAY too much time off of
programming between Christmas and New years!

Thanks a million!

On Jan 6, 2:26 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com
wrote:
 You're not testing to see if you get a null provider, also I'm not
 sure asking to use POWER_LOW and ACCURACY_FINE will work as GPS uses a
 lot of power.

 I suggest dropping the POWER_LOW and testing provider for null.

 Also, unless you need a very accurate fix, the wireless network
 location service (ACCURACY_COARSE) is much faster, uses less power and
 also works indoors, you might consider using that as well.

 As a side note, you're not going to get a good fix using
 getLastKnownLocation without first attaching a listener to the GPS.
 The last known location might be 100 miles away, if the last time
 location services were used was a while ago. I've found
 getLastKnownLocation to be unreliable.

 -John Coryat

 Radar Now!

 What Zip Code?
-- 
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: KML and Google Map Application

2009-12-01 Thread furby
I know that if I send in other URI's from Google examples, it works
like a charm...

On Nov 30, 7:23 pm, jeffro j...@trackaroo.com wrote:
 Is that URI format supported?  This is what is listed in the developer
 guide:

 geo:latitude,longitude
 geo:latitude,longitude?z=zoom
 geo:0,0?q=my+street+address
 geo:0,0?q=business+near+city

 I don't see a url to KML file supported.

 http://developer.android.com/guide/appendix/g-app-intents.html

 Jeffhttp://www.trackaroo.com

 On Nov 30, 10:43 am, furby wookie...@gmail.com wrote:

  I have a KML file that is being generated on the server side and
  loaded into the google maps application on Android. The resulting KML
  file looks like this (Right now it has only one point in it):

  ?xml version=1.0 encoding=UTF-8?
  kml xmlns=http://earth.google.com/kml/2.x;
  PlacemarknameBridgewater Twp Martinsv/name
  descriptionTEST/description
  Pointcoordinates-74.03279876709,40.9547996521,0/coordinates/
  Point
  /Placemark
  /kml

  I am using these lines to start the app up and load the KML file :
  final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
  Uri.parse(geo:0,0?q=[GENERATE THE KML FILE]));
  startActivity(myIntent);

  (Where the [GENERATE THE KML FILE] is the url to my application that
  generates the file)

  For some reason it will not work... Can anyone see what I am doing
  wrong in the KML file? I *think* it looks correct to me...

-- 
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: KML and Google Map Application

2009-12-01 Thread furby
I'm not sure I follow that...

On Dec 1, 12:42 am, Chander Pechetty cspeche...@gmail.com wrote:
 1. Check the KML namespace...http://www.opengis.net/kml/2.2;
 2. Is your URL - urlencoded ?  You have to encode your url it has
  ?...

 On Nov 30, 11:43 pm, furby wookie...@gmail.com wrote:

  I have a KML file that is being generated on the server side and
  loaded into the google maps application on Android. The resulting KML
  file looks like this (Right now it has only one point in it):

  ?xml version=1.0 encoding=UTF-8?
  kml xmlns=http://earth.google.com/kml/2.x;
  PlacemarknameBridgewater Twp Martinsv/name
  descriptionTEST/description
  Pointcoordinates-74.03279876709,40.9547996521,0/coordinates/
  Point
  /Placemark
  /kml

  I am using these lines to start the app up and load the KML file :
  final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
  Uri.parse(geo:0,0?q=[GENERATE THE KML FILE]));
  startActivity(myIntent);

  (Where the [GENERATE THE KML FILE] is the url to my application that
  generates the file)

  For some reason it will not work... Can anyone see what I am doing
  wrong in the KML file? I *think* it looks correct to me...

-- 
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: KML and Google Map Application

2009-12-01 Thread furby
I think I have figured this out. There are a couple problems with KML
files and Android's map application... But nothing really huge.

1. Trying to dynamically generate the KML file doesn't seem to work...
However, if one generates the KML and writes it to a file, the URI
method can be used to load that KML file. No idea why, but it works
perfectly well this way.

2. The format of the file absolutely has to have the style info in it
(You can see a good example of it at the google examples of KML files.

Just thought I'd let everyone know about that...

On Dec 1, 7:43 am, furby wookie...@gmail.com wrote:
 I'm not sure I follow that...

 On Dec 1, 12:42 am, Chander Pechetty cspeche...@gmail.com wrote:

  1. Check the KML namespace...http://www.opengis.net/kml/2.2;
  2. Is your URL - urlencoded ?  You have to encode your url it has
   ?...

  On Nov 30, 11:43 pm, furby wookie...@gmail.com wrote:

   I have a KML file that is being generated on the server side and
   loaded into the google maps application on Android. The resulting KML
   file looks like this (Right now it has only one point in it):

   ?xml version=1.0 encoding=UTF-8?
   kml xmlns=http://earth.google.com/kml/2.x;
   PlacemarknameBridgewater Twp Martinsv/name
   descriptionTEST/description
   Pointcoordinates-74.03279876709,40.9547996521,0/coordinates/
   Point
   /Placemark
   /kml

   I am using these lines to start the app up and load the KML file :
   final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
   Uri.parse(geo:0,0?q=[GENERATE THE KML FILE]));
   startActivity(myIntent);

   (Where the [GENERATE THE KML FILE] is the url to my application that
   generates the file)

   For some reason it will not work... Can anyone see what I am doing
   wrong in the KML file? I *think* it looks correct to me...

-- 
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] KML and Google Map Application

2009-11-30 Thread furby
I have a KML file that is being generated on the server side and
loaded into the google maps application on Android. The resulting KML
file looks like this (Right now it has only one point in it):

?xml version=1.0 encoding=UTF-8?
kml xmlns=http://earth.google.com/kml/2.x;
PlacemarknameBridgewater Twp Martinsv/name
descriptionTEST/description
Pointcoordinates-74.03279876709,40.9547996521,0/coordinates/
Point
/Placemark
/kml

I am using these lines to start the app up and load the KML file :
final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(geo:0,0?q=[GENERATE THE KML FILE]));
startActivity(myIntent);

(Where the [GENERATE THE KML FILE] is the url to my application that
generates the file)

For some reason it will not work... Can anyone see what I am doing
wrong in the KML file? I *think* it looks correct to me...

-- 
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] Map application and KMZ files....

2009-11-20 Thread furby
Is the map application that comes with Android capable of digesting
KMZ files at all? I can start it up with an intent that sends in a KML
file with no problem... But every single time I send a KMZ URL to it,
it tells me that the file Contains Errors. Since i have now tried
roughly a dozen different URLS with a dozen different KMZ files, I
somehow suspect it is not the KMZ's that are corrupted - especially
since those KMZ's open fine in Google Earth...

So I have to wonder - is this a problem with that app, with the ADT or
is it just not supported?

-- 
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: Map application and KMZ files....

2009-11-20 Thread furby
I know that isn't exactly right - I can start the map application
using an intent like this :

final Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(geo:0,0?q=http://code.google.com/apis/kml/documentation/
KML_Samples.kml));
startActivity(myIntent);

And it loads that KML into the app and shows it...

On Nov 20, 9:55 am, JP joachim.pfeif...@gmail.com wrote:
 No you cannot create an overlay that's directly driven from KML/KMZ
 file input.
 You'll have to do this by foot, i.e. parse out the input file and
 feed the resulting Placemarks into an overlay

 On Nov 20, 6:30 am, furby wookie...@gmail.com wrote:

  Is the map application that comes with Android capable of digesting
  KMZ files at all? I can start it up with an intent that sends in a KML
  file with no problem... But every single time I send a KMZ URL to it,
  it tells me that the file Contains Errors. Since i have now tried
  roughly a dozen different URLS with a dozen different KMZ files, I
  somehow suspect it is not the KMZ's that are corrupted - especially
  since those KMZ's open fine in Google Earth...

  So I have to wonder - is this a problem with that app, with the ADT or
  is it just not supported?

-- 
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] Mediaplayer and stopping it....

2009-11-18 Thread furby
I have a activity which is called from another activity as an
intent... This activity loads and starts playing a audio file. All is
good - that much works. The activity also has a stop button and that
stops the audio from playing - that is also fine.

But how do I stop the file from playing if the user uses the back
button to leave the activity without clicking on the Stop button?

-- 
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: Mediaplayer and stopping it....

2009-11-18 Thread furby
Works like a charm! Thanks dude!

On Nov 18, 2:24 pm, StevePotell stevepot...@gmail.com wrote:
 stop the player in the onPause

 On Nov 18, 2:12 pm, furby wookie...@gmail.com wrote:

  I have a activity which is called from another activity as an
  intent... This activity loads and starts playing a audio file. All is
  good - that much works. The activity also has a stop button and that
  stops the audio from playing - that is also fine.

  But how do I stop the file from playing if the user uses the back
  button to leave the activity without clicking on the Stop button?

-- 
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] Imageviews and resizing....

2009-11-09 Thread furby
I'd like to do something rather simple - I'd like to have an image on
the screen and resize it to be bigger when the user clicks on it.

As it is I have figured out how to respond to a click by making the
imageview bigger (It's a simple call to setMinimumWidth and
requestLayout). But that resizes the imageView - not the image in
the view... Is there a simple way to do this?

-- 
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: Imageviews and resizing....

2009-11-09 Thread furby
Never mind - I figured it out.

On Nov 9, 2:00 pm, furby wookie...@gmail.com wrote:
 I'd like to do something rather simple - I'd like to have an image on
 the screen and resize it to be bigger when the user clicks on it.

 As it is I have figured out how to respond to a click by making the
 imageview bigger (It's a simple call to setMinimumWidth and
 requestLayout). But that resizes the imageView - not the image in
 the view... Is there a simple way to do this?

-- 
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] Not sure where to find out how to do this - the Busy spinning icon

2009-11-05 Thread furby
I have been doing searches for this on Google but I am obviously using
the wrong words to look for it. How does one go about showing the icon
that spins in the upper right hand corner of the screen while
something else is going on?

I was trying to call it a Spinner but that is not exactly what it's
called in Android... and then I tried Busy Icon and nothing useful
pops up... I tried a few other things but for some reason I am drawing
a blank as to what the real term for it is...

-- 
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] Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
So I am slowly trying to figure out maps... I want to be able to click
on a point and pop up a message. Toast seemed the way to go. So I
added an onTap handler in my class that extends ItemizedOverlay (the
class is called HelloItemizedOverlay) and then tried to grab the Toast
example... But I am seeing Eclipse tell me that the line is in error
no matter what I do... My code is below - could someone tell me what i
am doing wrong?

protected boolean onTap(int index) {
Toast.makeText(HelloItemizedOverlay.this, TEST,
Toast.LENGTH_SHORT).show();
return super.onTap(index);
}

-- 
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: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
It underlines the makeText word and when I ask it for suggestions
all it says is Rename in file.

Which makes me wonder if, perhaps, makeText' no longer exists in the
Toast object?

On Nov 4, 10:38 am, Mark Murphy mmur...@commonsware.com wrote:
 furby wrote:
  So I am slowly trying to figure out maps... I want to be able to click
  on a point and pop up a message. Toast seemed the way to go. So I
  added an onTap handler in my class that extends ItemizedOverlay (the
  class is called HelloItemizedOverlay) and then tried to grab the Toast
  example... But I am seeing Eclipse tell me that the line is in error
  no matter what I do... My code is below - could someone tell me what i
  am doing wrong?

  protected boolean onTap(int index) {
     Toast.makeText(HelloItemizedOverlay.this, TEST,
  Toast.LENGTH_SHORT).show();
          return super.onTap(index);
  }

 And the error Eclipse gives you is...what?

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

 App Widgets Deep Dive Seminar, 27 January 2010:http://bit.ly/deepdive

-- 
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: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
To be sure that you have some idea of what I am talking about, here is
the code for the entire class :

import java.util.ArrayList;

import android.graphics.drawable.Drawable;
import android.widget.Toast;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class HelloItemizedOverlay extends ItemizedOverlay {
private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem
();

public HelloItemizedOverlay(Drawable defaultMarker) {
super(boundCenterBottom(defaultMarker));
}

@Override
protected OverlayItem createItem(int i) {
  return mOverlays.get(i);
}


@Override
public int size() {
return mOverlays.size();
}

public void addOverlay(OverlayItem overlay) {
mOverlays.add(overlay);
populate();
}

protected boolean onTap(int index) {
Toast.makeText(HelloItemizedOverlay.this, TEST,
Toast.LENGTH_SHORT).show();
return super.onTap(index);
   }
}


On Nov 4, 10:52 am, furby wookie...@gmail.com wrote:
 It underlines the makeText word and when I ask it for suggestions
 all it says is Rename in file.

 Which makes me wonder if, perhaps, makeText' no longer exists in the
 Toast object?

 On Nov 4, 10:38 am, Mark Murphy mmur...@commonsware.com wrote:

  furby wrote:
   So I am slowly trying to figure out maps... I want to be able to click
   on a point and pop up a message. Toast seemed the way to go. So I
   added an onTap handler in my class that extends ItemizedOverlay (the
   class is called HelloItemizedOverlay) and then tried to grab the Toast
   example... But I am seeing Eclipse tell me that the line is in error
   no matter what I do... My code is below - could someone tell me what i
   am doing wrong?

   protected boolean onTap(int index) {
      Toast.makeText(HelloItemizedOverlay.this, TEST,
   Toast.LENGTH_SHORT).show();
           return super.onTap(index);
   }

  And the error Eclipse gives you is...what?

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

  App Widgets Deep Dive Seminar, 27 January 2010:http://bit.ly/deepdive

-- 
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: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
Hmmm Am I putting the onTap handler in the wrong place? I thought
that it would go in the overlay handler

On Nov 4, 11:01 am, Mark Murphy mmur...@commonsware.com wrote:
 furby wrote:
  To be sure that you have some idea of what I am talking about, here is
  the code for the entire class :

  import java.util.ArrayList;

  import android.graphics.drawable.Drawable;
  import android.widget.Toast;

  import com.google.android.maps.ItemizedOverlay;
  import com.google.android.maps.OverlayItem;

  public class HelloItemizedOverlay extends ItemizedOverlay {
     private ArrayListOverlayItem mOverlays = new ArrayListOverlayItem
  ();

     public HelloItemizedOverlay(Drawable defaultMarker) {
             super(boundCenterBottom(defaultMarker));
     }

    �...@override
     protected OverlayItem createItem(int i) {
       return mOverlays.get(i);
     }

    �...@override
     public int size() {
             return mOverlays.size();
     }

     public void addOverlay(OverlayItem overlay) {
         mOverlays.add(overlay);
         populate();
     }

     protected boolean onTap(int index) {
             Toast.makeText(HelloItemizedOverlay.this, TEST,
  Toast.LENGTH_SHORT).show();
          return super.onTap(index);
     }
  }

 The first parameter to makeText() needs to be a Context, such as an
 Activity.

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

 _Android Programming Tutorials_ Version 1.0 Available!

-- 
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: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
Perhaps I am going about this the wrong way... it seems like a lot of
shifting of code around to get a simple message to display in google
maps.

Let me rephrase the question : Is there a simple way to get the two
String parameters to display (That are sent to the OverlayItem class)
when a point is clicked on? I would assume that google maps woudl have
somethign built in (I am used to using maps in Javascript where it's
pretty much just a onClick event handler...).

You must remember - when it comes to this you can treat me like a
complete idiot - I am starting from the basics of this topic... The
Google Hello Views tutorial for maps got me this far but neglected
to explain how to handle a click on a point

On Nov 4, 11:57 am, Mark Murphy mmur...@commonsware.com wrote:
 furby wrote:
  Hmmm Am I putting the onTap handler in the wrong place? I thought
  that it would go in the overlay handler

 Your onTap() is in the correct place. However, HelloItemizedOverlay is
 not a Context, and so it cannot be used as the first parameter to
 makeText().

 Either make HelloItemizedOverlay an inner class of your MapActivity, or
 pass the MapActivity as a parameter to the HelloItemizedOverlay
 constructor, or something, then use that object as the first parameter
 to makeText().

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

 Android Consulting/App Development:http://commonsware.com/consulting

-- 
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: Toast - I can't get it to work in Eclipse...

2009-11-04 Thread furby
Thank you! The got my app to display a message to the user! Yay!

And you are about to have a customer!

On Nov 4, 12:14 pm, Mark Murphy mmur...@commonsware.com wrote:
 furby wrote:
  Perhaps I am going about this the wrong way... it seems like a lot of
  shifting of code around to get a simple message to display in google
  maps.

 Not really.

  Let me rephrase the question : Is there a simple way to get the two
  String parameters to display (That are sent to the OverlayItem class)
  when a point is clicked on? I would assume that google maps woudl have
  somethign built in (I am used to using maps in Javascript where it's
  pretty much just a onClick event handler...).

 You are using the simple way. You just have the wrong type for the first
 parameter to the makeText() method. It would similarly fail if you tried
 passing an integer for the first parameter, or a boolean.

 You can see an example of using a Toast from an ItemizedOverlay in one
 of my book examples. I don't have these examples up on github just yet
 (probably this weekend), so I can't directly link to it. For now, visit:

 http://commonsware.com/Android/

 Scroll down and click on the Source Code link opposite the table of
 contents. In the ZIP file, you will see Maps/NooYawk/. Look for the
 onTap() implementation there.

 Since my ItemizedOverlay is an inner class of my MapActivity, I already
 have access to a suitable Context to provide to makeText().

 --
 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] Getting key for maps....

2009-10-26 Thread furby

I am trying to puzzle out how to get an MD5 fingerprint for accessing
google maps from an android app... So far I have figured out how to
get keytool to work (The trick on XP is to enclose the entire path to
the keystore in quotes since it ends up in the Documents and
Settings folder).

But the thing is that I keep getting an error that says keytool
error: java.io.IOException: Keystore was tampered with, or password
was incorrect. I know for a fact that neither of the passwords are
incorrect (I can export a signed app from Eclipse using those
passwords perfectly easily)... And I know that the keystore was not
tampered with...

Is there a simple thing I am missing? The command line I am executing
is (Edited for safety) :

keytool -list -alias androiddebugkey -keystore C:\Documents and
Settings\[me]\.android\debug.keystore -storepass [password] -keypass
[password]

I am running XP and keytool is located in the C:\Program Files\Java
\jre1.6.0_07\bin directory, if that helps any
--~--~-~--~~~---~--~~
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: Getting key for maps....

2009-10-26 Thread furby

That's what it was - thanks a gabillion!

On Oct 26, 10:52 am, jgostylo jgost...@gmail.com wrote:
 I think the issue is that you need to replace the [password]s with
 'android' (without the quotes).  Unless I am mistaken, that is the
 password for the debug keystore.

 On Oct 26, 8:45 am, furby wookie...@gmail.com wrote:

  I am trying to puzzle out how to get an MD5 fingerprint for accessing
  google maps from an android app... So far I have figured out how to
  get keytool to work (The trick on XP is to enclose the entire path to
  the keystore in quotes since it ends up in the Documents and
  Settings folder).

  But the thing is that I keep getting an error that says keytool
  error: java.io.IOException: Keystore was tampered with, or password
  was incorrect. I know for a fact that neither of the passwords are
  incorrect (I can export a signed app from Eclipse using those
  passwords perfectly easily)... And I know that the keystore was not
  tampered with...

  Is there a simple thing I am missing? The command line I am executing
  is (Edited for safety) :

  keytool -list -alias androiddebugkey -keystore C:\Documents and
  Settings\[me]\.android\debug.keystore -storepass [password] -keypass
  [password]

  I am running XP and keytool is located in the C:\Program Files\Java
  \jre1.6.0_07\bin directory, if that helps any
--~--~-~--~~~---~--~~
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] Okay - I am an idiot but I can't get this to work....

2009-10-15 Thread furby

I am tryign to stream youtube videos. Supposedly, the Activity that
can be downloaded from
http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-android/51-polish-your-app-free-embeddable-android-youtube-activity
will work for that. It sounds like it's perfect for what I want to do.

So I grabbed the Activity, included it in the project and then call it
by using these lines :

Intent lVideoIntent = new Intent(null, Uri.parse(ytv://+page),
view.getContext(), IntroVideoActivity.class);
startActivity(lVideoIntent);

(page is a String that contains a video id that I have verified is a
real id).

Every time my code get's to those lines it crashes the app... I tried
putting it inside a try/catch clause to see the exception it's
throwing and it still crashes the app...

I know I am being stupid here, but can someone tell me what i am doing
wrong?
--~--~-~--~~~---~--~~
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] Stream youtube to a videoview?

2009-10-13 Thread furby

I am sure that this has been discussed before... But I don't seem to
be really grokking it...

I have a videoview called tv1 on a form.
I have a bit of code that fires when a button is pressed that looks
like this :
String uristr = rtsp://rtsp.youtube.com/youtube/
videos/S2eoCqwBCQI/video.3gp;
tv1.setVideoURI(Uri.parse(uristr));
tv1.start();

The emulator tells me that This video cannot be displayed and if I
try it on my phone, the app just crashes...

Does anyone know what I am doing wrong 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
-~--~~~~--~~--~--~---



[android-developers] Re: Stream youtube to a videoview?

2009-10-13 Thread furby

Anybody?

On Oct 13, 8:09 am, furby wookie...@gmail.com wrote:
 I am sure that this has been discussed before... But I don't seem to
 be really grokking it...

 I have a videoview called tv1 on a form.
 I have a bit of code that fires when a button is pressed that looks
 like this :
                 String uristr = rtsp://rtsp.youtube.com/youtube/
 videos/S2eoCqwBCQI/video.3gp;
                 tv1.setVideoURI(Uri.parse(uristr));
                 tv1.start();

 The emulator tells me that This video cannot be displayed and if I
 try it on my phone, the app just crashes...

 Does anyone know what I am doing wrong 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
-~--~~~~--~~--~--~---



[android-developers] Emulator won't finish booting...

2009-09-16 Thread furby

I had the 1.5 android emulator starting from Eclipse perfectly
nicely until yesterday when it suddenly won't finish booting. I
haven't installed anything new (Running it on Windows Vista - i know,
uck, but I'm waiting for Win 7 to hurry up), haven't even changed the
java code I am trying to run...

The emulator starts up, get's to the point where it shows Android
with the nice lighting effect that goes from left to right over it and
then just stays in that state. Last night I tested it by starting it
up, going out to the living room, watching two hour long episodes of
the first series of Doctor Who, and then coming back in (Essentially
giving it 1.5 hours to do it's stuff) - it was still stuck in that
state

Any ideas what I did wrong?
--~--~-~--~~~---~--~~
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: Emulator won't finish booting...

2009-09-16 Thread furby

I actually am starting it using Eclipse... Really, just running the
project. (I have to admit, I am rather new at Android development).

I created an AVD earlier (While I was attempting to use Netbeans to
develop Android apps - it didn't work out very well)... I am just
wondering - how can it work one day and then the next day suddenly
stop?

On Sep 16, 9:29 am, AJ ajeet.invinci...@gmail.com wrote:
 Hi furby,

 Are you starting the emulator with -avd option. If not then create an
 avd and start the emulator with -avd option.

 See the following link for more 
 details.http://developer.android.com/guide/developing/tools/avd.html

 Thanks,
 AJ

 On Sep 16, 6:03 pm, furby wookie...@gmail.com wrote:

  I had the 1.5 android emulator starting from Eclipse perfectly
  nicely until yesterday when it suddenly won't finish booting. I
  haven't installed anything new (Running it on Windows Vista - i know,
  uck, but I'm waiting for Win 7 to hurry up), haven't even changed the
  java code I am trying to run...

  The emulator starts up, get's to the point where it shows Android
  with the nice lighting effect that goes from left to right over it and
  then just stays in that state. Last night I tested it by starting it
  up, going out to the living room, watching two hour long episodes of
  the first series of Doctor Who, and then coming back in (Essentially
  giving it 1.5 hours to do it's stuff) - it was still stuck in that
  state

  Any ideas what I did wrong?
--~--~-~--~~~---~--~~
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] Populating Listview....

2009-09-07 Thread furby

I am probably being stupid here because I am a beginner in Android
development... But could somebody explain the step by step process of
dynamically populating a listview? I have found a few pages that do it
by reams and reams of code, but that seems kind of silly to me - I
think I must be missing the use of that since I am just looking for a
method that essentially says Append an element to the list

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---