Android :: Have Translation Service In Droid App?
Feb 24, 2010How can a translation service be called in an Android app? Can we have an app that can translate multiple languages into another?
View 3 RepliesHow can a translation service be called in an Android app? Can we have an app that can translate multiple languages into another?
View 3 RepliesI'm am working on a basic augmented reality application on Android. What I did so far is detect a square with opencv and then using cvFindExtrinsicCameraParams2() I calculated a rotation and translation vector. For this I used 4 object points, which are just the corners of a square around (0,0,0) and the 4 corners of the square in the image.
This yields me a pretty good rotation and translation matrix. I also calculated the rotation matrix with cvRodrigues2() since using this is easier than the rotation vector. As long as I use these to draw some points in the image everything works fine. My next step is however to pass these vectors and the matrix back to java and then use them with OpenGL to draw a square in an OpenGLView. The square should be exactly around the square in the image which is displayed behind the OpenGLView.
My problem is that I cannot find the correct way of using the rotation matrix and translation vector in OpenGL. I started of with exactly the same object points as used for the openCV functions. Then I applied the rotation matrix and translation vector in pretty much any possible way I could think of. Sadly none of these approaches produce a result which is anyway near what I hoped for. So my question is can anyone tell me how to use them correctly?
So far the "closest" results I have gotten, was when randomly multiplying the whole matrix with -1. But most of the time the squares still look mirror inverted or rotated for 180 degrees. So I guess it was just a lucky hit, but not the right approach.
I am just going through a translation of resource files and I am wondering if there is additional support. At the moment I have both the base strings.xml and the localised version opened parallel in Eclipse. This quite works, but I am thinking of the following tools: - Showing both (or more) versions of a key together - Showing missing keys in a version - Integrating a lookup service (Google Translate, Wikipedia). I didn't find anything like this, is such a tool available?
View 3 Replies View RelatedI want to know if exists a converter for a j2me source-code to android. Listen, itīs not a runner, like a midp runner for android, it īs a converter for a source code. A tool for translate a source code for a new plataform, from j2me to android.
View 6 Replies View RelatedI understand EVO 4G is CDMA thus can't be used roaming in European countries say in Germany (mostly GSM I believe).
Is there a way to still use "Google Translate" without connection? (is there another translation app, which can be completely downloaded to SD Card and can be used without 3g or wifi ?)
Google Translate is great, but it's crippling fault is that it needs a data connection to work. Obviously the only time I am going to need language translation tools, is the same time I don't want to pay for roaming data access!!
Are there any good (and preferably free, or minimal cost) language apps for Android that work offline? I need English > Italian initially, but the major languages would need to be supported too.
I was able to get the animation to work on the emulator -- however my problem is that it animates for a second, but then then goes back to its original posistion right after it finishes animating. How can I stop this for happening.
This is how I animate my objects:
CODE:.................
Is there such a thing in Android...? For example, I'm writing an email and would like to lookup a word, but don't want to switch to the other app, is there an app which can invoke the dictionary within another app...?
View 3 Replies View RelatedIve been trying to implement a limit to prevent the user from scaling the image too much in my multitouch zoom app. Problem is, when i set the max zoom level by dumping the matrix, the image starts to translate downward once the overall scale of the image hits my limit. I believe it is doing this because the matrix is still being affected by postScale(theScaleFactorX,theScaleFactorY,myMidpointX,myMidpointY) where theScaleFactorX/Y is the amount to multiply the overall scale of the image (so if the theScaleFatorX/Y is recorded as 1.12, and the image is at .60 of its origional size, the overall zoom is now .67). It seems like some sort of math is going on thats creating this translation, and was wondering if anyone knew what it was so i can prevent it from translating, and only allow the user to zoom back out.
View 1 Replies View RelatedI might be completely off-base here, but I've spent the last two days trying to figure this out and, without success, you're my only hope.What I'm doing is simple:
* I have a canvas where I draw a circle with center on (10, 10), with radius = 5;
* Then, I obtain the canvas transformation matrix
* And then I create a new rectangle, I map it using the matrix and I use the canvas to draw it.
My problem: basically, the rectangle is being drawn in a different position along the Y-axis.I outputed the transformation matrix and, by default, it is translated by zero in the X-axis and by 25.0 in the Y-axis. Please note that I made NO transformations, either translate, scale or rotate. I am unable to understand why this is happening and how to avoid it.
I am now learning how android handles linux input events from kernel raw input events to the userland level KeyEvent and so on. And I want to handle input events in native language. I've do some experiments on handling events using NDK but the touch screen events are very hard to handle(when I touch the screen, It generates a lot of kernel events).
I've read the eventhub class in framework base dir in the android source repo. And I now I know how android collects linux kernel raw events using eventhub class by reading from /dev/input/event* , but I still have no idea how it translates these raw events into the userland logic input events like KeyEvent. The file keyinput service only wrappers eventhub to JNI functions but there are no translation. So please give me some hints on the kernel event and userland event translation process.
I am implementing a language conversion tool, to convert Spanish to English, on a variety of smart phones: Android, BlackBerry, iPhone, Windows Phone 7.
How do I implement language conversions? Searching, I am not finding a tutorial about this, and I don't having any experience with this.
I have the Google Translate app on my Samsung Galaxy Tablet (running ICS) and it works great, including the offline. I also have it on my Samsung Galaxy Ace phone (running Gingerbread 2.3.7) but I cannot even see a menu option (whichis needed to use the offline facility) on the phone version. I have downloaded the latest verions from Google Play. Review of Google Translate say the offline bit shuld work with Android 2.3 and later..
View 2 Replies View RelatedI'm interested in having a Twitter app in my HTC legend in order to translate some tweets, if possible Japanese tweets.
Last year I was using TweetDeck wich translated the tweets, even from Japanese in English, but I know don't why, since september i'm unable to translate them anymore.Twitter app on Android with the translation functionality ? (To translate from Japanese if possible)
Please show me how to bind to a Service from another Service on Android.
If you have an image to show how to do.
I have a service running in the background.I have a background thread that gets a reference to the service from the application's main activity. But when the background thread calls a method in the service to display a toast, I get the "Looper not initialized exception".Why,if I have a valid, bound reference to a Service, does this still happen?
View 4 Replies View RelatedI am getting following message when i try to launch service.Also is there any specific path on file system where we need to place the .apk file which contains my serivce component only.
View 2 Replies View RelatedI am trying to run the sample soft keyboard included in the SDK. I am using the debugger, and the literature says that to use a breakpoint while debugging a SERVICE, I need to include:
android.os.Debug.waitForDebugger();
So here is the portion of the code I modified:
CODE:...........
I have put a couple of breakpoints, at the statements indicated by the comments.
This is what happens: the debugger first stops at the breakpoint1, for a few seconds. But then the service restarts. For the life of me I can't figure out what makes the service to restart.
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information.So i thought it would be nice to broadcast some kind of state_changed event from my service and use a binder interface to pull information from the service or change the services state based on user input.This works fine too. The only problem is that my service gets killed when i unbind it just as the documentation says.Is there any way to keep the service alive but still get an interface to control it directly. My activity offers the user a way to stop the service and the service kills itself anyway after it's work is done but i don't want the service to stop every time the activity is destroyed.
View 3 Replies View RelatedI'm confused about whether I need to run my service in a separate process. What are the advantages / disadvantages of each?For reference I'm trying to create an App that uses a service to play [streaming] audio in the background. So which one is better for my use case?
View 1 Replies View Relatedwhat I'm trying to do here is implement something like a peer-to-peer client. Being that, it will start a client thread and a server thread.I know Services themselves run in the main GUI thread, so I'll have to start a couple of independent threads (or Asynctasks?) for each server and client. The only thing I'm not so sure about is if I'll better have 1 Service starting 2 threads, or maybe 2 services, each one of them starting their own thread.
View 2 Replies View RelatedI got an problem on getting the TelephonyManager in my personal service. The code as below: public class MyService extends Service {@Override public IBinder onBind(Intent intent) { return mBinder;}
View 4 Replies View Relatedi have an app that binds to a local service.I want to add a desktop widget that binds to the same service. does my service have to be a remote service or can it still be local?if it can still be local, how can I get at the local binder?
View 2 Replies View RelatedI am developing an Android app which needs to poll a specific webpage in time intervals. I've got it to the point where it does indeed poll the page on a specific interval, and that interval is specified in a SharedPreference which can be changed by the user in the settings page of the app. But complications arise when network connectivity is flaky.For example, how do I ensure that the Service "wakes up" the network adapter and gives it ample time to connect before polling the page, in the case that the phone was sleeping to save power? This polling action can happen as little as once every 24 hours, so I don't want to miss one action just because the network was out (but turned on a few seconds, minutes, or even hours later).
Or there are times when the web service doesn't respond, or DNS doesn't respond, or what have you, and for any reason it doesn't get a response even though the phone is technically connected. What sort of rule do I put in place to make this retry later, so that I'm not retrying repeatedly when the user specifically turned off their internet but I'm retrying soon enough that if it was just a hiccup, the data can be received soon after the first try?Are there any examples for this type of situation? What is the logic to best handle this?
I'm developing a GPS tracking software on android. I need IPC to control the service from different activities. So I decide to develop a remote service with AIDL.This wasn't a big problem but now it's always running into the methods of the interface and not into those of my service class. Maybe someone could help me?If i now try to call a method from an activity for example start(trackId) nothing happens. The binding is OK. When debugging it always runs into the startTracking() in the generated ITrackingServiceRemote.java file and not into my TrackingService class. Where is the problem? I can't find anything wrong.
View 1 Replies View Relatedi have a question about Services in Android.I have a application with two Services A and B.Is it possible that Service A can stop Service B?I dont want to do it through a Activity, cause the Application will be in Background. If some special Event happen in Service A, then it should tell Service B to stop. How can i do that?
View 1 Replies View RelatedI have a galaxy s2 and after I installed costom roms I dont have any signal what so ever.
I tried with like 3 roms and the same result.
I tought it was a modem problem and I tried to install some modems and see if that works. But it didnt.
My Service State says Out of service and sometimes it says Radio off.
I have a situation which I will try to explain clearly. I have two services, Service A and Service B.
Activity C connects to service A using onBind(). Service A connectes to Service B using a callback object. I want Service A's onbind to not be executed until Service B is connected to Service A. What will be a good way to achieve this?
Tell about using web service by using soap in android
View 2 Replies View RelatedI am new to Android development
i have a web service made in php now i want to consume it in android can any one guide me how to achieve this?
i have tried many code samples on net but failed to achieve this goal.
i am using Eclipse with ADT.