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 2:16 pm

All times are UTC + 1 hour


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

by AresSieran on Thu May 24, 2012 12:40 pm in Sviluppo e programmazione in Android

1

25

Thu May 24, 2012 12:40 pm

AresSieran

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

12565

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  [ 3 posts ] 
Author Message
 Post subject: Richiamare L'Activity Chiamante
PostPosted: Sun Nov 06, 2011 12:56 pm 
Offline
User avatar

Joined: Sun Nov 06, 2011 12:45 pm
Posts: 1
Cellulare Android: HTC Wildfire
Punti Android: ?
Buon giorno a tutti, mi sono da poco avvicinato allo sviluppo di applicazioni su piattaforma Android e sono incappato su un problema da quale proprio non riesco ad uscire: in sostanza ho 2 Activity, nella prima viene scelta una voce da una lista; effettuata la scelta viene chiama la seconda Activity che invia un SMS. Il mio problema nasce proprio qui: quando la seconda Activity ha ultimato il suo lavoro vorrei che richiamasse quella principale ma non trovo nulla che faccia al caso mio.
Ho provato con l'uso di Intent ma il risultato non piace neanche un po'.

Spero riusciate ad aiutarmi.


Top
 Profile  
 
 Post subject: Re: Richiamare L'Activity Chiamante
PostPosted: Sun Nov 27, 2011 12:17 am 
Offline
User avatar

Joined: Mon Feb 07, 2011 4:14 pm
Posts: 11
Punti Android: ?
bastardboy87 wrote:
Buon giorno a tutti, mi sono da poco avvicinato allo sviluppo di applicazioni su piattaforma Android e sono incappato su un problema da quale proprio non riesco ad uscire: in sostanza ho 2 Activity, nella prima viene scelta una voce da una lista; effettuata la scelta viene chiama la seconda Activity che invia un SMS. Il mio problema nasce proprio qui: quando la seconda Activity ha ultimato il suo lavoro vorrei che richiamasse quella principale ma non trovo nulla che faccia al caso mio.
Ho provato con l'uso di Intent ma il risultato non piace neanche un po'.

Spero riusciate ad aiutarmi.


ma un semplice finish() non funziona?


Top
 Profile  
 
 Post subject: Re: Richiamare L'Activity Chiamante
PostPosted: Sun Nov 27, 2011 3:27 am 
Offline
User avatar

Joined: Fri Sep 16, 2011 2:09 pm
Posts: 2
Punti Android: ?
Ciao, ti propongo due soluzioni :

1) Non è necessario usare una seconda Activity per mandare un sms, potresti usare una Task Asincrona (AsyncTask) che viene avviata dalla prima e svolge il suo compito senza gravare sul main Thread. --> ***URLs are hidden from guests, please register and login to view the hyperlink***

2) Rimanendo sul tuo caso, la classe Activity fornisce un metodo, tale finish(), che permette di chiudere la activity correntemente visualizzata e farla ritornare al chiamate.

Contervis.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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.