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 Tue May 22, 2012 7:53 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

12

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

12514

Fri May 18, 2012 5:27 pm

ReattileGar

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

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

0

17

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

47

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  [ 3 posts ] 
Author Message
 Post subject: Come scrivere un SMS sulla inbox tramite righe di codice
PostPosted: Mon Dec 27, 2010 1:01 am 
Offline
User avatar

Joined: Mon Dec 27, 2010 12:48 am
Posts: 3
Cellulare Android: HTC Legend
Operatore: 3
Punti Android: ?
scusate il titolo in inglese ma non sarei riuscito a esprimere il concetto in una riga in italiano.
Quello che vorrei fare è simulare la ricezione di un sms.
Praticamente devo prelevare il contenuto delle nuove mail in entrata da un account email specifico; creare un nuovo messaggio sms con lo stesso contenuto della mail appena arrivata; spostare questo messaggio nella inbox degli sms e segnarlo come non letto.

In questo modo quando ricevo una mail specifica ho il suo contenuto anche nella cartella dei messaggi sms.

È possibile? Mi suggerite qualche link o tutorial? Grazie in anticipo!


Last edited by Verix on Tue Dec 28, 2010 11:14 pm, edited 1 time in total.
Titolo cambiato


Top
 Profile  
 
 Post subject: Re:Come scrivere un SMS sulla inbox tramite righe di codice
PostPosted: Tue Dec 28, 2010 11:11 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,
per scrivere un SMS sulla inbox puoi prendere spunto dallo snippet di codice che ti riporto sotto, però non so se risulta come "da leggere" oppure no (temo di no...)

Code:
ContentValues values = new ContentValues();
values.put("address", "123456789");
values.put("body", "corpo del messaggio");
getContentResolver().insert(Uri.parse("content://sms/inbox"), values);


Top
 Profile  
 
 Post subject: Re: Come scrivere un SMS sulla inbox tramite righe di codice
PostPosted: Thu Dec 30, 2010 4:57 pm 
Offline
User avatar

Joined: Mon Dec 27, 2010 12:48 am
Posts: 3
Cellulare Android: HTC Legend
Operatore: 3
Punti Android: ?
grazie per la dritta ;)


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 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.