by tv_sathish » Wed Feb 27, 2008 5:38 pm
Hi Plusminus,
I do understand that Activities are not supposed to do anything intensive. That's why I tried it in IntentReceiver class, but there I had problem because the Intent didn't last longer before the network call could complete. Is there an alternative to this, because I would ideally like to do the network call in the IntentReceiver?
Now since I had some problems there, I tried putting the code in Activity class onCreate method, first directly and then within the thread (run method) but believe me even that (within thread) did not work (network call was within try/catch and it went straight to the catch block where the stack trace kind of indicated that the service was unavailable, whereas running the same program in a normal Java project worked fine indeed, so what is the problem trying it in Android project?).
Can you help me by writing out a small program and testing it out? It shouldn't take you much time, but anyway bear with me for the inconvenience. May be you will also need this feature sometime. If it works for you, may be I can find out what I have done wrong.
Is your AndNav complete? Do you have plans to share the source code or atleast the APK file? Was curious to know what all goodies you have put?
Hey regarding the Text2Speech thing, do you know if FreeTTS can also be used for Speech recognition, because it does come with an implementation of JSAPI classes and it is a known fact that JSAPI is both speech recognition and synthesis(speech production) combined? That guy whose URL you have given is not even willing to share how he set up the Eclipse project to use FreeTTS? I am not trying to use his source, because as you said he is porting FreeTTS and my aim is to just try to use FreeTTS wihin Android and not porting it? Funny, but I don't understand how it will affect him if he shares how to setup FreeTTS project in Eclipse?
Can you point me to the links which describe how to port your existing projects to latest SDK? It was saying that some additional attributes are required in the Activity class specification in existing AndroidManifest.xml? What might they be?
Thanks and regards,
TVP (tv_sathish)