how to check status after sending SMS text message

by sori » Sat, 01 Nov 2008 08:38:02 GMT


Sponsored Links
 I use SmsManager.sendTxtMessage() to transmit text message.
Somehow, I feel it's not that reliable, dropping some messages on T-
mobile G1.
Or the messages may be delayed too long on network status.

Is there any way to check status after transmitting?
If a message is not sent successfully, I'd like to give notification
to users.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. SimpleCursorAdapter and ListView.setTextFilterEnabled()

I want to display all contacts with a phone number in a list. I got
the data, it is displayed in the list but my problem is that I can't
get the text filter functionality to work. E.g. when the user types
'fre' it should filter out all entries not containing 'fre'.

This is what I've got in the ListActivity.onCreate()

[syntax="java"]
Cursor c = this.getContentResolver().query(People.CONTENT_URI,
                new String[] { People._ID, People.DISPLAY_NAME },
                People.PRIMARY_PHONE_ID + " IS NOT NULL",
                null,
                People.DISPLAY_NAME + " asc");
this.startManagingCursor(c);

SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
                android.R.layout.simple_list_item_1,
                c,
                new String[] { People.DISPLAY_NAME },
                new int[] { android.R.id.text1 });
adapter.setStringConversionColumn(adapter.getCursor().getColumnIndex
(People.DISPLAY_NAME));
adapter.bindView(getListView(), this, c);
setListAdapter(adapter);
this.getListView().setTextFilterEnabled(true);
[/syntax]
--~--~---------~--~----~------------~-------~--~----~

2. Context problem (or at least I think it is)

Hi!

I have a tabbed application that is displaying some content, but I
would like to check if the user is logged in to a system and if he is
not, i have to display a certain web page.

Now, the problem is that I have packed all the login code in a class
(lets call it login) and now I have to call it to run the check
method. It would be the best if I'd be able to check that before I
even load the tabs.

How (and where) am I supposed to run the login check so I can:
- access the data in R class (strings...)
- change the view (i have to use webview so I can display the login
webpage)
- access a db adapter

at the moment, I call the class inside a tab like this:

Login login = new Login();
if( login.check() == true )
{
setContentView(R.layout.tab_view);
}

now I know this is rong and naturally the whole application crashes.

Thanks for all the help! ;)

--~--~---------~--~----~------------~-------~--~----~

3. How to scale android:drawableTop/drawableBottom horizontaly in a TextView to fill parent?

4. Email client setup on the Emulator

5. Supported video formats

6. How to scale android:drawableTop/drawableBottom in a TextView to fill parent?

7. Need some info about non us/uk developers