[android-beginners] Re: Mock GPS and proximity alerts.

2008-05-28 Thread Mark Murphy
psaltamontes wrote: > I have put to the end of the onCreate function the code to add the > proximity alert: > > myLocationManager.addProximityAlert(LATITUDE_ALERT, > LONGITUDE_ALERT, RADIUS_ALERT, EXPIRATION_ALERT, new > Intent(this,alertClass.class)); > [ alertClass is a simple Activi

[android-beginners] Re: Mock GPS and proximity alerts.

2008-05-28 Thread psaltamontes
Thanks Mark, I visited a few days ago the anddev forum but I didn't see the TrackBuilder example. I have modified the TrackBuilder code: I have put to the end of the onCreate function the code to add the proximity alert: myLocationManager.addProximityAlert(LATITUDE_ALERT, LONGITUDE_ALER

[android-beginners] hi Friends i want to add Button

2008-05-28 Thread [EMAIL PROTECTED]
Hi Friends i Want to add Button. So i written xml code but following error occur. and new xml file is not creater i use eclipse for develop application. so sent me idea about this queries. xml code and error Error like "No Resources found that matches the given name (at "text" wi

[android-beginners] Re: How to get the maximum value of an attribute in a table

2008-05-28 Thread scorpio
thanks mark, somehow managed.. Nithin On May 28, 7:18 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > scorpio wrote: > > but here, the return value is an integer, but for > > Sqlitedatabase.query() its returning cursor, so how can we get the > > integer value. > > http://tinyurl.com/3wop4x > > H

[android-beginners] Re: How to get the maximum value of an attribute in a table

2008-05-28 Thread Mark Murphy
scorpio wrote: > but here, the return value is an integer, but for > Sqlitedatabase.query() its returning cursor, so how can we get the > integer value. http://tinyurl.com/3wop4x Hint: you might want to look at first() and getInt(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android

[android-beginners] Re: How to get the maximum value of an attribute in a table

2008-05-28 Thread scorpio
hi Mark, but here, the return value is an integer, but for Sqlitedatabase.query() its returning cursor, so how can we get the integer value. thanks Nithin On May 28, 6:21 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > scorpio wrote: > > Hi all, > > > how we can get the maximum value of an attribut

[android-beginners] Re: How to get the maximum value of an attribute in a table

2008-05-28 Thread Mark Murphy
scorpio wrote: > Hi all, > > how we can get the maximum value of an attribute in a table, in > terminal , i checked and its working, > > the query is->select max(key) from Testing; > > but how we can do this in Android. Try SQLiteDatabase#rawQuery(), as documented on the Androi

[android-beginners] How to get the maximum value of an attribute in a table

2008-05-28 Thread scorpio
Hi all, how we can get the maximum value of an attribute in a table, in terminal , i checked and its working, the query is->select max(key) from Testing; but how we can do this in Android. please reply immediately Thanks Nithin --~--~-~--~~~---~--~

[android-beginners] Re: KeyEvent function

2008-05-28 Thread Mark Murphy
Yatish wrote: > I want to execute some action after specific key is pressed. onKeyDown() and onKeyUp() are available on Activity and all widgets. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch in September! http://www.bignerdranch.com --~--~-~--~---

[android-beginners] KeyEvent function

2008-05-28 Thread Yatish
Hi all , I want to execute some action after specific key is pressed. So please suggest me solun. Thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to a