[android-beginners] Re: Calculating distance between GPS position and way_point

2010-05-21 Thread ckloch
Thank you for your input.
I have tried using it but it seems to be more challenging than
expected.

I am importíng android.location.location and then trying the line
float results [] = distanceBetween(lat_a1, lng_a1, lat_b1, lng_b1);
where lat_a1, lng_a1, lat_b1 and lng_b1 have all been converted to
double (I am using them as float earlier in my program).
The values of lat_a1 and lat_b1 equals the GPS coordinates read using
location.getLatitude(); and location.getLongitude();

My problem is that I get the error message:
The method distanceBetween(double, double, double, double) is
undefined for the type new LocationListener(){}
and I don't know how to interprete it.

Furthermore, I will be very thankful is you can help me by reading the
time, and timedifference between a number of readings, as I need the
timedifference to estimate an average speed over a distance travelled.

Thank you for your help
ckloch



I understand all the input parameters, but what about the output
float results[]
Does it mean that I can write the line

distanceBetween(double startLatitude, double startLongitude, double
endLatitude, double endLongitude, float[] results);


Does it mean that if I enter the command

On 20 Maj, 20:13, TreKing treking...@gmail.com wrote:
 On Thu, May 20, 2010 at 6:21 AM, ckloch htc.kl...@hotmail.com wrote:
  Please, let me know how I can solve this problem. I believe that there must
  be easier way to calculate this distance, but I have found any.

 Try 
 this:http://developer.android.com/intl/fr/reference/android/location/Locat...,
 double, double, double, float[])

 ---­--
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow 
 athttp://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Google's global quick search widget missing in Android 2.2

2010-05-21 Thread And-Rider
I was unable to find the google's search widget on the home screen
neither on the the list of available widgets.If i click menu from the
home screen and if i press search nothing happens.

I could neither find an option called Search in settings page from
where i could enable my application in searchable items.The issue is
we have enabled Global search for our application and previously if
used to show search results from my application if i search here.

I tested this in a stimulator and i am yet to test it on a device.

Has it been removed in 2.2?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Android Program

2010-05-21 Thread neo
Hi guys ..I'm a beginner in android ..i want to know how to run the
program that i built on my Android System.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Android Program

2010-05-21 Thread Justin Anderson
http://developer.android.com/guide/developing/device.html

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Fri, May 21, 2010 at 8:37 AM, neo jichu...@gmail.com wrote:

 Hi guys ..I'm a beginner in android ..i want to know how to run the
 program that i built on my Android System.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Calculating distance between GPS position and way_point

2010-05-21 Thread TreKing
On Fri, May 21, 2010 at 7:25 AM, ckloch htc.kl...@hotmail.com wrote:

 I am importíng android.location.location and then trying the line float
 results [] = distanceBetween(lat_a1, lng_a1, lat_b1, lng_b1);


Well that doesn't make sense since it doesn't match the function
signature...


 My problem is that I get the error message: The method
 distanceBetween(double, double, double, double) is undefined for the type
 new LocationListener(){} and I don't know how to interprete it.


This means exactly what it says - that the method you're using,
distanceBetween, is not defined for the type for which you're trying to use
it.

You use it like this:
float[] results = new float[1]; // 1, 2 or 3 depending on what information
you want
Location.distanceBetween(lat1, lon1, lat2, lon2, results);
float distance = results[0];



 Furthermore, I will be very thankful is you can help me by reading
 the time, and timedifference between a number of readings, as I need
 the timedifference to estimate an average speed over a distance travelled.


I have no idea what you're asking.


 I understand all the input parameters, but what about the output float
 results[] Does it mean that I can write the line

 distanceBetween(double startLatitude, double startLongitude, double
 endLatitude, double endLongitude, float[] results);


See above.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Problems with Google Map View tutorial

2010-05-21 Thread AZ Golfer
Thanks Dave, I will look into the LogCat window and see what it says
there.  I will look in the list of apps as well to see if the Google
Map View is listed.  The other tutorials just launch when running
through the Eclipse IDE, and this one didn't.

