[HELP] Need Advice For Android App Concept - Android Q&A, Help & Troubleshooting

Hi guys! I am a noob with android development (but I'm trying to learn :fingers-crossed
So I want to build an SMS application, I have read articles/tutorials but I'm afraid that most of them have become outdated/deprecated.
I am not trying to build a commercial application, just a personal project I'd like to try out.
Here's my concept, I want to be able to let the phone send SMS without user interaction, the catch is that it would only do so if the phone receives an SMS from a certain number. I am trying to do this on a 5.0+ device.
Example Scenario:
1. Phone receives SMS Trigger from NumberA. Message: "IT3 No Class Today"
2. Phone sends SMS to NumberX, NumberY and NumberZ. Message:"No Class Today"
(Number list is from "IT3" code from step 1)
3. Rinse and repeat.
I have read all about setting it as default SMS application and the permissions and have most of the fundamentals working. However I can't figure out a way to intercept the Incoming SMS, read its contents, parse it and compose a new message, send to numbers based on code -- all from the background automatically. Is this doable or not?

That may not be doable due to security protocols. Once you swap over as the default app that will take care of intercepting the SMS. The rest would be a huge security issue if it could be done.

Related

saving multiple drafts to same person in android

Hi,
There's something I'd like to do on my samsung galaxy note that I was able to do on my Symbian-based device in the past, but I can't figure out how to do it under Android.
I'd like to save multiple SMS drafts per recipient. However, my Galaxy note 2 only seems to permit me to save one SMS draft per recipient, with each subsequent draft overwriting the previous draft for that same recipient.
Here's why I'd like to have this capability:
If I want to type a long SMS to someone (more than 160 characters), what I like to do is split the message at logical places such as after commas, sentence endings, etc. I would do this by getting close to the end of a given SMS message and then stopping it at the point that I choose, saving it as a draft, and then continuing my text in a new SMS starting at the beginning of the next sentence, phrase, etc. Then, once the set of drafts is completed, I will first proofread and make corrections in the entire group of drafts, and only then will I manually send them off, one after the other.
Yes, I know I can type a long message and the SMS app will automatically split it into pieces after 160 characters, but that often splits words or breaks sentences and phrases in places that I don't want them broken.
Here's how I try to accomplish this on my G1:
Invoke the Messaging app.
Select New Message.
Select recipient.
Compose first SMS.
Select the Back key (draft 1 gets saved).
Select New Message.
Select same recipient as before.
Compose second SMS.
Select the Back key (draft 2 gets saved).
However, at this point, draft 1 has been overwritten by draft 2. In other words, only draft 2 remains.
Can anyone think of a way for me to accomplish what I want (or at least something similar) on my samsung galaxy note 2?
Thanks in advance.
no one ??
This isn't possible in the stock messaging app. You can use GO SMS Pro or Handcent SMS, which allow you to create folders and save messages in them just like in Symbian. So you can save parts of the long message in a folder and send them one by one. I like to use the stock messaging app in my devices though, so the way I do this is to type out the message till the limit, copy it and paste it in a note taking app, then copy it back to the messaging app when I need to send it. In ICS and JellyBean, when you select a bunch of text to copy, you get a share button to directly share it by SMS and other stuff. So it's very easy and doesn't involve copy-pasting twice. I just select, share, done. I find this to take the same number of steps and be just as easy as saving to a folder and sending. If you must do it that way, then one of the above apps should be right for you.
I regularly send long messages, sometimes even 10-15 messages long if I'm copy-pasting some stuff from the internet to someone, but I've never experienced your problem or messages breaking up and missing content. They just reach the recipient as one big message. Although, this behaviour is dependent on the mobile network provider, so I can't speak for yours. But I have never seen this happen with any GSM provider I'm my country. I'm guessing yours must be CDMA?
Sent from my Desire HD using xda premium
Could you please tell me which note taking app you use with ics thank you in advance. Tom
This is merely a work-around for how to work on multiple drafts to a recipient. First add your name and mobile device phone # to your Contacts List. Refine your first draft as thoroughly as possible. Then address that message to your own mobile device phone #, and send it. You'll see that message twice, as both your "Sent" & your "Received" message. Your first draft is "parked" in your mobile device's phone #. Now you can work on your next draft, as you would normally. If you decide to send your first draft to the recipient, just forward it from your mobile device's inbox!

[Q] Is it possible to force stock email to forward messages automatically?

I need to use an exchange email for school, and they have recently decided that you can only send/receive email through browsers or the stock email app. I like to have my various emails organized in one place, but they have blocked normal automatic forwarding (without any warning other than it simply not working) and POP/IMAP/SMTP access.
Manually forwarding individual emails is possible, but is it possible to automatically force the stock app to forward an email after receipt? I'm not very familiar with android, but from my understanding of the intent system, user input is necessary to continue, so sending intents from Tasker every few minutes would not work on it's own. Is that correct, and if so are there other viable options? Receiving is more important than sending, but later on I am also going to look into a similar outgoing system if possible. I assume they might be related.
I see that the source code for the stock email app is available here. Theoretically, would it be feasible to add this functionality myself (if I knew android) and repackage the app?

Dialer Picker

With the increasing number of secure and non-secure communications apps out there, and the variety of SMS/MMS, etc available, it would be great to have a way of specifying which app is used per contact entry to use.
For example, if you have a contact in your phone that only knows your Google Voice number, but not your real phone number, instead of trying to remember which number you gave him, you can specify either in an app, or the contacts list, that any time you call or text this person, it will use your Google Voice number automatically. Or, you are chatting with someone online and you want to use WhatsApp to communicate with them instead of Skype, or instead of Kik. Or, you want to have secure communications with a spouse with end-to-end encryption and want to use Signal instead of your default SMS app.
Does anyone know of an application that can do this, or a modification to make?

_APP_ is sending a large number of SMS messages. Do you want to allow this app to con

I am developing an android SMS sending app and is in stuck state due to a prompt being popped up always when i run my app. Message is given below. After pretty long search through web, there is no solution other than to root android phone to make it work. Now my question is, when google give an option like this as part of security(well it is very good), why there is no option to turn it off willingly by the phone user? Or is there any API where I can read the setting internally and adjust SMS send count based on that?
"_APP_ is sending a large number of SMS messages. Do you want to allow this app to continue sending messages?"
No there is no way to stop it. Also carriers have a similar setup going. They will block the messages if too many are sent in an amount of time. It is to prevent spamming.

Macrodroid Send SMS (which is not 100% reliable) alternatives that don't require UI Interaction (which has it's own issues)?

