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 Wed May 23, 2012 8:05 am

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts На интернет-витрине

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

0

14

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

12539

Fri May 18, 2012 5:27 pm

ReattileGar

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

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

0

22

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

48

Wed May 16, 2012 7:36 am

barnettmmolive2012

No new posts Problema di compatibilità app

by deran on Tue May 15, 2012 10:44 am in Sviluppo e programmazione in Android

4

200

Tue May 15, 2012 10:44 am

deran




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: help dialog e service
PostPosted: Mon Mar 28, 2011 6:09 pm 
Offline
User avatar

Joined: Mon Mar 28, 2011 4:50 pm
Posts: 1
Cellulare Android: HTC Wildfire
Punti Android: ?
Ciao, sono nuovo del mondo android. Ho da poco iniziato a programmare e vorrei sapere come posso fare per mostrare un dialog quando si verifica una certa azione (ad esempio la ricezione di un messaggio). Avevo pensato a un service che ad una determinata azione mostra un dialog ma nisba. Come potrei fare? :a11:


Top
 Profile  
 
 Post subject: Re: help dialog e service
PostPosted: Sat Apr 23, 2011 6:39 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Ciao,
se per ricezione di un messaggio intendi un SMS, devi considerare che quando arriva un SMS Android lancia l'evento di sistema "android.provider.Telephony.SMS_RECEIVED". Basta quindi implementare un IntentReceiver che monitora questo intent e che può mostrare una finestra di dialogo.

Ricorda che nel Manifest.xml devi settare il permesso specifico per poter gestire questo intent:
Code:
<uses-permission android:name="android.permission.RECEIVE_SMS" />


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.