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 3:57 pm

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

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

12569

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 Attachment(s) Google Maps navigator for Europe! (DREAM/MAGIC 32B) NEW!

[ Go to page: 1, 2, 3 ]

by barnettmmolive2012 on Wed May 16, 2012 7:40 am in Progetti e applicazioni per Android

27

4145

Wed May 16, 2012 7:40 am

barnettmmolive2012

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  [ 1 post ] 
Author Message
 Post subject: SMSManager - Problema
PostPosted: Tue May 24, 2011 12:24 pm 
Offline
User avatar

Joined: Sat May 21, 2011 9:53 am
Posts: 3
Cellulare Android: Samsung i5800 Galaxy mini
Operatore: Wind
Punti Android: ?
Salve a tutti,
ho un problema con il SMSManager di Android. Quando provo a fare una funzione che semplicemente mandi un SMS dall'interno della mia app., pur non avendo ne errori ne Warning, una volta compilato ed eseguito nell'emulatore mi restituisce il seguente errore:

SORRY
The application xxx has stopped unexpectly. Please try again

Andando per esclusione ho trovato che il codice che mi da errore è il seguente:
Code:
       
       PendingIntent sentPI = PendingIntent.getBroadcast(this, 0,
                new Intent(SENT), 0);
       PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,
                new Intent(DELIVERED), 0);

SmsManager sms = SmsManager.getDefault();
         sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);



A seguito il risultato della console.
Code:
[2011-05-24 19:16:07 - iTracker] Android Launch!
[2011-05-24 19:16:07 - iTracker] adb is running normally.
[2011-05-24 19:16:07 - iTracker] Performing com.example.helloandroid.MyActivity activity launch
[2011-05-24 19:16:07 - iTracker] Automatic Target Mode: Preferred AVD 'my_Device1' is available on emulator 'emulator-5554'
[2011-05-24 19:16:09 - iTracker] Application already deployed. No need to reinstall.
[2011-05-24 19:16:09 - iTracker] Starting activity com.example.helloandroid.MyActivity on device emulator-5554
[2011-05-24 19:16:11 - iTracker] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.MyActivity }


Questo è il mio manifest:

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.helloandroid"
      android:versionCode="1"
      android:versionName="1.0">


    <application android:label="@string/app_name" android:icon="@drawable/mlogo" >
        <activity android:name=".MyActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
    <receiver android:name=".SmsReceiver">
            <intent-filter>
                <action android:name=
                    "android.provider.Telephony.SMS_RECEIVED" />
            </intent-filter>
        </receiver>


    <uses-sdk android:minSdkVersion="8" />
</manifest>


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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.