[android-beginners] Re: How to show the position in a MapView in SDK 1.

2008-11-14 Thread psaltamontes
I have found the answer. There is a class MyLocationOverlay to show the user's location. On 11 nov, 18:54, psaltamontes <[EMAIL PROTECTED]> wrote: > Hi, > > I show the user's current location but I don't like how I do it. > > I use an overlay that always is

[android-beginners] Re: How to show the position in a MapView in SDK 1.

2008-11-11 Thread psaltamontes
because if I use the functions of the MapView getHeight() and getWidth() they return zero, why? (I use fill_parent in the attributes into AndroidManifest.xml) There is another way to show the user's current location? On 7 nov, 20:55, psaltamontes <[EMAIL PROTECTED]> wrote: > Thank

[android-beginners] Re: How to show the position in a MapView in SDK 1.

2008-11-07 Thread psaltamontes
r. I read the documentation but I don't find what I do wrong. In SDK 1, I need an "special" overlay to do this? On 7 nov, 19:41, Mark Murphy <[EMAIL PROTECTED]> wrote: > psaltamontes wrote: > > Hi. > > > How I can show the position (with the little circle)

[android-beginners] How to show the position in a MapView in SDK 1.

2008-11-07 Thread psaltamontes
Hi. How I can show the position (with the little circle) in a MapView in SDK 1? There is a function similar to toggleShowMyLocation?. I need to use an overlay for this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-beginners] Re: Open a database from another application.

2008-07-15 Thread psaltamontes
It works. I have read the information about content providers and have done a content provider using then Notepad example. http://code.google.com/android/samples/NotePad/src/com/google/android/notepad/NotePadProvider.html Thanks. On 2 jul, 20:13, psaltamontes <[EMAIL PROTECTED]>

[android-beginners] Re: Open a database from another application.

2008-07-02 Thread psaltamontes
t seems like its localizing the first argument. > > On Jul 1, 1:11 pm, psaltamontes <[EMAIL PROTECTED]> wrote: > > > Hi. > > > Is possible open a database from another application which doesn't > > create this database?. > > > I try from the ap

[android-beginners] Open a database from another application.

2008-07-01 Thread psaltamontes
Hi. Is possible open a database from another application which doesn't create this database?. I try from the application that doesn't create the database: path_database = "/data/data/umem.uab/databases/datos_generales.db"; data_base = openDatabase(path_database, null); I receive the exception

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

2008-06-17 Thread psaltamontes
> I don't know what the "... option" is. If you need specific help with > TourIt, please contact me off-list. Sorry, I have been confused. I wanted to say that when I select Show list option I see a white screen. I load the velo location provider but the list is empty. I suppose that when I sele

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

2008-06-17 Thread psaltamontes
> Are you sure you are calling removeProximityAlert() with the exact same > Intent object as you used with the corresponding addProximityAlert()? Yes, I use the same Intent object. To be sure, I have added a boolean extra (alert_activated) to the intent. When the intentReceiver receives the first

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

2008-06-16 Thread psaltamontes
Hi, I tried to do what you said me and other things, but I have problems that I cannot solve. I tried to do yours steps but... I had some errors. > 1. If it is not there already, use registerIntentReceiver() as I described > above, so it is controlled by the parent activity (in fact, it may wor

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

2008-06-03 Thread psaltamontes
After several tests, finally I can start an activity when an alert is fired. I have used the example code from openintents. To achieve start an activity I have add into AndroidManifest.xml : InformationClas

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

2008-05-30 Thread psaltamontes
> That could be from several dozen (or hundred) alert dialogs. Try switching > to android.util.Log and see if that clears up the problem. To avoid java.lang.OutOfMemoryError I use a boolean variable to check wether the problem is that you are thinking... class ProximityIntentReceiver extends

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

2008-05-29 Thread psaltamontes
I have done some modifications to my code, following your indications. I have created a new class, ProximityIntentReceiver to receive the PROXIMITY_ALERT action . class ProximityIntentReceiver extends IntentReceiver { @Override public void onReceiveIntent(Context context,

[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] Mock GPS and proximity alerts.

2008-05-27 Thread psaltamontes
Hi, I have problems with proximity alerts. I'm doing a demo application with the mock GPS. The proximity alerts works with the mock GPS?, someone has tried it?. There is some way to test where I am wrong?. I'm using SDK M5, there is something strange?. Buff..., a lot of questions :). --~--~-