No Contact Issue found And Fixed

There was an error being thrown if you have no contacts to pull in the phone.  That is now fixed.

java.lang.RuntimeException: An error occured while executing doInBackground()
  at android.os.AsyncTask$3.done(AsyncTask.java:200)
  at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
  at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
  at java.util.concurrent.FutureTask.run(FutureTask.java:137)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
  at java.lang.Thread.run(Thread.java:1096)
Caused by: java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()
  at android.os.Handler.<init>(Handler.java:121)
  at android.widget.Toast.<init>(Toast.java:68)
  at android.widget.Toast.makeText(Toast.java:231)
  at com.SMSSenderFree.activity.SMSSender$ContactLoader.doInBackground(SMSSender.java:598)
  at com.SMSSenderFree.activity.SMSSender$ContactLoader.doInBackground(SMSSender.java:1)
  at android.os.AsyncTask$2.call(AsyncTask.java:185)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
  at java.util.concurrent.FutureTask.run(FutureTask.java:137)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
  at java.lang.Thread.run(Thread.java:1096)

First issue found with the freeware

It seems that not all numbers are supported within the freeware.  Although I tested a 3 number number and blank number I’m working to see what kind of number threw this error when the app tries to strip the special characters out to compare the number to the contact number.


java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:200)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1102)
Caused by: java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1579)
at com.SMSSenderFree.activity.SMSSender.stripPhoneNumber(SMSSender.java:277)

at com.SMSSenderFree.activity.SMSSender.access$8(SMSSender.java:272)
at com.SMSSenderFree.activity.SMSSender$ContactLoader.doInBackground(SMSSender.java:611)
at com.SMSSenderFree.activity.SMSSender$ContactLoader.doInBackground(SMSSender.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
… 4 more

SMS Mailer version 1.0  is up on the android market today.  Its an app that will allow you to email your sms messages to any email account you wish.  You can filter by contact, dates, and types of messages (sent recieved etc).

Real Life Solutions Android Development

 Welcome to the RLS android dev blog.  All update notes will be posted for all applications here.

Follow

Get every new post delivered to your Inbox.