I have a simple question, but couldn't find an answer.
So I want to test my app with different inputs.
I could just change them manually in the code, before I start my junit-test. But I would like to know if its possible to just start an other little app/activity where I can choose some inputs from a list and these choices should be used for my real app-test then.
Would be really nice, if someone could help me out.
Thanks in advance.
Have you tried Robotium ? http://code.google.com/p/robotium/
It looks like it's exactly what you need.
Related
I'm trying to build a little app that can recognize syllables, like Ah, Oh, Uh, Eh etc.
I thought to use the Android SpeechRecognizer class, but it works fine just for complete word, not to syllables.
For example, if you say the sound of the letter A, let say like Ehi it will display Hey. But if you say Ah it not display anything.
Do you have any suggestions?
Does this class have any function that can help me with my purpose?
I prefer answers about the Android SpeechRecognizer and not about another tool right now.
There is nothing like that in Android's SpeechRecognizer, but you can take a look at the pocketsphinx-android project which seems to be a perfect match for your problem, because it among others it supports allphone mode in which separate phonemes are recognized.
First time posting here! I'm a beginner in learning java and everything Android-related.
So, I'm stuck on a probably simple thing (I believe the answer is pretty simple too):
I'm creating a riddle game, where on each question/activity you're asked about something and when you give the right answer, the game lets you proceed to the next question. So far so good.
My problem is that I cannot comprehend how a "Continue" button (placed on the Main Menu) works, and what could be the code behind it. I mean, how will the game remember how far you've reached, and then give you the option to continue from there. I can only make the button take you to a specific level.
I hope there's no need for me to paste my code - if needed please tell me.
Thanks in advance!
Study Android SharedPreferences, it can be used to store simple data which can be used to keep track on the level.
Android Shared preferences example
I'm building a app and I want to create grouping of my settings for the app, like you can do with a Preference Screen. I'm using the Support Design Library to be able to use Floating Labels and so on.
I've been searching like crazy but can't seem to find any answer...
Hope someone here knows how to do this and can help, and hope you understand what I want to do, despite my rusty english :)
I would like the below image but not using the "PreferenceActivity".
Thanks in advance.
I'm trying to write an app that would use the timepicker in Android, but I really would like to implement the one from iOS.
I've had a couple of leads, but haven't struck anything that has worked for me.
My problem is that the time picker is for time but I want to use mine for three different number values that can be chosen (no am/pm) so it seems like Pickers are the way to go, except that they were introduced in API 11.
I've found this blog that seems to give you some code for it, but I wasn't able to get it to work.
I also found android-wheel, but I don't know how to get the source for it. Can anyone steer me in the right direction for it?
The iOS timepicker looks like this:
Android wheel looks like this:
But, I haven't been able to figure out how to get the code for it.
The code is in the google code project - https://code.google.com/p/android-wheel/source/browse/
Download the source code from below link for various wheel example:
http://android-wheel.googlecode.com/svn/trunk/
Make sure that you have the svn plugins for download.
Thanks.
I'm trying to do an app that can execute some code at specific time (like a service) but time must be changed and setup by the app.
I don't want the whole answer, but i'm newbie, and if anybody knows the good way to acomplish it, and maybe some references i'll be very grateful.
Thanks in advance
Jeff Sharkey's android-sky App Widget includes an example of scheduling code to run at a certain time. It uses an AlarmManager to accomplish this.
Take a look at the Alarm Manager.