Looking for a small App - Android Software Development

Hi there, i'm asking if there is a dev out there who can write me a small app, it's nothing special if you're into android apps but i cant do that myself.
Its should be a simple SMS parser for seperated ringtones.
pseudocode would be:
Code:
if (SMS.from = 123456) {
if (SMS.text has "RD-"){
play Soundfile "Alert" until a checkbox is clicked
}
if (SMS.text has "KTR-" or "KTx-"){
play Soundfile "Transport" until a checkbox is clicked
}
else{
play Soundfile "special sms tone"
}
the sender's number should be exchangeable and if its too hard to make the soundfiles changeable, i could upload it, but exchangeable sound and text would be great
if the app works, i'm willing to donate 10 bucks to you on paypal, i think 10 bucks should be enough since i rate that problem as easy, but i cant do a android app myself (only c/c++ knowledge)

You could try your hand at using App inventor to create it yourself.
http://appinventor.googlelabs.com

i tried it, but i couldnt get it to act on an sms recieved -.-

So if I read this correctly, you need 3 different executables: a BroadcastReceiver (for the SMS events), an Activity (to configure settings) and a Service launched by the broadcast receiver to play the alert and launch a popup. Sounds doable, but not as easy as your pseudo-code above.

arthofer said:
i tried it, but i couldnt get it to act on an sms recieved -.-
Click to expand...
Click to collapse
App inventor can't generate service.
So your app need to be active to receive SMS

Related

SMSHelper

My officemate made this application after we found out that it is almost impossible to send an SMS message while driving or walking. Since we were used to the cellular phone style of messaging, SMSHelper was made.
Copy the SMSHelper.exe to you \Windows\Start Menu and the SMSSettings.cfg to your \Windows directory.
When you first launch the application, go to File > Settings and set your country code and message type to Class 1. You can also enter a default recipient if you have a contact you often send to.
This is the first version so be please post any problems you encounter, have fun SMSing
thanks man.. will give it a try
Great Job so far, but a couple of problems so far:
Major: Everytime I send a message it fails "Message Failed! Network error (tried entering the number myself and it worked - so its a problem when sending from contacts).
Took awhile to find out how to space, might be nice to have a space button near the backspace.
Thanks, I have been waiting for a simple\easy SMS program.
Application is good, but I have 2 suggestions:
1. I have recorded contacts in my address book by using +48, but your application recognizes only 48 without +. In consequence, message sent by using contacts, is fails.
2. There will be better idea if your application is one of some kind of keyboard, user can chose from keyboard list. Then, message you sent will be record in sent items.
Greeting,
Yazzon
Ayos!
Great job bro!
So far so good. For my suggestions, I agree with Yazzon's.
1. Include this application as one of input options (e.g. keyboard, transcriber, etc..). i think it would require hacking of somekind, i dont really know, but I know you can do it, or your officemate can.
2. SMS should be saved in Sent Items folder after sending.
3. And most important of all, perhaps you could add a character counter somewhere.
Overall, its a great application. Bravo! Magaling talaga tayong mga Pinoys, naks, hehehe
Can I have one in Arabic version as the following...:
"0"
Space
"1"
Signs
"abc"
1:0x062f
2:0x0630
3:0x0631
4:0x0632
"def"
1:0x062c
2:0x062d
3:0x062e
"ghi"
1:0x0628
2:0x062a
3:0x0629
4:0x062b
"jkl"
1:0x0627
2:0x0623
3:0x0625
4:0x0622
5:0x0626
6:0x0624
7:0x0621
"mno"
1:0x0646
2:0x0647
3:0x0648
4:0x064a
5:0x0649
"pqrs"
1:0x0641
2:0x0642
3:0x0643
4:0x0644
5:0x0645
"tuv"
1:0x0637
2:0x0638
3:0x0639
4:0x063a
"wxyz"
1:0x0633
2:0x0634
3:0x0635
4:0x0636
Best regards,,,
...and another thing. Maybe you could change the character sequence of button 1, i think the appropriate first character should be "." period. And perhaps you could also add a feature like "Insert Number", it somehow comes handy at times. Thanks.
thanks for your feedback, i'll pass them to my officemate.
the contacts format works like this, if you use '0'+areacode+number to store your contacts, it omits the '0' and replaces it with a '+xxx' with xxx being the country code you enter in the settings.
if you already use a '+xxx' format, the application sends the message immediately. just make sure that you set your country code in the settings or your messages will fail because the default is +63.
the messages does not appear in the sent items because it does not use the POOM or Pocket Outlook.
this is just an alpha release major improvements will be added on the succeeding realeases.
Suggestion...
I think its good if the application makes a sound when a key is pressed. Also, close app button should be removed. Sent items and outbox support + reply directly to smshelper.
Im willing to help in the development is you are willing to share the codes.
~ishtangli
ishtangli said:
Suggestion...
I think its good if the application makes a sound when a key is pressed. Also, close app button should be removed. Sent items and outbox support + reply directly to smshelper.
Im willing to help in the development is you are willing to share the codes.
~ishtangli
Click to expand...
Click to collapse
Your other suggestions are good but a close button is the one thing missing in most PPC apps.
Forgot that im using SPB Pocket Plus...
~ishtangli

Text Viewer App Q

I am 'just' getting into app development, so be gentle...
I want to build a very very simple app that opens txt files from email; and then work on formatting them myself.
Do put it simply; I don't mind doing the research- but I'm 'so' green at this I'm not sure where to start.
Code:
TextView tv = new TextView(this);
tv.setText("Hello, Android");
I assume this is the code I need to research; TextView(filenamevariable.txt)?
My question is this; how do I make my app call and display raw text from any app; for example if I open a txt file in Astro, or from an email attachment- I want my app to be the 'opening app'; Also, I need to know how to make it variable so the app will always look at whatever txt file called the app to start.
I'm OK with vague 'lmgtfy' answers- I'm just at a point where I'm not sure what code I'm looking for- some example code would be great; I really just want to play around with the way text can be displayed from an external file.

[Q] Question about automated reply function

Hi guys. Developing an app with a simple enough concept. I want to be able to launch an app that has a textbox that a custom string can be saved to. When an sms message is received, the string is sent back automatically as a reply. So far I have an EditText in the xml and set up shared preferences so the string stays persistent if you exit back to the apps "main menu".
I have seen alot of sample code online but am struggling to get a decent example of my specific requirement that I could implement to what I already have in place.
Can anyone advise on how I could do this with the most ease?
I have researched smsmessagingdemo.java online and it's not really what I need.
And the "simple concept" is always a "killer" for programmers as they usually end up being hard to implement! LOL Such is the case here.
The app idea is a good one; kind of like your own personal "call waiting" app for texts.
just fyi
There's already a few apps on the market that do something like this. Otterbox is one example: https://market.android.com/details?id=com.otterapp.otter I think state farm has an app that does similar.

[Q] Receive fake SMS and CALL (programmatical)

So this is what i was thinking, making an app (running in the background probably) that would do the following:
- at a specific time of day, my android device would (fakely) receive an sms, with my predefined content, of course
- at a specific time of day, my android device would (fakely) receive a phone call, and when i answer, let's say some song starts playing, like from the other end of the line, not in the out speakers
Can this be done? And how? This should be done without any gsm network, I don't want any fees involved, but getting a notification and all, just like the real deal.
PS: I'm pretty new to android programming, so please be as detailed as possible. Thanks!
Additional Details
To sum it up: you have an app running in the background, at 2PM it "calls" you. as in, you receive a call, but not from a real person, it just looks like it. you answer and a song starts playing in the speaker, instead of an actual person talking.
I'm asking for where to begin, some lines of code that would help and so on, not the whole app
I would say that for the "specific time of day" feature, I would look into the AlarmManager class: http://developer.android.com/reference/android/app/AlarmManager.html
It really depends on how authentic you need to be with your "fake text" and "fake call", but you can easily create a notification that looks like a text using the Notification.Builder class: http://developer.android.com/reference/android/app/Notification.Builder.html. If you need it to pull up a text message like interface after tapping on it, you could either design some xml to look just like the Messaging app or just display a fullscreen screenshot of it.
As for the phone call, I would probably just display a fullscreen screenshot of a phone call if you didn't need interactivity with it. You can have your phone play your ringtone by using the MediaPlayer class: http://developer.android.com/guide/topics/media/mediaplayer.html
so basically they are all workarounds, except for the notification. i want them to look as real as possible.
thanks for the ideas, will look into.
i found this app which does exactly what i need. maybe way too much, as i don't need all those settings. can anyone give any feedback on it, on how it's done?
play.google.com/store/apps/details?id=com.popularapp.fakecall

KODI with - amazon voice search :D (proof of concept)

Hi Guys,
I managed to root my FireTV a few days back, and yesterday decided to look at the voice search to see if I could use it for other things.
After reversing some code, I found the actual voice search is handled by com.amazon.vizzini.apk
The SearchOverlay.class has this piece of code, which calls back to the amazon fireTV UI SearchResultsActivity upon completion with the search result returned as a string.
I replaced the fire TV UI with my own code, which receives the search text, and then sends a JSON rpc to KODI's web interface, and brings KODI to the front after the search is completed.
Here is a video of it in action.
http://youtu.be/hpgKci_gJYY
android studio project
http://uptobox.com/ccykod7zua1l
mirror
http://www107.zippyshare.com/v/mAhl3UuM/file.html
***** I have a FireTV v1 updated to fire os 5 ******
I have no idea if this will work on older versions of software.
To make it work you will require ROOT, and you will have to uninstall or move the existing fireTV amazon UI.
Reason for this is that the vizinni.apk calls back to
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
So your activity has to be in that package, and called SearchResultsActivity.
The only other way to possibly get round this would be to modify the vizinni.apk to call a different package instead, but then voice search wouldn't work on the amazon UI anyway. I wasn't really bothered about the amazon UI working myself which is why I did it the way I did.
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system then installed my code via android studio.
mount -o rw,remount /system
mv /system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk /system/
You will also need to change KODI's settings to enable web interface control on port 8080.
On my setup it was .. system.. services.. webserver.. and tick the box that says "Allow control of kodi via http" and make sure the port is set to 8080.
edit: 07/07/2016
I did start work a few months back on an Xposed module (works but not 100%), I was going to add a settings page but I think there was issues with xposed on android version that the fire tv runs on, due to permissions etc.
You can set a prefix in the code (currently hard coded to KODI) so if you say " kodi star wars" it would pass the param of "star wars" to kodi.
If you just say "star wars" without the prefix it would pass this to the normal amazon UI.
If anyone wants to take it further, it's attached on the link below.
http://uptobox.com/ensqll4a7r65
Mick
Thats actually pretty great.
Conventional wisdom was that both voice recognition and response "results packaging" was done server side - and the only return query you could get were preexisting amazon database references - not the result of the initial voice recognition.
I've actually read that multiple places - but as it turns out, no one had bothered reversing the process I guess.
Major props and thank god for overlays containing strings... Finally - that microphone might not be so useless after all..
Next step - implement it to interface with google search. (Weather in ...)
edit: Actually - there are three interesting usecases I can think of on top of my head...
1. Launch other Apps (maybe even with "fixed Keywords (App 1 f.e. would work edit: "Number 1" delivers better results. )" if App names arent known to Amazon) - so thats text>launcher app - see if sphinx02 has any interest in coding that as part of Firestarter..
2. google search (Whats the weather in.. ) text>google search app (if possible)
3. direct text input as seen in the POC video
edit 4. forward to Amazon - not to "break" their implementation
This could be realized by a quick 4 way select screen (just confirm with the direction button) after you select the string in the overlay.
great find and implementation. would love see more expansion as above post mentions. Are you planning to share fire tv UI code?
I was playing with voice search strings and found that Amazon tends to strip out "Google" in front of search queries -so instead of "Google how is the Weather tomorrow" only "How is the weather tomorrow" will get returned.
But - Alexa as a trigger word will be returned fine, so - I vote for using "Alexa" as a trigger word to forward all search queries to the google search app.
Ok - maybe not - but conceptually, this would be a great "work of art".
An even better idea than Harklekinrains' would be to check the foreground app and do different things based on that. For example, if Kodi is open it could send the intent to Kodi. If the Fire TV launcher is open it could fall back to default functionality, etc. Simulating keystrokes could also cover 99% of the other applications. I'm excited for this. It really makes the Fire TV so much less of a novelty.
I've just updated the original post with a copy of the android studio project, and a few more details.
Mick
Great mate,thanks! gonna check it out soon!
One question (as im not firm with intents and stuff): aint there a possibility to listen for intents sent to the amazon ui and catch them? Personally, i dont care too much about it right now as im using nothing but kodi, but maybe some day when wanting to use prime or similar stuff?
dafunkydan said:
Great mate,thanks! gonna check it out soon!
One question (as im not firm with intents and stuff): aint there a possibility to listen for intents sent to the amazon ui and catch them? Personally, i dont care too much about it right now as im using nothing but kodi, but maybe some day when wanting to use prime or similar stuff?
Click to expand...
Click to collapse
I don't think so as the actual code in the vinizzi apk is as follows:
Intent localIntent = new Intent();
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
localIntent.putExtra("identifier", null);
localIntent.addFlags(402653184);
localIntent.putExtra("term", str);
localIntent.putExtra("text", str);
localIntent.putExtra("source", "VOICE");
localContext.startActivity(localIntent);
So basically when it receives the voice search response from amazon's server, it's starting the activity com.amazon.tv.launcher.ui.SearchResultsActivity from package com.amazon.tv.launcher
Mick
Integrating the search attempt based on the previous foreground app would mean that "voice search" could never "initate a new attempt". This would prevent the "lets just ask google, or lets launch an app - impulse use" of the feature. Still - in the long term it might turn out to be the right approach - f.e. if
"People tend to use the the google search only lets say "half a dozen times", and in the majority of cases just want text input in Kodi" Also - without having a select screen with "four (dont make it too many) predefined "use options"" discoverability is pretty non existent. People would have to read readmes to find out which interactions are supported.
Also Amazon wants you to "be able to always reach the Amazon content search from anywhere" - so, political implications.
Also - each time a new app would want to integrate the voice to text feature - they would have to contact the devs of this project - if you dont use "just text input" as a default in the "use the previously open app as an indicator of intent" approach. So make sure you default to "just text input" in that case. (Amazon launcher > forward query to Amazon (do not break functionality), ....)
Dont implement it as a mixed approach though as "Kodi is open most of the time" probably for most people - and the intent (message) gets "confusing".
--
What you probably shouldnt do - regardless, is to use "trigger words" as an "indicator of intent" - because Amazon can start blocking them. "Number 1" is probably generic enough so they wont try to block that - but in principal, they can. Also Amazons "voice to text" engine is optimized for "short phrases" - the longer your input query gets the more prone to errors their results become. Leave the actual "voice input" as "natural" as possible (dont embed logic there). Imho.
I'm in the USA and uptobox.com is not available in our country.
I want to give the source a look and see what I can do to contribute.
Can you put it on github or somewhere else?
Much appreciated.
kratosjohn said:
I'm in the USA and uptobox.com is not available in our country.
I want to give the source a look and see what I can do to contribute.
Can you put it on github or somewhere else?
Much appreciated.
Click to expand...
Click to collapse
I've just uploaded it to zippyshare too. Link added to original post.
Mick
It would be nice if this could be generic way of entering text in any app, similar to the FTV Remote App that has keyboard support. I am surprised Amazon has not done this already. If you are in a text field voice search would fill in the text, else it can continue with normal Alexa functionality letting you " always reach the Amazon content search from anywhere". Should be an easy solution for Amazon to implement, not sure if it could be added with the progress here, and it would really make the voice control so much more useful.
Hey Mick, as im still very exited about that (so frustating to enter searchphrases with a dpad...), i thought about what your great find could develop to. I hope u dont get me wrong, as i unfortunatly cant contribute any programming (if u need something made with tasker let me know ), its not that i want to demand anything - rather share my thoughts or ideas...
- I think its a good thought not to 'blow it up' by adding many keywords, make it more complicated, and avoid amzn to lock features down. even if it may be an abstract fear. I think with a well-structured menu in kodi, all apps one will need to start are just 2-3 clicks away.
- if i got it right, xposed could hook into every module and alter it, right? so basically it should be possible to avoid to exchange the amazon ui and/or alter the vizinni.apk,but just modify the SearchOverlay.class? wouldnt it be (on top) the most convenient way to decide wether one is on e.g. Amazon Prime, or on kodi, and either hand over the result to the original module, or hand it over to kodi?
So, please understand my post as a mixture between sugestions and questions, not as a demanding 'please make it how i want it asap'. Im really excited about your finding, appreciate your sharing, and want to contribute what i can do - unfortunatly its rather thoughts and suggestions. Cheers mate!
Great Work !!! I totally understand this is for amazon Fire products only. My question is would we be able to port for generic Android TV box like nVidia Shield which also has mic capability and comes with root support.
Good job @is0-mick it's great to see you accomplish something that Netflix doesn't even want to be bother with on their app.
harlekinrains said:
No you dont understand. You havent even read or understood the first posting - but you have bought another device and now want others to move in your direction on your behalf.
Click to expand...
Click to collapse
Seriously mate if XDA bothers you so much, you need to take a break from it for your own sanity!
fach1708 said:
Seriously mate if XDA bothers you so much, you need to take a break from it for your own sanity!
Click to expand...
Click to collapse
No, I really don't think he needs to take break, his argument is completely understandable. This is not a Shield forum (btw before we make judgements, I own both devices). We need to get this fixed for one device, before even mentioning whether other devices are an option.
is0-mick said:
To make it work you will require ROOT, and you will have to uninstall or move the existing fireTV amazon UI.
Reason for this is that the vizinni.apk calls back to
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
So your activity has to be in that package, and called SearchResultsActivity.
The only other way to possibly get round this would be to modify the vizinni.apk to call a different package instead, but then voice search wouldn't work on the amazon UI anyway. I wasn't really bothered about the amazon UI working myself which is why I did it the way I did.
Click to expand...
Click to collapse
Is it not usefull for this to create a xposed mod? I thought xposed was made for this...
Perhaps you should talk with rbox in his thread about a integration into version 1.5 of his mods, look here.
is0-mick said:
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system then installed my code via android studio.
mount -o rw,remount /system
mv /system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk /system/
Click to expand...
Click to collapse
So does that mean, while you are using your proof-of-concept you can not use the normal Launcher-UI?
Really great your work! I hope we got more
Sadly I am with my FireTV-Stick (hardware-Rooted-superSU) and my FireTV box gen1 (hardware-Rooted-superSU+custom-recovery+unlocked-bl)on the old FW. I wait for custom roms.
Greetings by Idijt
EDIT:
I forgot to ask you something. Did you got the kind of search-request back?
Can you see if amazon-voice-rgn knows if it is a app or a video or a moviestar?
This looks pretty cool since I don't like typing the name of the movie in the search box... now I can just speak it.
As a novice I have one question, You wrote:
is0-mick said:
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system
Mick
Click to expand...
Click to collapse
The code I downloaded was in .RAR format not .apk. Do I need to covert it to .apk or rename it to .apk before replacing the original?
I've not rooted my device yet so I haven't looked at the file structure, but I'd be willing to root to get this feature. OR is the adding of this code better done by someone other than a novice?
Thanks
carpenter940 said:
The code I downloaded was in .RAR format not .apk. Do I need to covert it to .apk or rename it to .apk before replacing the original?
Click to expand...
Click to collapse
It's the source code. You have to compile it and create the apk with AndroidStudio.

Categories

Resources