Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-24 Thread Rajan Thakrar
Just go through this URL

http://developer.android.com/training/index.html

On Thu, Aug 23, 2012 at 11:45 PM, siddharth sharma <
siddharth.ind...@gmail.com> wrote:

> friends i am new here, and please help me, i just want to know which
> tool's and programming  is essential for developing and android app/
>
>
> On Thu, Aug 23, 2012 at 11:38 PM, TreKing  wrote:
>
>> On Thu, Aug 23, 2012 at 2:03 AM, Rajan Thakrar wrote:
>>
>>> can you please provide some code snippet, so i can understand.
>>
>>
>> There is a section in the documentation on finding the user's location.
>> Read it, learn it, love it.
>>
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
.

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

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-24 Thread siddharth sharma
friends i am new here, and please help me, i just want to know which tool's
and programming  is essential for developing and android app/

On Thu, Aug 23, 2012 at 11:38 PM, TreKing  wrote:

> On Thu, Aug 23, 2012 at 2:03 AM, Rajan Thakrar wrote:
>
>> can you please provide some code snippet, so i can understand.
>
>
> There is a section in the documentation on finding the user's location.
> Read it, learn it, love it.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-23 Thread TreKing
On Thu, Aug 23, 2012 at 2:03 AM, Rajan Thakrar wrote:

> can you please provide some code snippet, so i can understand.


There is a section in the documentation on finding the user's location.
Read it, learn it, love it.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-23 Thread Rajan Thakrar
first of all you have to find latitude and longitude for both the cities:
--
Example :
--

City1

latitude  : 24.2525697
longitude : 89.9240492

City2

latitude : 24.6081436
longitude : 90.0250385

ok , then according to math formula you can able to find distance between
two cities.

For Math formula Plz refer this url :
http://www.movable-type.co.uk/scripts/latlong.html

And ya you can also find latitude & longitude for any particular city
through Google query string.




On Thu, Aug 23, 2012 at 4:15 PM, sree android
wrote:

> hai friends how can find distance between tow cities in my app,help me plz
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
.

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

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-23 Thread sree android
hai friends how can find distance between tow cities in my app,help me plz

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

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-23 Thread Rajan Thakrar
can you please provide some code snippet, so i can understand.

B'cos without using

Location location =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

this line of code
how can i get the latitude and longitude ?

(Note : I don't want to use getLastKnownLocation() method)

Thank you.

On Wed, Aug 22, 2012 at 7:52 PM, TreKing  wrote:

> On Wed, Aug 22, 2012 at 2:17 AM, Rajan  wrote:
>
>> i want accurate & refreshed location detail every time (means, @ App
>> start time, @ App resume time, @ restart time etc.)
>>
>> how it is possible?
>>
>
> Use the GPS provider and wait patiently for it to find the user's
> location, handling the cases when it takes a long time or fails completely.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
.

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

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 2:17 AM, Rajan  wrote:

> i want accurate & refreshed location detail every time (means, @ App start
> time, @ App resume time, @ restart time etc.)
>
> how it is possible?
>

Use the GPS provider and wait patiently for it to find the user's location,
handling the cases when it takes a long time or fails completely.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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