On May 20, 5:44 pm, davemac davemac...@gmail.com wrote:
 An installed app won't show up on the Home screen, but it should show
 up in the sliding drawer of applications. Did you look there? As to
 why it doesn't seem to launch in the emulator when you started it,
 it's hard to tell. I recommend looking in the LogCat window to see
 what's reported there. Could be a permissions problem.

 - davewww.androidbook.com

 On May 20, 2:44 pm, AZ Golfer sethw...@gmail.com wrote:



  Hello,

  The tutorials are very helpful at:  
  http://developer.android.com/resources/index.html

  I am having an issue with the Hello Views - Google Map View that I
  cannot seem to resolve.  When I run the project, it seems to install
  on the AVD but it doesn't actually start the Activity on the device.
  It just installs and says Done!  I am using Eclipse with the plugin
  and the Google AVD.

  [2010-05-13 13:44:01 - HelloGoogleMaps] Device API version is 7
  (Android 2.1)
  [2010-05-13 13:44:01 - HelloGoogleMaps] Uploading HelloGoogleMaps.apk
  onto device 'emulator-5554'
  [2010-05-13 13:44:01 - HelloGoogleMaps] Installing
  HelloGoogleMaps.apk...
  [2010-05-13 13:44:05 - HelloGoogleMaps] Success!
  [2010-05-13 13:44:05 - HelloGoogleMaps] \HelloGoogleMaps\bin
  \HelloGoogleMaps.apk installed on device
  [2010-05-13 13:44:05 - HelloGoogleMaps] Done!

  Since I could not resolve this, I created a new project and followed a
  different tutorial on the same subject and got it working, so I know
  I'm using the correct google maps api key.  I could just move forward
  with what I have that's working, but the engineer in me can't stand
  that I don't know why my first attempt did not work.

  I have looked through the manifest, the layout, and the java source
  code and I can't figure it out.  The AVD says that the app is
  installed on the phone, when I go to manage the Applications in
  Settings, however it doesn't show up on the home screen with all the
  other installed apps.

  Can anyone offer suggestions?

  Thank you!

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow 
  athttp://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-beginners?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow 
 athttp://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Android Emulator Internet Setting

2010-05-21 Thread David Turner
The -http-proxy option was fixed in the emulator binary that comes with SDK
2.2 (it was only broken on Windows, for the record).

On Thu, May 20, 2010 at 8:52 AM, Ali Murtaza mralimurt...@gmail.com wrote:

 The system is using proxy to connect the internet. I have tried to set the
 proxy by running query

 android-sdk-windows/tools adb.exe shell sqlite3
 /data/data/com.google.android.providers/setting/databases/setting.db INSERT
 INTO System values(111, 'http_proxy','ipaddress:portno');
 then press enter
 no msg display

 and after this i got still no connection

 please help me further


 On Thu, May 20, 2010 at 7:02 PM, Kaustubh Padegaonkar 
 thetuxra...@gmail.com wrote:

 You really dont need to do anything. The emulator should pick up your
 internat connection automatically. although you might wanna load up the
 emulator *after* you connect to the internet.

 Kaustubh Padegaonkar,
 thetuxra...@gmail.com


 On Tue, May 18, 2010 at 3:00 PM, Ali Murtaza mralimurt...@gmail.comwrote:

 I am using android 2.0 and in this i am unable to connect the internet,
 the main confusion is that the 3G sign can be see on the status bar.
 Please help me I am really unable to set it, define me all steps.

 In attach picture, it is screen shot of my emulator when i am run google
 simple browser on it.
 please help me


 --
 Ali Murtaza

 BCSF06M021
 Research Assistant
 Data Virtulization Ware House
 PUCIT, Lahore, Pakistan
 ali.murt...@pucit.edu.pk

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




 --
 Ali Murtaza

 BCSF06M021
 Research Assistant
 Data Virtulization Ware House
 PUCIT, Lahore, Pakistan
 ali.murt...@pucit.edu.pk

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Finger swipe in Android API level 3 (OS 1.5) ?

2010-05-21 Thread Justin Anderson
It is admittedly difficult to get it to work in 1.5...

I have implemented it for my app on the market (AppSwipe!) but it was not
easy.  It might be a day or two before I have a chance to sit down and look
at my code but as soon as I can, I will post something here to at least
point you in the right direction.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, May 18, 2010 at 11:58 AM, Chris Ross
cross+goo...@distal.comcross%2bgoo...@distal.com
 wrote:


  Hi there.  When searching for information about how to code up recognition
 of a finger swipe across the screen, I find most references to the Gesture
 API added in API level 4 (OS 1.6).  However, there are still quite a few
 devices (The HTC Droid Eris, for example.  And the ole G1.) that are running
 1.5.

  The rest of my app is working just fine requiring only API level 3, but I
 would like to add swipe recognition.  The home screens on the
 afore-mentioned OS 1.5 devices detect swipes to go across pages, so it must
 be possible in there somewhere.  It is just that it's really hard before the
 API level 4 Gesture code came in, or is it really effectively not possible?

  Can anyone tell me how to detect swipes (just a directional swipe left or
 right across the screen) in OS 1.5 (API  level 3, or below) ?

  Thanks...

  - Chris


 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en