Hello,
I use/rely on Send SMS actions in multiple macros, throughout the macro stages to give me real time updates of what's happening in the Macros. It works fine for most parts.
The problem with some mobile carriers, specifically the one I use: Mint mobile (which is a MVNO on the T-Mobile network) that after sending many text messages, they might block you from sending new messages or put an invisible bottle neck so some text messages might arrive with a big delay or won't arrive at all. This makes it very unreliable and tricky as some "notification received" based triggers that you know that were supposed to trigger but didn't, so it's not entirely clear if it's because some legit issue with the notification not being received or identified by Macrodroid (yes, I know you can look at the macro logs) or just because your mobile carrier prevented you from receiving new text messages for a short duration.
All of this, is leading me to look for Send SMS alternatives (don't think Send Email is a good enough alternative as I want to receive notifications in my phone - And emails could suffer from the issues described above too) that don't require UI Interaction, and let me explain why: These are the main cons/issues with sending messages that require UI Interaction (for example Send WhatsApp message action that's being offered inside Macrodroid):
a.) If you have any macro that uses UI Interaction, and you want to send a message throughout the macro, because sending a message requires UI Interaction, this could break the existing flow of the macro as you need to be able to return to the same screen and state that you had before you had to send a message through UI Interaction.
b.) If you have multiple macros being triggered at the same time, and they all need to send messages, this will create a race condition - So what do you do? I don't think Macrodroid has a semaphore mechanism to prevent such case? As you basically need to make any existing macro to go to sleep, wait until the current macro that's using ui interaction to send a message finishes, before the ones that wait can continue in the same order they requested to send the message.
With that being said, are there any alternative ways (without rooting the phone) to send messages through 3rd party apps, without using UI Interaction?
Some methods to consider:
1.) Can you use the "send intent" action to tell an app to send a message to a certain user/phone without actually using UI Interaction? I know this could pose a security risk and it's unlikely to exist in any major big 3rd party messaging apps, but maybe smaller ones or ones that were created exactly for this purpose (such as MDHelper is using an older SDK to support certain actions that Macrodroid can't do)?
2.) Could you use some sort of APIs of certain big messaging apps, such as WhatsApp, Skype, Viber, Telegram, etc to send a message to a certain user/phone just by issuing some API call? Is there any support like that in Macrodroid to login to these services and then send messages (This is more Postman program level I suppose so might be a little out of scope)?
3.) Perhaps a more practical approach to avoid issues a & b, is simply not to use UI Interaction but simply send a message with the details (using send email or something like that - which again, as stated above, might not be 100% reliable) to another machine/phone that handles sending the messages, which is creating another point of failure, and could add some overhead/delay, so might not be the most ideal solution either.
Any other methods or alternatives that you know or could recommend?
Thank you.

Categories

Resources