sms

where can i find sms.db file in my iphone using iPhone app

醉酒当歌 提交于 2019-12-13 07:16:11
问题 I have requirement that is i need to read sms message using in my iphone app. I know this only possible in jailbroken iPhone. My iPhone also jailbroken device. but i not able to get sms.db file. where can i find sms database can any one help me, give me some sample source code. 回答1: sms.db file is located in /private/var/mobile/Library/SMS/sms.db. You can simply access it through any favorite program (such as iPhone Explorer) and browse to this location. Sample Code : NSString* path = @"/var

Android SMS not working

筅森魡賤 提交于 2019-12-13 07:00:41
问题 Below is my code for sending a SMS message. My phone number is 614xxxxxxx. I try typing +1614xxxxxxx or 1614xxxxxxx or 614xxxxxxx for the number and some text for the message. No error shows up but my phone cannot get the message? protected void sendMessage(){ String number=no.getText().toString(); String message=msg.getText().toString(); SmsManager manager=SmsManager.getDefault(); manager.sendTextMessage(number, null, message, null, null); } 回答1: The call you are making is right. Did you add

How to select more contacts from my contact list to send an sms

寵の児 提交于 2019-12-13 06:07:12
问题 Right now i am able to select only one contact from my contacts in my phone,i want to send sms more person in my contact list ,how can i send. Right now i cant add more contacts in the phone no edit text even in manually also and getting from contact list also. I want to send more contact number in my contact list to send an sms.what can i do public class SendSMSActivity extends Activity { Button buttonSend,get; private static final int CONTACT_PICKER_RESULT = 1001; EditText phoneNo; EditText

SMS Popup: AlertDialog does not show as I get a SMS message

限于喜欢 提交于 2019-12-13 05:39:02
问题 I see a lot of applications that do SMS popups. Why can't I get my app working? If a SMS message comes in, I would like it to popup on the screen. Here's my code: public class NotifySMSReceived extends Activity { private static final String LOG_TAG = "SMSReceiver"; public static final int NOTIFICATION_ID_RECEIVED = 0x1221; static final String ACTION = "android.provider.Telephony.SMS_RECEIVED"; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

How to send sms or make phone call on a real android device from PC?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:38:25
问题 Trying to figure out is it possible to send sms or make phone call from PC to a real device. I know how to do it using an Emulator. tty localhost port... Does real device got a port? I just started learning Android stuff.So, thx for helping ^_^! 回答1: One way to communicate between a PC and a phone would be if they were both on the same local network, perhaps both connected to the same WiFi router. When I've had to do this in the past I've looked in my router control panel to see the IP

adb shell am broadcast - BroadcastReceiver throws nullpointer

杀马特。学长 韩版系。学妹 提交于 2019-12-13 05:10:01
问题 I'm trying to launch this command: adb shell am broadcast -a android.provider.Telephony.SMS_RECEIVED --es sms_body "TEXTTEXTTEXT" -n com.example.name/.receivers.SmsReceiver And this code throws null pointer exception: public class SmsReceiver extends BroadcastReceiver { ... private Context mContext; private Intent mIntent; public void onReceive(Context context, Intent intent) { mContext = context; mIntent = intent; String action = intent.getAction(); if (action.equals(Const.ACTION_SMS

Send SMS with STM32l152 and SIM900

為{幸葍}努か 提交于 2019-12-13 05:03:32
问题 I send the SMS "Hello World", but on my cellular I get this message ATAT+CMGS="xxxxxx">HelloWorld instead. What can be causing this? void controlAT() { clearString(); wait_ms(100); SIM900.printf("AT\r"); wait_ms(1000); if(result=="\r\nOK\r\n") { pc.printf("\r\n----OK AT----\r\n"); }else { pc.printf("-- ERROR AT --"); } pc.printf("%s",result.c_str()); } /*send SMS */ void sendSMS_Raw() { clearString(); SIM900.printf("AT+CMGS="); SIM900.printf("\""); SIM900.printf("+xxxxxxxxxxxxx"); SIM900

How to optimize sms background service for battery and resources

喜你入骨 提交于 2019-12-13 04:58:59
问题 I have an app in store, and a few users said that the app uses either too much battery, or it his hig mb in resources(10 or 20mb+). In my device its fine and on a few devices if seen it its fine. I use an sms broadcast receiver to read all the incomming sms, and if i see any message i want to process i read it etc. So basically the service needs to run all the time so i dont lose any message that might come. Is there a way to optimize this or to make the code lighter if its possible so that

SMS listener make some application force close

旧街凉风 提交于 2019-12-13 04:42:42
问题 I'm creating at the moment a SMS Broadcast Receiver. I also use GoSMS in my phone. The problems is: if i dont set android:priority or set value less than 2147483647 (this is GoSms's priority) for my receiver, i cannot receive the message. When i set android:priority ="2147483647" , my app can receive the message but, some application in my phone have been force close: 08-01 17:52:47.775: E/AndroidRuntime(3501): FATAL EXCEPTION: main 08-01 17:52:47.775: E/AndroidRuntime(3501): java.lang

Android ICS not receiving data sms

北战南征 提交于 2019-12-13 04:19:48
问题 My application has a static broadcast receiver that listens to specific data sms on port 50011 to wake up the application and run. I tested the app on a wide range of android devices (android 2.1 -> android 2.3.4) and it is working perfectly. However, I am trying it now on Samsung Galaxy Nexus running Android 4.0.2 and it is failing to receive the binary sms. The OS doesn't seem to consume that SMS as it is not showing any relevant messages in logcat. Is anyone familiar with that issue? Here