I have to build such application in which i have to use the database for storing data.
In First screen following functionality i have to done:
First of all i have to write something in to the TextBox, On submitting of that text Box value , I have to record one Sound File.
After Completing that, one test is created.
On clicking of that test, the recorded sound is played, And User have to write text in to the Empty text box value. If the previously Text Box value with that sound is match, then user should be notified with the 1 point.
So how can it be possible to store text value and the Sound file ? And how i implement to check what i have recorded while entering the text value in to the text box ??
Please Help me regarding this.
Thanks.
Edited Question:
Its some what test type application. example like : In Which i have to record "banana" by saying word and also have to entered text like banana in text box. and it should be save as like test1. Now after that in second screen while i click on test1, it should be sound like banana, and in text box i have to entered "banana" as text. if i entered any other word then it will give me wrong answer that the text not matched with the sound.
Take a look at Performing Audio Capture at the bottom of this page for recording, and above it for playback. You can write your sound files to the local storage and put the matching word and the location of the soundfile in a local SQLite database. (A look at Android's Notepad Tutorial might help with the SQLite part.)
Related
I want to create a edit text where user suggestions will be shown when user typed "#" keyword.
For eg. If the selected user is: "James test user".
And if user press delete character(back space in android keyboard.) then it should delete the word by word instead of characters. just like first user will be deleted then test and then james.
Any lead will be great for me.
I've tried the https://github.com/linkedin/Spyglass and https://github.com/hendraanggrian/socialview. But they won't fulfill my requirements.
in android stuido I would like to code an activity, where the user can input numbers. For, example he types the number to the textfield, click 'OK' button, then the textfield gets clear, he types the second number, than the third, and after they give the third number the program goes to another activity and sayst thanks for the free number. I would like to save the three numbers for further use and have them in an ascending order. How should I do it?
I agree with Andrii, this is a very vague and general question. To get you pointed in the right direction though, you would want a layout with an number based-editText widget (for the user input). I would then add the button, and then implement OnClickListener for the button so that everytime the button is pressed, it calls a method you will define that will store the value in an array or list (which can be sorted), along with some kind of tracker to keep track of how many numbers have been entered - then clearing the editText field so that another number can be input; on the third number, the method calls the activity via intent or some other way saying "thanks for the free number".
This is all general and it is going to take quite a bit of work and API Guide/DeveloperDocs searching on the Android web site.
I have successfully added a word to Android's predefined user dictionary, but i want to create a custom dictionary which can only be accessed by my application.
For example: When i type "lol", the suggestions show me "laugh out loud" but when I want another meaning of "lol" then I can manually add another meaning of "lol" (eg, "xxxxxx" - so the next time the user writes "lol" in an EditText, the suggestions will show him "xxxxxx").
No other application should have access my dictionary data.
I have worked with spell checker class but it gives me only correct word and I can't my own word meanings.
Please give me some suggestions or links.
There is an Androids inbuilt class UserDictionary so that you can add your spells programmatically into that, Here is a link you can go through with , and which may relates to your problem .(In this solution nidhi has manged programmatically to retrieve data back)
Add word to user dictionary and retrieve them back from dictionary
In addition you can go through following links to :
http://developer.android.com/reference/android/provider/UserDictionary.html
http://developer.android.com/reference/android/provider/UserDictionary.Words.html
Moreover if you want a custom personal dictionary then manually you have to store words and retrieve them back .
Hope that helps !!!
I want to make a smart keyboard that can learn and save new words from user. I already made note and keyboard separately, the problem is :
how to read all keystrokes and write it to my note in background?
how to save my note automatically?
thanks for your help
Keep a String or StringBuilder that stores all the text that the user types. All text sent through your soft keyboard will have to pass through the onKey method.
So, I'd do something like this:
1) In onKey, check to make sure primaryCode (the keycode that was pressed) is a letter/number/apostrophe using the corresponding functions. So, something like
Character.isDefined(primaryCode)
2) Concatenate primaryCode onto the end of your StringBuilder/String.
You'll also have to deal with the user moving the cursor/backspacing. In my keyboard, I only store the most recent two words (resetting this whenever the user moves the cursor). That way, the keyboard can learn what the most likely word is given the last word.
You can save your "note" using an ObjectOutputStream or (if it's fairly small) using sharedPreferences.
Send me an email if you run into an more issues: I've been writing a soft keyboard for a while so I'm pretty familiar with it.
I'd like to know how to let a user input text ex. "TEXT", then have my app convert that "TEXT" into something like "#&^#", then have my app recognize "#&^#" as 4 different letters, ex. "#" "&" "^" "#", then play that letter's sound. I have recordings of each letter's sound.
ANY help will be very much appreciated.
First, create an app with an EditText.
Then create a listener which detects when a user has changed the text.
In that listener....
retrieve the text
Convert it into your symbols
For each symbol, play the appropriate sound. You'll need to implement something that queues them in order, so one starts playing once the last has finished.
I suggest you tackle these one step at a time, asking one question on this site for each of the above points.