i used this code to delete sms but it is not working & not showing any error.
Code:
this.getContentResolver().delete(Uri.parse("content://sms/" + cur.getLong(0)), null, null);
any idea to delete SMS from non default sms app?????
Related
Hi all,
i m sending SMS by using
Code:
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
its working fine and successfully send a standard sms that is automatically saved in recipient mobile inbox.
i want send the sms as flash(notification) sms by this,that message should be displayed immediately on recipient mobile screen but not stored.
please tell me how can i do this.
thanks in advance.
Hy, did u find how to do that?
I'm interested too.
Thanke you.
for flash sms
[email protected] said:
Hi all,
i m sending SMS by using
Code:
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
its working fine and successfully send a standard sms that is automatically saved in recipient mobile inbox.
i want send the sms as flash(notification) sms by this,that message should be displayed immediately on recipient mobile screen but not stored.
please tell me how can i do this.
thanks in advance.
Click to expand...
Click to collapse
Hey guy
use whozzat apk.
it allow Daily 100 flash sms and normal sms free.
just sign in with facebook id.
[email protected] said:
Hi all,
i m sending SMS by using
Code:
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
its working fine and successfully send a standard sms that is automatically saved in recipient mobile inbox.
i want send the sms as flash(notification) sms by this,that message should be displayed immediately on recipient mobile screen but not stored.
please tell me how can i do this.
thanks in advance.
Click to expand...
Click to collapse
Try this application, i found labelled Flash SMS from my old collection, I have not tried
please tell me what function or api use for this.
I'm also interested to have a app to send flash sms (class 0 sms). The above app does not work in my HTC desire (miui rom)
spykar69 said:
Hey guy
use whozzat apk.
it allow Daily 100 flash sms and normal sms free.
just sign in with facebook id.
Click to expand...
Click to collapse
Could you please make this thing clear to us?
Signed up and confirmed my number, how can I send sth. now? Is there an .apk for phone?
I use "flash sms for HTC" from the market, it work fine for me
https://market.android.com/details?id=com.jomegasoft.flashsms
Is it possible that we can use tasker as a private SMS tool
e.g.
When a SMS from a certain contact arrives it moves the SMS to some other file or hidden location and delete that SMS from inbox.
and do the same for sent SMS to that contact.
May be copy the SMS to another then decrypt/encrypt it.
Is it possible via tasker?
No idea where to put this, admin; feel free to move or delete.
There's a lot of really cool custom theming going on with Android and an often important part of that is the visual indication of missed phone calls, new messages, new mail, etc. (unread bubbles next to app icons, in lockscreens, etc.). There's a host of solutions to get this info but for me e-mail counts had always been a bit of a issue. Missed phone calls are tracked by the Android system, and WhatsApp notifications can be counted from the notification bar with Tasker and reset when you open the app because your phone is the only place where you will check your WhatsApp messages. E-mail however is not centralized in Android (yet) so if you use anything else than Gmail the system won't know how many unread mails you have and you could uee a notification counter on your mail app but when a new email arrives it will put the counter on +1, if you then read the e-mail on another device (for example your computer) your notification counter on your phone will still be on +1 even though you read the mail.You then have to open your mail app to get the counter back to 0 again.
That why I made this PHP / Tasker solution for my IMAP mail. This is a PHP script that checks how many unread mails there are in your inbox:
PHP:
<?php
function mailCount($host, $login, $passwd) {
$mbox = imap_open($host, $login, $passwd);
$mail = '';
if($mail = imap_check($mbox)) {
$msgnos = imap_search($mbox, 'UNSEEN');
return $msgnos;
}
}
$hostname = '{imap.yourhost.com:143/imap}INBOX';
$username = 'your_username';
$password = 'your_password';
$count = mailCount($hostname, $username, $password);
if ($count != "") $number = sizeof($count);
else $number = 0;
echo $number;
Change yourhost, your_username and your_password and the port (143). (if you want to, add some extra security by doing IP or Cookie checks), put the PHP file online on your server. The script will then simply show a number of unread mails in your inbox.
Then you can use Tasker to read this number. Add a tasks (for example CheckMailCount) then add the action Net > HTTP Get. For 'Serverort' fill in the url of your script (http://www.yourserver.com/unreadmail.php) and set the Mime Type to 'text/*'. Then in the same task add an action Variables > Variable Set. Give the variable a Name (for example: %MAILCOUNT) and set it To %HTTPD. This will set the %MAILCOUNT variable to the result of the last http Get request ie. the number of unread mails.
You now have a tasker variable with the actual number of unread mails in your inbox.
I use this on my WidgetLocker lockscreen so I trigger the task on Event > Display > On. I added a third action in the CheckMailCount action to set a Zooper Variable (Plugin > Zooper Widget Pro >Edit > ZW Variable = MAILNOTI, ZW Text = %MAILCOUNT) you could also make this %HTTPD straight away if you don't use the variable for anything else. You then have the #TMAILNOTI# variable in Zooper to use to display how many unread mails you have in a widget. I don't use the count but I display a mail icon indicating that I have a new mail if the #TMAILNOTI# is anything but 0. I do this by adding a bitmap in Zooper of a mail icon and then in Avanced Parameters I put
$#TMAILNOTI#=0?/sdcard/icons/nomail.png$
This tells Zooper that if the variable #TMAILNOTI# = 0 it should use the bitmap nomail.png in my icons folder on the sd card. nomail.png in my case is simply an empty transparent png.
Hope this helps somebody!
nielshtc said:
No idea where to put this, admin; feel free to move or delete.
There's a lot of really cool custom theming going on with Android and an often important part of that is the visual indication of missed phone calls, new messages, new mail, etc. (unread bubbles next to app icons, in lockscreens, etc.). There's a host of solutions to get this info but for me e-mail counts had always been a bit of a issue. Missed phone calls are tracked by the Android system, and WhatsApp notifications can be counted from the notification bar with Tasker and reset when you open the app because your phone is the only place where you will check your WhatsApp messages. E-mail however is not centralized in Android (yet) so if you use anything else than Gmail the system won't know how many unread mails you have and you could uee a notification counter on your mail app but when a new email arrives it will put the counter on +1, if you then read the e-mail on another device (for example your computer) your notification counter on your phone will still be on +1 even though you read the mail.You then have to open your mail app to get the counter back to 0 again.
That why I made this PHP / Tasker solution for my IMAP mail. This is a PHP script that checks how many unread mails there are in your inbox:
PHP:
<?php
function mailCount($host, $login, $passwd) {
$mbox = imap_open($host, $login, $passwd);
$mail = '';
if($mail = imap_check($mbox)) {
$msgnos = imap_search($mbox, 'UNSEEN');
return $msgnos;
}
}
$hostname = '{imap.yourhost.com:143/imap}INBOX';
$username = 'your_username';
$password = 'your_password';
$count = mailCount($hostname, $username, $password);
if ($count != "") $number = sizeof($count);
else $number = 0;
echo $number;
Change yourhost, your_username and your_password and the port (143). (if you want to, add some extra security by doing IP or Cookie checks), put the PHP file online on your server. The script will then simply show a number of unread mails in your inbox.
Then you can use Tasker to read this number. Add a tasks (for example CheckMailCount) then add the action Net > HTTP Get. For 'Serverort' fill in the url of your script (http://www.yourserver.com/unreadmail.php) and set the Mime Type to 'text/*'. Then in the same task add an action Variables > Variable Set. Give the variable a Name (for example: %MAILCOUNT) and set it To %HTTPD. This will set the %MAILCOUNT variable to the result of the last http Get request ie. the number of unread mails.
You now have a tasker variable with the actual number of unread mails in your inbox.
I use this on my WidgetLocker lockscreen so I trigger the task on Event > Display > On. I added a third action in the CheckMailCount action to set a Zooper Variable (Plugin > Zooper Widget Pro >Edit > ZW Variable = MAILNOTI, ZW Text = %MAILCOUNT) you could also make this %HTTPD straight away if you don't use the variable for anything else. You then have the #TMAILNOTI# variable in Zooper to use to display how many unread mails you have in a widget. I don't use the count but I display a mail icon indicating that I have a new mail if the #TMAILNOTI# is anything but 0. I do this by adding a bitmap in Zooper of a mail icon and then in Avanced Parameters I put
$#TMAILNOTI#=0?/sdcard/icons/nomail.png$
This tells Zooper that if the variable #TMAILNOTI# = 0 it should use the bitmap nomail.png in my icons folder on the sd card. nomail.png in my case is simply an empty transparent png.
Hope this helps somebody!
Click to expand...
Click to collapse
This looks way to confusing but I get it a little bit... lets say I want to use UCCW tasker variable option to show the counts...:silly:
Pixel 2 Running Android 8.1 with March security update, Build# OPM1.171019.021
Using Magisk v 14.2 - works perfectly
Default SMS app is Android (Google) messages, I also have following SMS related apps installed:
Textra, Titanium Backup, SMS Backup & Restore; all have the correct permission in settings (SMS, storage).
In settings the only app that is displayed as an option for SMS is Google Messages, I can't switch to SMS Backup & Restore to restore messages or to Textra, which I've used previously.
I'd like to restore some SMS that I have backed up and switch back to Textra, but that's impossible if I can't choose a different SMS app as the default.
Hey!kevin said:
Pixel 2 Running Android 8.1 with March security update, Build# OPM1.171019.021
Using Magisk v 14.2 - works perfectly
Default SMS app is Android (Google) messages, I also have following SMS related apps installed:
Textra, Titanium Backup, SMS Backup & Restore; all have the correct permission in settings (SMS, storage).
In settings the only app that is displayed as an option for SMS is Google Messages, I can't switch to SMS Backup & Restore to restore messages or to Textra, which I've used previously.
I'd like to restore some SMS that I have backed up and switch back to Textra, but that's impossible if I can't choose a different SMS app as the default.
Click to expand...
Click to collapse
What happens when you open textra and just click use as default sms?
When you open textra and select "make default app" it opens the settings window for default SMS app, but textra is NOT a choice, only Google Messages is, so in effect, nothing happens, Google Messages remains the default SMS app
jayb222 said:
What happens when you open textra and just click use as default sms?
Click to expand...
Click to collapse
When you open textra and select "make default app" it opens the settings window for default SMS app, but textra is NOT a choice, only Google Messages is, so in effect, nothing happens, Google Messages remains the default SMS app
No issues on P, can't speak to 8.1
Default App Manager works in 8.1. (I only have Gallery and Hangouts, but I can choose either one.) It's under Messages.
Problem solved, I uninstalled all sms apps, then reinstalled them, now they show up as alternative sms apps.
hi,
usually i use textra for my sms/mms, i choose it by default and it 's good.
but with the x50 pro, it is impossible. I run textra in I choose it as the default messaging application and each time I receive an SMS, I have this message: "the system messaging app has been set as the default messaging app to ensure your messages are secure"
in settings, application management, default application, messages: I only have the system application messages. other sms applications do not appear.
how to do?
Seems strange. I use textra too and in my default app settings it shows sms set as textra..
I'm on the RMX2075eu A.32.... Rom.
I can only guess that the rom has something to do with it?
yes, i think because it's the 2071 cn. i had installed the 2076 rom and i had textra in default app setting (but unable to update the rom so I went back to the original rom)