title: Is it possible to have SEND-SMS AND RECEIVE_SMS uses permissions in a single project?
body: <p>good day to all. 
  I am fairly new to android development. Your responses on this issue will highly appreciated.</p>
  
  <p>In my project I have to receive and send sms. For receiving part, I am using a Broadcast Receiver and for sending part I use a normal Activity. Here the Broadcast Receiver receives the sms and transfer some data to the Activity I just mentioned. Then activity perform some tasks and produce some results. I need those results to be sent as an sms. </p>
  
  <p>I have used SEND_SMS and RECEIVE_SMS uses permissions in the manifest file. But this application gives me an exception on the emulator. But when I tested sending part and receiving part in 2 separate projects, it's working fine without any exceptions. So I guess there is nothing wrong with the code (or logic). 
  Now, why this exception is thrown? Is it possible to have SEND_SMS and RECEIVE_SMS uses permission withing a same project(same manifest) ?
  I have used SmsManager to send sms.
  Your response will be highly appreciated.</p>
  
  <p>Here is the LogCat details:</p>
  
  <pre><code>11-22 12:26:00.355: ERROR/Zygote(33): setreuid() failed. errno: 2
  11-22 12:26:09.295: ERROR/Zygote(33): setreuid() failed. errno: 17
  11-22 12:26:11.125: ERROR/BatteryService(66): usbOnlinePath not found
  11-22 12:26:11.125: ERROR/BatteryService(66): batteryVoltagePath not found
  11-22 12:26:11.125: ERROR/BatteryService(66): batteryTemperaturePath not found
  11-22 12:26:11.155: ERROR/SurfaceFlinger(66): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
  11-22 12:26:32.497: ERROR/EventHub(66): could not get driver version for /dev/input/mouse0, Not a typewriter
  11-22 12:26:32.605: ERROR/EventHub(66): could not get driver version for /dev/input/mice, Not a typewriter
  11-22 12:26:33.756: ERROR/System(66): Failure starting core service
  11-22 12:26:33.756: ERROR/System(66): java.lang.SecurityException
  11-22 12:26:33.756: ERROR/System(66):     at android.os.BinderProxy.transact(Native Method)
  11-22 12:26:33.756: ERROR/System(66):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
  11-22 12:26:33.756: ERROR/System(66):     at android.os.ServiceManager.addService(ServiceManager.java:72)
  11-22 12:26:33.756: ERROR/System(66):     at com.android.server.ServerThread.run(SystemServer.java:184)
  11-22 12:26:38.805: ERROR/SoundPool(66): error loading /system/media/audio/ui/Effect_Tick.ogg
  11-22 12:26:38.815: ERROR/SoundPool(66): error loading /system/media/audio/ui/KeypressStandard.ogg
  11-22 12:26:38.815: ERROR/SoundPool(66): error loading /system/media/audio/ui/KeypressSpacebar.ogg
  11-22 12:26:38.825: ERROR/SoundPool(66): error loading /system/media/audio/ui/KeypressDelete.ogg
  11-22 12:26:39.035: ERROR/SoundPool(66): error loading /system/media/audio/ui/KeypressReturn.ogg
  11-22 12:26:50.545: ERROR/ThrottleService(66): Could not open GPS configuration file /etc/gps.conf
  11-22 12:26:57.865: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
  11-22 12:26:57.995: ERROR/logwrapper(152): executing /system/bin/tc failed: No such file or directory
  11-22 12:26:58.005: ERROR/logwrapper(153): executing /system/bin/tc failed: No such file or directory
  11-22 12:27:12.875: ERROR/ActivityManager(66): ANR in com.android.settings
  11-22 12:27:12.875: ERROR/ActivityManager(66): Reason: Broadcast of Intent { act=android.intent.action.CLOSE_SYSTEM_DIALOGS cmp=com.android.settings/.widget.SettingsAppWidgetProvider (has extras) }
  11-22 12:27:12.875: ERROR/ActivityManager(66): Load: 2.93 / 0.78 / 0.26
  11-22 12:27:12.875: ERROR/ActivityManager(66): CPU usage from 10994ms to 2618ms ago:
  11-22 12:27:12.875: ERROR/ActivityManager(66):   ronsoft.openwnn: 209% = 122% user + 86% kernel / faults: 3908 minor 5 major
  11-22 12:27:12.875: ERROR/ActivityManager(66):   m.android.phone: 168% = 84% user + 84% kernel / faults: 3177 minor 7 major
  11-22 12:27:12.875: ERROR/ActivityManager(66):   system_server: 150% = 118% user + 31% kernel / faults: 428 minor 3 major
  11-22 12:27:12.875: ERROR/ActivityManager(66):   ndroid.launcher: 118% = 65% user + 52% kernel / faults: 2921 minor 3 major
  11-22 12:27:12.875: ERROR/ActivityManager(66):   ndroid.settings: 118% = 47% user + 70% kernel / faults: 2956 minor 7 major
  11-22 12:27:12.875: ERROR/ActivityManager(66):   bootanimation: 18% = 15% user + 2% kernel
  11-22 12:27:12.875: ERROR/ActivityManager(66):   app_process: 13% = 9% user + 4% kernel / faults: 241 minor
  11-22 12:27:12.875: ERROR/ActivityManager(66):   adbd: 11% = 0% user + 11% kernel
  11-22 12:27:12.875: ERROR/ActivityManager(66): TOTAL: 100% = 70% user + 29% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66): ANR in jp.co.omronsoft.openwnn
  11-22 12:27:22.035: ERROR/ActivityManager(66): Reason: Executing service jp.co.omronsoft.openwnn/.OpenWnnJAJP
  11-22 12:27:22.035: ERROR/ActivityManager(66): Load: 3.31 / 0.94 / 0.32
  11-22 12:27:22.035: ERROR/ActivityManager(66): CPU usage from 10962ms to 1406ms ago:
  11-22 12:27:22.035: ERROR/ActivityManager(66):   system_server: 47% = 34% user + 12% kernel / faults: 511 minor
  11-22 12:27:22.035: ERROR/ActivityManager(66):   app_process: 15% = 14% user + 1% kernel / faults: 420 minor
  11-22 12:27:22.035: ERROR/ActivityManager(66):   ronsoft.openwnn: 9% = 7% user + 1% kernel / faults: 394 minor
  11-22 12:27:22.035: ERROR/ActivityManager(66):   ndroid.launcher: 9% = 6% user + 2% kernel / faults: 741 minor
  11-22 12:27:22.035: ERROR/ActivityManager(66):   bootanimation: 6% = 5% user + 0% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66):   m.android.phone: 6% = 4% user + 1% kernel / faults: 267 minor
  11-22 12:27:22.035: ERROR/ActivityManager(66):   adbd: 1% = 0% user + 0% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66):   logcat: 1% = 0% user + 0% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66):   events/0: 0% = 0% user + 0% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66):   servicemanager: 0% = 0% user + 0% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66):  -ndroid.settings: 0% = 0% user + 0% kernel
  11-22 12:27:22.035: ERROR/ActivityManager(66): TOTAL: 100% = 75% user + 25% kernel
  11-22 12:27:33.342: ERROR/HierarchicalStateMachine(66): TetherMaster - unhandledMessage: msg.what=3
  </code></pre>