how to copy sms to SIM?

Put your problem here if it does not fit any of the other categories.

how to copy sms to SIM?

Postby ksp » Tue Mar 11, 2008 12:07 pm

I tried copying sms to SIM using the following method.But the method return false.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. boolean cpy=getSmsInterface().copyMessageToSimEf(status1, pd, smadd);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


I tried to get the SIM through the following code:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. private static ISms getSmsInterface() throws DeadObjectException
  3.  
  4.         {
  5.  
  6. android.os.IServiceManager sm = android.os.ServiceManagerNative.getDefault();
  7.  
  8.                 IBinder ismsBinder = sm.getService( "isms" );
  9.  
  10.                 ISms ss;
  11.  
  12.                 ss  = ISms.Stub.asInterface( ismsBinder);
  13.  
  14.                 return ss;
  15.  
  16. }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4


Can anyone help me out?
Thanks in advance.
ksp
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Feb 28, 2008 12:50 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests