Panoramio and RadarView in apps-for-android (open source)

Supervised News & Rumors concerning the Google Android Platform.

Panoramio and RadarView in apps-for-android (open source)

Postby plusminus » Tue Sep 23, 2008 6:47 pm

Hello Community,

The Panoramio ( http://www.panoramio.com/ ) web site has a great collection of photos from all over the world, and they also have a very convenient web API. I thought it would be a lot of fun to use Android to access this content while you are out walking around – and especially to have Android find interesting photos based on your current location. The resulting open source application ( http://code.google.com/p/apps-for-andro ... /Panoramio ) is now available in the apps-for-android project.

The application starts by showing your current location in a custom MapView. You can pan and zoom this map to choose the area you want to search.

Once you have selected a search area, the application downloads thumbnails of the most popular photos taken within that area:

You can tap on an item to see more details.

From here you can use the menu to find more pictures by the same photographer or to see the original photo on the Panoramio site. My two favorite features, though, help you find the location of the photo in the real world. You can show the location on the map along with your current location:

Or, you can bring up a radar view that uses the compass and GPS to show you the location of the photo in relation to your own location:

I thought that other applications might want to use the radar view for their own purposes ("find me the nearest taqueria"), so I split that into its own package. You can find the source for that in the Radar project ( http://code.google.com/p/apps-for-andro ... runk/Radar ). Of course, you don't need the source in order to use this feature. Because of Android's component architecture, all you need to do us use an Intent:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.     Intent i = new Intent("com.google.android.radar.SHOW_RADAR");
  2.     i.putExtra("latitude", 37.422f);
  3.     i.putExtra("longitude", -122.084f);
  4.     startActivity(i);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


The code for these applications is not very long, but they are a good example of how to use a number of Android's location APIs:

* Using an embedded MapView along with a MyLocationOverlay to plot your current location. The is also a custom class which extends Overlay to draw the Panoramio pushpin.
* Using the SensorManager to get our compass heading.
* Using the LocationManager to determine our current location



/plusminus for anddev.org
Attachments
afjrhvfd92_47gk7hdncg_b.png
afjrhvfd92_47gk7hdncg_b.png (17.09 KiB) Viewed 8030 times
afjrhvfd92_46fdkx9zck_b.png
afjrhvfd92_46fdkx9zck_b.png (252.65 KiB) Viewed 8030 times
afjrhvfd92_45dq4wv6hg_b.png
afjrhvfd92_45dq4wv6hg_b.png (97.32 KiB) Viewed 8030 times
afjrhvfd92_44dmbptsdq_b.png
afjrhvfd92_44dmbptsdq_b.png (65.15 KiB) Viewed 8030 times
afjrhvfd92_43dp8zkmhg_b.png
afjrhvfd92_43dp8zkmhg_b.png (186.26 KiB) Viewed 8030 times
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby insanomania911 » Tue Jun 09, 2009 9:38 pm

Hello,

what are:

i.putExtra("latitude", 37.422f);
i.putExtra("longitude", -122.084f);

I mean 37.422f is it latitude?? excuse my ignorance, I feel it's a very stupid question

but I I have a geopoint that I am trying to point to and putting the long/lat in the putExtra does not seem to work.

thanks
insanomania911
Junior Developer
Junior Developer
 
Posts: 12
Joined: Tue Jun 09, 2009 4:53 pm

Re: Panoramio and RadarView in apps-for-android (open source

Postby EnsiDev » Mon Jul 12, 2010 2:51 pm

Hi,
i tried this piece of code to get the radar view but the application keep always stopping unexpectedly, am i missing something? is there a specific layout to add?
Thank you
EnsiDev
 
Posts: 0
Joined: Sun Jul 11, 2010 4:41 pm

Re: Panoramio and RadarView in apps-for-android (open source

Postby alyeo82 » Sat Jul 16, 2011 1:34 pm

Hi,

I've been playing around with radarView, I'm a big fan.
It's given me a few ideas for apps but these mostly involve multiple targets on a radarView.

From what I can tell (I am admittedly quite a noob) the drawing of the target/blip is tightly integrated into the whole display so there doesn't seem to be a way of drawing several targets on the same view.

Any hints or tips on how I might go about doing this would be massively appreciated.

Cheers,

A.
alyeo82
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Jul 16, 2011 1:25 pm

Re: Panoramio and RadarView in apps-for-android (open source

Postby Cuberahul » Mon Nov 12, 2012 11:50 am

Android is the current trend in all the mobile applications and other related area of softwares. Thanks for the latest updates Panoramio and RadarView in apps-for-android and I would make sure to pass this valuable information to my friends. [url=http://www.internetexplorersupport.com]internet explorer support[/url]
Cuberahul
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Nov 12, 2012 11:48 am

Top

Return to News & Rumors

Who is online

Users browsing this forum: No registered users and 0 guests