[android-beginners] How to move the calculations of one class to a separate class and return the results

2010-02-16 Thread ckloch
It is great to see that there is a group for Android beginners. I am trying to get some experience with Android. One of the things I have tried doing most of the day is call a class. Currently, the program is doing fine with only one class, but it will be great to move the calculation part to a

[android-beginners] How to create a table that can be read by Android

2010-02-16 Thread ckloch
Dear All, I am about to create a table with integers and float. The content of the table should later be read by an application. Therefore I am very curious if I can simply make a table using commaseparation in a .xml file, e.g. Row 1: 1,2,3,4,5 Row 2: 3,1,6,5,7 Row 3: 5,4,3,6,9 and so forth?

[android-beginners] how to read integers from a string

2010-02-16 Thread ckloch
Dear all, I hope that you can help me. Currently, I am reading the content of a small txt-file containing the following rows (the first number in the rows is the row number): 1,1,2,2,4 2,1,4,5,6 3,5,6,7,8 So far, I read each row as a string. Therefore, I am looking for a way to read the

[android-beginners] List providers - does it work for Android 1.5?

2010-03-29 Thread ckloch
In my effort to develop a small location finder app for HTC Hero with Android 1.5, I am using the code below that should work on Android 1.6. My problem is that includes the commandline to find the available GPS satelittes: List providers; Eclipse tells me that I have to parameterize List, but

[android-beginners] Re: List providers - does it work for Android 1.5?

2010-03-31 Thread ckloch
on your switches. If you use Eclipse, just hover over your error/warning and you will get options on how to fix it. Also Ctrl+1 to get the options. BR, Adrian Vintuhttp://adrianvintu.com On Mon, Mar 29, 2010 at 3:08 PM, ckloch ckl...@gmail.com wrote: In my effort to develop a small

[android-beginners] How can I find out if I read the GPS signal

2010-04-07 Thread ckloch
As part of an application for registrer whether a vehicle can pass the next traffic light without having stop for red light, I am trying to get the GPS Location. So far I have tried the code below, but the HTC Tattoo telephone keeps stopping the application. The reason is that the List providers

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

2010-05-20 Thread ckloch
any success 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. I am looking forward to your help. best Regards ckloch -- You received this message because you are subscribed to the Google Groups Android

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

2010-05-21 Thread ckloch
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

[android-beginners] How to set the length of what is presented by Toast.maketext()

2010-06-02 Thread ckloch
Regards ckloch -- 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

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

2010-06-02 Thread ckloch
according to Googlemaps). The GPS coordinates are read as 55.6579399,12.2684776 The calculated distance is 239 m But what do the different options 1, 2 and 3 in float[] results = new float[1] refer to ? Best Regards ckloch On 21 Maj, 18:03, TreKing treking...@gmail.com wrote: On Fri, May 21, 2010

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

2010-06-03 Thread ckloch
be straightforward, but I would really appreciate some help on this. Thank you patience ckloch On 2 Jun., 18:33, TreKing treking...@gmail.com wrote: On Wed, Jun 2, 2010 at 7:07 AM, ckloch htc.kl...@hotmail.com wrote: But what do the different options 1, 2 and 3 in float[] results = new float[1] refer

[android-beginners] how to change colours in a .xml defined layout in run time

2010-06-16 Thread ckloch
be other and better ways to implement this than .xml I would appreciate your help; Best regards ckloch -- 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

[android-beginners] Re: WQVGA not respecting android:layout_height=fill_parent for layout.

2010-06-17 Thread ckloch
in inches/mm to fill the entire width of the screen, or are there other ways to do? Thank you for your help ckloch On 14 Maj, 19:18, Stormtap Studios r...@stormtapstudios.com wrote: Ok, that makes sense for 1.6+ devices.  What will happen on small screen devices like QVGA-P and QVGA-L running

[android-beginners] How comes that the estimate time becomes negative

2010-06-22 Thread ckloch
distance_1 radius and counter_L are fulfilled. These conditions are fulfilled when I call gpspos(). 3) time=location.getTime() is the GPS clock. 4) double spend_time_1_sec = (time - initial_time); determines the time spend since I called gpspos(). Thank you for your time and help CKLOCH public

[android-beginners] Re: how to change colours in a .xml defined layout in run time

2010-08-06 Thread ckloch
Thank you very much for your input I have solved the problem and the application is now ready for trial. best regards ckloch On 23 Jun., 17:38, TreKing treking...@gmail.com wrote: On Wed, Jun 16, 2010 at 6:55 AM, ckloch htc.kl...@hotmail.com wrote: In theory it seems to be easy, but I would

[android-beginners] Re: How comes that the estimate time becomes negative

2010-08-06 Thread ckloch
Dear all, I have solved my problem, so the issue below is no logner relevant Thank you for all the great input I have got in this forum best regards CKLOCH On 22 Jun., 11:25, ckloch htc.kl...@hotmail.com wrote: Dear all, I have developed a small app that helps the driver to regulate his

[android-beginners] Re: WQVGA not respecting android:layout_height=fill_parent for layout.

2010-08-06 Thread ckloch
I have got some support on this and my problem is now solved both on Android 1.5 and 2.1 Best regards ckloch On 17 Jun., 20:41, ckloch htc.kl...@hotmail.com wrote: Thanks for this inspiring contribtion. I have just ran in to the same problem with a HTC Hero Android 1.5 By using