sms

Listening to outgoing sms not working android

倾然丶 夕夏残阳落幕 提交于 2019-12-12 13:29:20
问题 I am trying to listen to outgoing sms messages. I was following the accepted answer here but it is not working. I'm not sure where I am going wrong. I am no familiar at all with Content Observers so forgive my ignorance. I wanted to create it in a service so it would be running all the time. here is my code in that service: import android.app.Service; import android.content.ContentResolver; import android.content.Intent; import android.database.ContentObserver; import android.database.Cursor;

Google SMS Retriever API not retreiving SMS messages

戏子无情 提交于 2019-12-12 12:14:50
问题 I'm trying to use Google's SMS Retriever API for Automatic SMS Verification. I have followed the directions here but my app is not receiving any SMS messages. Here is what I've done: I've added the code in my activity to start the SMS retriever client: val client = SmsRetriever.getClient(this) val retriever = client.startSmsRetriever() retriever.addOnSuccessListener { Log.i("loginActivity", "started smsretriever") } retriever.addOnFailureListener { //Problem to start listener } From the logs,

Is SMS the only way to register with Google App Engine?

倖福魔咒の 提交于 2019-12-12 11:35:37
问题 I don't have a cell phone, but Google App Engine needs an SMS message to verify the account. Is there another way to complete the registration? I'm surprised they don't use a Gmail account to do this. Edit : Google created one for me, problem solved. 回答1: No. If you don't have a way to receive SMS, you can fill out the SMS issues form to have an account created for you. 回答2: You could sign up with any web based sms service that enables you to receive sms via virtual phone numbers. The first

Generated 11 char hash code is not working after google app signing is enabled

我们两清 提交于 2019-12-12 11:33:08
问题 I am trying to implement Sms Retriever for fetching an otp from user mobile without having any SMS permission. Initially, I have generated a hash key with the keystore(.jks) by using keytool as described here when I signed the apk with this keystore and received the SMS with this hashkey, it is working properly. But After uploaded the app to google play store, the SMS receiver is not working .we have enabled google app signing to sign the app. I found that Google will remove the uploaded

Receiving in app SMS messages only from certain specified numbers

和自甴很熟 提交于 2019-12-12 10:08:34
问题 I've recently set up an app that will receive sms messages and then display them as a toast on the main activity. Once the app has received an SMS it will abort broadcast and stop the message from going into the inbox. Currently it does this with all messages that the phone receives but I would like it to only carry out its job and display the toast when an SMS is received by a specific number. I know that it is a case of putting an if statement into my receiver code but I'm not too sure

Unable to receive SMS receive broadcast on Galaxy SIII running 4.1.1

霸气de小男生 提交于 2019-12-12 09:27:51
问题 I have this problem only on Samsung Galaxy SIII running Android 4.1.1. There is no problem on Samsung Galaxy Ace and Samsung Galaxy Y. The broadcast SMS received is not firing up, when SMS is received. No other SMS app is installed on the phone. I am using the following code to receive the SMS broadcast smsReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "Inside onReceive of smsReceiver"); Bundle bundle = intent.getExtras();

How to start an activity on a certain time?

我是研究僧i 提交于 2019-12-12 09:24:28
问题 This question might be related to this and this question, but unlike those question I want to start them on a specific time, (say 11:12:13 on 15/03/2014). I am actually working on a project (SMS) that sends messages on a given time. 回答1: try this code, I tested it: First: Create a calendar: Calendar calendar = Calendar.getInstance(); And set time by one of this ways: calendar.set(year, month, day, hourOfDay, minute); // be careful month start form "0" so for "May" put "4" or: calendar.set

How to send SMS from the Android app without making its record in device SMS view?

╄→гoц情女王★ 提交于 2019-12-12 08:30:42
问题 I want to send an SMS from my android app. But I don't want its record to be exist in device message view. I am currently using below code. sendSMS(etsendernumber.getText().toString(), etmessagebody.getText().toString()); sendintent = new Intent(Intent.ACTION_VIEW); sendintent.putExtra("sms_body",""); sendintent.setType("vnd.android-dir/mms-sms"); startActivity(sendintent); But it is making sent sms record in message view of the device. Can we send a secret sms from android application?

Why would sendTextMessage require READ_PHONE_STATE permission?

和自甴很熟 提交于 2019-12-12 08:26:30
问题 My app sent home this stack trace which seems as though something very wrong is going on under the hood. phone_model=SKY IM-A630K, android_version=2.1-update1 java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10089 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1218) at android.os.Parcel.readException(Parcel.java:1206) at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getLine1Number(IPhoneSubInfo.java:223

android.provider.Telephony.SMS_RECEIVED not available

99封情书 提交于 2019-12-12 07:18:37
问题 I'm trying to create a new SMS receive listner. I have googled the problem and all I found was it requires android.provider.Telephony.SMS_RECEIVED but it doesnt exist in android 2.2 how to listen to new incoming messages is my question.! 回答1: You are looking for android.provider.Telephony.SMS_RECEIVED_ACTION that corresponds to string value android.provider.Telephony.SMS_RECEIVED. public static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED"; Check out this