<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Droidnova will be moved to another server</title>
	<atom:link href="http://www.droidnova.com/droidnova-will-be-moved-to-another-server,500.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.droidnova.com/droidnova-will-be-moved-to-another-server,500.html</link>
	<description>Rapid android development from Berlin</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:50:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Janakar</title>
		<link>http://www.droidnova.com/droidnova-will-be-moved-to-another-server,500.html/comment-page-1#comment-668</link>
		<dc:creator>Janakar</dc:creator>
		<pubDate>Sun, 13 Dec 2009 10:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=500#comment-668</guid>
		<description>Your examples are great. They helped me a lot.
They are easy to understand and they are clear.

I am searching for a code, which gets me the longitude and the latitude.
My HelloGPSLocation is not working. 

package de.photochallenge.HelloGPSLocation;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.widget.TextView;

public class HelloGPSLocation extends Activity {

	volatile Location curLocation = null;
    private LocationManager mLocationManager;
          
    @Override
    public void onCreate(Bundle savedInstanceState) {

    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
     
        
        mLocationManager  = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE); 
        //mLocationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
		curLocation = mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
		//LocationProvider provider = mLocationManager.getProvider(&quot;gps&quot;);
		mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,100,1,gpsListener);
		
		updateWithNewLocation(curLocation);			
    }
    
 
    private void updateWithNewLocation(Location mLocation) {
    	String mText;
    	
    	TextView myLocationText;
    	myLocationText = (TextView)findViewById(R.id.myLocationText);
    	
    	if(mLocation != null){
    		double lat = mLocation.getLatitude();
    		double lng = mLocation.getLongitude();
    		String prov = mLocation.getProvider () ;
    		
    		mText = &quot;Latitude:&quot; + lat + &quot;\nLongitude:&quot; + lng + &quot;Provider:&quot; + prov;    		
    	}
    	else {
    		mText = &quot;No location found.&quot;;
    	}
    	  myLocationText.setText(mText);    	
    }
    
    
	private final LocationListener gpsListener = new LocationListener(){
		
		public void onLocationChanged(Location curLocation)
		{	
			updateWithNewLocation(curLocation);
		}	
	
		public void onProviderDisabled(String provider){
			updateWithNewLocation(null);
		}

		public void onProviderEnabled(String provider){}

		public void onStatusChanged(String provider, int status, Bundle extras){}
	};

}</description>
		<content:encoded><![CDATA[<p>Your examples are great. They helped me a lot.<br />
They are easy to understand and they are clear.</p>
<p>I am searching for a code, which gets me the longitude and the latitude.<br />
My HelloGPSLocation is not working. </p>
<p>package de.photochallenge.HelloGPSLocation;</p>
<p>import android.app.Activity;<br />
import android.content.Context;<br />
import android.location.Location;<br />
import android.location.LocationListener;<br />
import android.location.LocationManager;<br />
import android.location.LocationProvider;<br />
import android.os.Bundle;<br />
import android.widget.TextView;</p>
<p>public class HelloGPSLocation extends Activity {</p>
<p>	volatile Location curLocation = null;<br />
    private LocationManager mLocationManager;</p>
<p>    @Override<br />
    public void onCreate(Bundle savedInstanceState) {</p>
<p>    	super.onCreate(savedInstanceState);<br />
        setContentView(R.layout.main);</p>
<p>        mLocationManager  = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE);<br />
        //mLocationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);<br />
		curLocation = mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);<br />
		//LocationProvider provider = mLocationManager.getProvider(&#8220;gps&#8221;);<br />
		mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,100,1,gpsListener);</p>
<p>		updateWithNewLocation(curLocation);<br />
    }</p>
<p>    private void updateWithNewLocation(Location mLocation) {<br />
    	String mText;</p>
<p>    	TextView myLocationText;<br />
    	myLocationText = (TextView)findViewById(R.id.myLocationText);</p>
<p>    	if(mLocation != null){<br />
    		double lat = mLocation.getLatitude();<br />
    		double lng = mLocation.getLongitude();<br />
    		String prov = mLocation.getProvider () ;</p>
<p>    		mText = &#8220;Latitude:&#8221; + lat + &#8220;\nLongitude:&#8221; + lng + &#8220;Provider:&#8221; + prov;<br />
    	}<br />
    	else {<br />
    		mText = &#8220;No location found.&#8221;;<br />
    	}<br />
    	  myLocationText.setText(mText);<br />
    }</p>
<p>	private final LocationListener gpsListener = new LocationListener(){</p>
<p>		public void onLocationChanged(Location curLocation)<br />
		{<br />
			updateWithNewLocation(curLocation);<br />
		}	</p>
<p>		public void onProviderDisabled(String provider){<br />
			updateWithNewLocation(null);<br />
		}</p>
<p>		public void onProviderEnabled(String provider){}</p>
<p>		public void onStatusChanged(String provider, int status, Bundle extras){}<br />
	};</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.droidnova.com/droidnova-will-be-moved-to-another-server,500.html/comment-page-1#comment-354</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 28 Sep 2009 07:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=500#comment-354</guid>
		<description>Nice! :)

How about helping? Is there anything a basic android programmer can do? I have experience in quite a few topics of Android. I also have basic knowledge about game developing (mainly 2D on XNA)</description>
		<content:encoded><![CDATA[<p>Nice! <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>How about helping? Is there anything a basic android programmer can do? I have experience in quite a few topics of Android. I also have basic knowledge about game developing (mainly 2D on XNA)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.droidnova.com/droidnova-will-be-moved-to-another-server,500.html/comment-page-1#comment-334</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 22 Sep 2009 12:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=500#comment-334</guid>
		<description>Few feeks ago I was the only author here. Right now we are three but all posts in their free time.
The last post I have done took 3 man days.
So we will do our best :)</description>
		<content:encoded><![CDATA[<p>Few feeks ago I was the only author here. Right now we are three but all posts in their free time.<br />
The last post I have done took 3 man days.<br />
So we will do our best <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.droidnova.com/droidnova-will-be-moved-to-another-server,500.html/comment-page-1#comment-332</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 22 Sep 2009 09:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.droidnova.com/?p=500#comment-332</guid>
		<description>Nice :) 

Does this also mean the next tutorial will be online faster? :P</description>
		<content:encoded><![CDATA[<p>Nice <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Does this also mean the next tutorial will be online faster? <img src='http://www.droidnova.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

