Android :: Voice Recognition Activity Called In OnCreate Method / Causes App To Load Slowly
Oct 1, 2010
In my android app I call the voice recognition in my onCreate method of my startup activity. I have made it a preference to start up with the voice control or not. However, the app takes about 5-7 seconds to load when voice recognition is on. When it is off, the app starts almost instantly. Below is sample code, I have added Free_Form, max_results 1, and a custom prompt to mine.Why would calling the normal android speech recognition take sooo long to load in my OnCreate method?
View 1 Replies
Aug 27, 2010
I have some code in the onCreate method an Activity and noticed that it is being called three times. Is it normal behaviour?
View 1 Replies
View Related
Mar 29, 2009
I launch my TestWebView activity. After my web page is loaded, I put the app in the background by pressing the Home key. Then I bring the TestWebActivity back to the foreground. Unexpectedly, TestWebView's onCreate() is called when I bring the activity to the foreground. But onDestroy is never called. This same thing happens every time I tested. It appears the old TestWebView was not completely killed so there are possibly duplicate web clients running.
My code: .....
View 7 Replies
View Related
Aug 5, 2010
The order is:
A: startActivityForResult( B ) B: <dostuff>, call finish() A: onCreate <---- what's this all about A: onActivityResult
This happens for a tiny minority of users. I havn't been able to reproduce or find any common elements. A is the launch activity.
CODE:..............
View 7 Replies
View Related
Mar 3, 2010
I am encountering an exception in the onCreate method of an activity.
CODE:.......
The onCreate method is as below.
CODE:......
The layout view XML is as below.
CODE:..........
I've already changed the ID of the ExpandableListView to "list". But it is not effective.
View 4 Replies
View Related
May 2, 2009
I use sdk 1.5 version and same to my handphone, my handphone is use G1. Now i test my application on my handphone. When i push on keyboard, i found system will destroy current activity(execute onDestroy() method) and execute onCreate() method again. So i will all current status and all datas. I don't wish this happen, how to block system execute onDestroy() and onCreate() when i open and close keyboard?
View 2 Replies
View Related
Sep 15, 2010
I have a TabActivity with 3 tabs, each tab started an activity and I realise when a tab is clicked onResume is call. If I have onCreate, when app start it will launch onCreate and then onResume immediately.So, I can just get ride of onCreate in this case?
View 2 Replies
View Related
Jan 18, 2010
I make 'hello world' app :-) and wrote a Log code in onCreate. and then give "android.intent.category.DEFAULT" and "android.intent.category.HOME"
This situation appears emulator(1.5, 2.0, 2.1). but HTC hero(1.5, original htc rom) didn't! it just call one time! Which is normal? and If calling twice is normal, why are they call twice?
View 2 Replies
View Related
Jul 31, 2010
Can we load an XML file by slowly hiding the previous XML? I want a splash screen effect.
View 1 Replies
View Related
Mar 3, 2010
Following is the example of tabs with intent data.
While debugging i found that always when first tab we add in tab host in our case following tab
CODE:................
oncreate method of "List1" intent get called regardless it is our current tab or not even if if i define tab2 as a current tab how to fix this ?
CODE:..........................
View 1 Replies
View Related
Mar 10, 2010
Web pages seem to load very slowly on my N1, when not using wifi. I use an orange SIM card that I got with my old nokia N82, which was a 3g phone. I always struggled with internet speeds with that phone too. I do get the "G" and the arrows below it flashing away as suggest 3g is working. Maybe I expect too much, but Jesus it can be frustrating!
View 5 Replies
View Related
Dec 14, 2009
I got my hands on Android which is really fun. But at some point I don't seem to understand the concept. I've got a Main class which reads like this:
CODE:....
In the onCreate(...) I set the layout to setContentView(R.layout.main); and add an OnTouchEvent Listener to the sole View in main.xml: myView.setOnTouchListener(new OnTouchListener() {@Override public boolean onTouch(View v, MotionEvent event){...
As you can see I also implemented a SensorEventListener which is used if required. All works fine so far.
But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Furthermore, I feel unable to implement an onSizeChanged(int w, int h, int oldw, int oldh) { ... } Listener.
Can anyone please explain where my error in reasoning is? I am working on a tiny app which is more or less done, except for the just mentioned bug(s). Maybe I got it all wrong but it does what it is supposed to do (i.e. sending touch positions and accelerometer data over the network via UDP).
View 14 Replies
View Related
Nov 14, 2010
I'm sure its been discussed and all but I think that the voice recognition software is capable of being much more advanced.There should be a way to just give your phone a voice command without having to manually open an app. It probably would have to be running in the background the whole time, analyzing everything it hears, so it may use a lot of battery and cpu.therefore it may be easier to have a starter phrase to tell it to listen more carefully. for example: say the said app is running in the background,listening to every noise, but it wouldn't begin to really analyize until you say something like; "hey, phone!" or "yo, droid!" (or whatever tag phrase). I don't know what would have to go into an app like that for it to work but hey, if an app like that was designed, then I think the android would be a really smart smartphone. In the end thanks for all the awesome apps you guys are already developing. be sure to tell me when someone develops something like that though.
View 4 Replies
View Related
Aug 11, 2010
I have had the Droid Incredible for a month and a half now and my text messages are filling up. One girl I have 2500 messages from and the loading is pretty slow. Its pretty annoying waiting to reply and everything else on the phone is lightning fast so I was wondering if you guys have any suggestions on how to have them speed up or settings that would help. Please tell me anything that would make these messages load faster.
P.S. I understand deleting the messages will make it fast but erasing them takes way too long and its annoying. Also i need a lot of my messages.
View 5 Replies
View Related
Oct 26, 2010
I am running into an issue with the way my asynctasks are executed. Here's the problem code:
firstTask = new background().new FirstTask(context);
if(firstTask.execute().get().toString().equals("1"))
secondTask = new background().new SecondTask(context);
What I'm doing here is creating a new asynctask object, assigning it to firstTask and then executing it. I then want to fire off a separate asynctask when the first one is done and making sure it returns a success value (1 in this case). This works perfectly on Android 2.0 and up. However, I am testing with Android 1.5 and problems start popping up. The code above will run the first asynctask but doInBackground() is never called despite onPreExecute() being called. If I am to execute the first task without the get() method, doInBackground() is called and everything works as expected. Except now I do not have a way to determine if the first task completed successfully so that I can tell the second task to execute. Is it safe to assume that this is a bug with asynctask on Android 1.5? Especially since the API says that the get method has been implemented since API 3. Is there any way to fix this? Or another way to determine that the first task has finished?
View 2 Replies
View Related
May 12, 2010
Maybe my question might seem a bit weird, but I have an activity in which, in one case , I have to move to another activity before it finishes loading the screen. My condition is in the onCreate method, which means when I encounter it, i get a "startActivity called from outside an activity context" error and the app just crashes. But then, is there an easy way like a flag for the intent to make it work without having the activity context resolved?
View 1 Replies
View Related
Apr 19, 2010
I slapped together a simple test application that has a button, and makes a noise when the user clicks on it.
Here are it's method:
CODE:..................
My question is, why is onCreate acting like it's in a while loop? I can click on the button whenever, and it makes the sound. I might think it was just a property of listeners, but the Button object wasn't a member variable. I thought that Android would just go through onCreate onse, and proceed onto the next lifecycle method. Also, I know that my current way of seeing if the sound is playing is crap...I'll get to that later.
View 1 Replies
View Related
Apr 1, 2010
I have a EditText on simple activity with a button.
when every i move from one activity to this acivity focus is automatically set to EditText and keyboard appears in phone.
i don't want to open keyboard until i click on editText.
can any one guide me what should i do?
View 2 Replies
View Related
Apr 14, 2009
I call an activity from another with startActivity(new Intent(Caller.this, NewActivity.class));
I had a problem with a variable. So, using debug I saw that I pass two times in the onCreate method of NewActivity!
I was a little bit surprised. Somebody can explain why and how can I avoid this behaviour?
View 2 Replies
View Related
Jan 11, 2010
How is it possible to implement voice recognition on android phones? Also to decode the voice and convert the male voice to female voice and vice versa?The voice data input from the user will be sent to the Google site for recognition through Internet, or will be processed and recognized locally on my android phone? if anyone has any idea regarding it.
View 6 Replies
View Related
Sep 2, 2010
Is it possible to use the voice recognition api in order to handle a known set of commands yet? VR matches this against a specific valid vocabulary containing only "yes & no", and then returns "no". Can you do this yet? Last time I looked you could not. The VR would match against a full vocabulary and user saying "no" would come back with things like "snow" and so on.The other BIG problem was that if the VR got no match a "Retry" dialog was displayed, this needed to be dismissed by using the screen, which meant the the voice control process failed at this point, terminally.
View 2 Replies
View Related
Sep 22, 2010
I'm getting this error ( in the end of this post) which I guess I understand it's because I'm calling something after releasing it.. but I can't find a wy to work it around.I've tried all combinations.. I've tried: mCamera.setPreviewCallback(null); This class, where the surfaceview is implemented can be accessed by 2 different classes one that doesnt implement surfaceview and other that does the error just shows me when I go from the activity that uses the camera to the activity that also uses camera.I don't know what else to do.
View 4 Replies
View Related
Jul 2, 2010
Is the onUpgrade method of SQLiteOpenHelper ever called? If so, when is it called and by what? Or if it is not called by developers, then why is it there? What should be done in the method I have seen examples where it drops all the tables, but then a comment says that dropping all the tables is NOT what you should do.
View 1 Replies
View Related
Sep 1, 2010
I am new to Android development and have been following the tutorials available on the Android website. I am currently on the section of tutorials for Views, specifically the one for Grid Views: Hello, Grid View Tutorial.I am having trouble understanding how views are made through an adapter. I understand that you must override the getView() method in your adapter class and in this method is where you define how your Views are set up. What I don't understand is where does getView() actually get called? Perhaps I've got the wrong kind of mentality here, but in the code below (the Grid View tutorial) I don't see any calls to getView() (or any other things used in the adapter class such as getCount()).
View 1 Replies
View Related
Apr 15, 2010
I'm writing a Tetris application on Android for my bachelor thesis at the University of Hasselt. Currently I have a working Tetris base game, but it just keeps on ticking when the activity gets in the background. I'm trying to fix this by overwriting the onStop()and onRestart()methods.when I press my home button on my device I will go to my home screen and onStop() is called. Because the gamemode is now "PAUSE", the game wil not tick anymore. But now, when I longpress my home button and select my tetris activity again, the activity pops up, but it isn't ticking! This is because the onRestart() is never called when I return to play my application.What is the reason that this method is never called? Am I understanding the activity lifecycle wrong?
View 3 Replies
View Related
Mar 21, 2010
a service started by a broadcast receiver starts an activity. I want to make it possible for this activity to communicate back to the service. I have chosen to use AIDL to make it possible. Everything seems works good except for bindService() method called in onCreate() of the activity. bindService(), in fact, throws a null pointer exception because onServiceConnected() is never called while onBind() method of the service is. Anyway bindService() returns true.The service is obviously active because it starts the activity.I know that calling an activity from a service could sound strange, but unfortunately this is the only way to have speech recognition in a service.
View 4 Replies
View Related
Mar 3, 2010
I'm trying to prevent my application to call the same method twice in the event of a double-click, or if the user presses different buttons quickly, almost at the same time.I have clickable Views, acting as buttons, that call the same method but passing different parameters.Inside this method I'm creating a new Thread, because it queries a web server for the result.The problem is that upon two quick clicks, the method is fired twice, two threads are created, and consequently two new activities are created. That makes my app crash.But this only seems to work on slower phones like the G1, I tried on Nexus and before it set blocked = true, the second request has was granted. So is there any way I can block the method being called if it's already running, or if the thread has started so it wont create a new one.
View 3 Replies
View Related
Feb 9, 2009
Voice Search is new with RC33. I am wondering if the voice recognition will be part of the API 1.1. Or at least an Intent? Btw, is the SDK 1.1 JavaDoc available somewhere yet?
View 11 Replies
View Related
Aug 13, 2009
has somebody managed to bring the voice recognition to run on the HTC Hero phone? I have experienced the "recognizer not found" problem (but it is not a vodafone from UK).
View 2 Replies
View Related
Mar 6, 2010
i'd like to be able to tell my alarm clock to shut up rather than fumble around with it and potentially drop it on the floor while trying to unplug it, look at the screen before my eyes have adjusted, etc.Anyone seen or heard of an alarm that you can say "snooze" to?
View 3 Replies
View Related