Android-dev.it Community

 
Annunci

:arrow: Benvenuto!, se non sei ancora un utente registrato: puoi registrati qui, oppure effettua il login
:arrow: Apri un forum sul tuo nuovo smartphone Android e collabora con noi! (dettagli)

www.agendadigitale.org
Image


Sponsor
It is currently Thu May 24, 2012 5:01 pm

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts Applicazione per gestire SMS

by filippo729 on Thu May 24, 2012 2:56 pm in Sviluppo e programmazione in Android

2

31

Thu May 24, 2012 2:56 pm

filippo729

No new posts На интернет-витрине

by popowahgjfghjoiuyt on Sat May 19, 2012 2:25 pm in Amministrazione

0

19

Sat May 19, 2012 2:25 pm

popowahgjfghjoiuyt

No new posts Apri un forum sul tuo nuovo smartphone Android!

[ Go to page: 1, 2, 3 ]

by ReattileGar on Fri May 18, 2012 5:27 pm in Amministrazione

27

12571

Fri May 18, 2012 5:27 pm

ReattileGar

No new posts Новый: базы для хрумера - профессиональный софт для СЕО.

by Renatafe on Fri May 18, 2012 3:14 pm in Amministrazione

0

27

Fri May 18, 2012 3:14 pm

Renatafe

No new posts Pace is undoubtedly the vital affordable Jerseys Wholesale d

by barnettmmolive2012 on Wed May 16, 2012 7:36 am in Amministrazione

1

49

Wed May 16, 2012 7:36 am

barnettmmolive2012




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: uso di un DataBase "esterno"
PostPosted: Mon Mar 28, 2011 10:04 am 
Offline
User avatar

Joined: Sat Feb 19, 2011 12:16 pm
Posts: 22
Punti Android: ?
Ecco il mio problema:

L'utente deve poter inserire un overlay toccando un punto della mappa.
Il dato dell'overlay così creato dagli utenti, deve essere scritto in un database che
da un lato si aggiorna di volta in volta dei nuovi dati inseriti dagli utenti
e dall'altro essere letto dall'app al fine di una consultazione sulla mappa di tutti i dati fino a quel momento inseriti.

Ho eseguito i seguenti passi:
- Per aggiungere l'overlay quando l'utente tocca un punto, ho usato il metodo onTouchEvent(MotionEvent motionEvent, MapView mapView)
- Ho trovato l'x e l'y del motionEvent
- trasformato in latitudine e longitudine tramite una Projection
- Creato un Geopoint usando latitudine e longitudine trovate
- Creato un OverlayItem dal Geopoint.
- Ho aggiunto l'overlay all'arrayList di overlayItem che contiene tutti gli overlay.

Nel database dovrei salvare le informazioni che mi servono che l'utente inserisca, e, come riferimenti, la latitudine e la longitudine.
la mia applicazione deve funzionare da più cellulari di utenti differenti (ogni utente accede dal suo cell alla applicazione)
ciascun utente inserirà i suoi overlay che dovranno essere memorizzati in un database esterno (connesso a internet suppongo)

come faccio?


Top
 Profile  
 
 Post subject: Re: uso di un DataBase "esterno"
PostPosted: Sat Apr 23, 2011 6:57 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
La tua App deve chiamare un webservice che deve essere implementato nel sito Web che gestisce il database.
Leggiti gli altri post che trovi nel forum sui web services oppure cerca qualche tutorial per iniziare...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

All trademarks and logos used in this site are of properties of their respective owners.