Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm developing an Android translation app and I've been searching a translation API with the capacity of language packages download to use the app offline but I'm not able to find something similar.
I've found two open source API, MyMemory and Apertium but I don't know how can I use them offline.
Any ideas? Thank you
Apertium is completely free and open source, including the language data, and it should be possible to run all the language pairs offline on a phone. In practice, some of the "newer" language pairs might require a bit of work since they have dependencies on C++ programs that haven't been ported to Android yet (cg-proc from the vislcg3 package and hfst-proc from the HFST package).
Still, quite a lot of the work has been done already, and there's an "example" app you can build on – http://wiki.apertium.org/wiki/Apertium_Android explains it:
The goal of the 'official' Apertium Android app is to provide example code on how to integrate Apertium offline translation into an Android app.
It requires internet permission to enable users to download language pairs (and developers to showcase their work from a phone).
You can of course make it not even require Internet permission by bundling the language pairs into the app.
(If you need some of the other language pairs and are interested in making cg-proc/hfst-proc work on Android, you should probably get in touch with the relevant maintainers.)
Translating is a very complex problem. There are no good offline translation engines that would work well on a Android phone.
MyMemory is just a translation memory, e.g. it stores millions of existing translation, but this will not help much with your app.
Apertium is also an online service.
There are great translation apps from Microsoft and Google. I would try to build something different.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Just trying to understand localizations and how it works.
I'm reading this article about string localizations in Android applications. And everything is OK. I can create string resources, few folders (es, en, etc.) and it will works perfectly.
But if I understand correctly, it is a static way. I mean, I can create "by hand" this resource file, provide strings for any regions and then use it in my app. Am I right? Or there is a possibility, to create that resource file dynamically? Let say I have my strings with translations in the backend and I want to initialize it and then use?
Disclaimer: I work for Localazy.
If you don't want to care about resources and XML files, just use Localazy. It comes with a Gradle plugin that takes care of everything for you and it even integrates OTA updates automatically into your app - updated translations and new languages are delivered online without resubmitting the app to stores.
And you can manage all translations easily through a cloud-based interface with shared translations - translations are shared with all other apps on the platform so you can get your app translated for free to up to 80 languages.
The basic management for a typical app is free.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there any simple (or even not so simple) way to transmit just small amounts of data (some small strings and the occasional number) between 2 iOS devices using Unity? I know there are some assets on the Asset Store, but those are upwards or $50 and far overkill. Or is there a good tutorial for this that I can follow?
those are upwards or $50
No, they are not. Here is a Bluetooth plugin for Android and iOS for $10.
The rule goes like:
If you are one person, use that. You will save yourself time. If you are working for a company, you should make your own plugin.
is there a good tutorial for this that I can follow?
If you decide to make your own Bluetooth plugin, you must first learn Java. Make a simple Android Java Bluetooth program and test it on your Android device. If it works, then you can then simply convert it into a plugin by seperating the code into functions such as bluetoothInit(), bluetoothConnect(), bluetoothSend(), bluetoothReceive(), bluetoothDisconnect(), bluetoothClose(). Then compile it into a plugin (jar or aar) file. You can now call the functions from Unity C#.
Learn Android Bluetooth API.
Links on how to call Java functions from C# in Unity. I suggest you follow the first link.
http://www.what-could-possibly-go-wrong.com/creating-a-native-android-plugin-for-unity3d/
http://www.thegamecontriver.com/2015/04/android-plugin-unity-android-studio.html
https://www.thepolyglotdeveloper.com/2014/06/creating-an-android-java-plugin-for-unity3d/
EDIT:
For iOS, you need to learn Objective-C. Learn iOS Bluetooth API then make a plugin.
https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html
http://code.tutsplus.com/tutorials/ios-7-sdk-core-bluetooth-practical-lesson--mobile-20741
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm looking to develop an app for both iOS and Android, and I would like to be able to compile to both without having to actually write in two different languages.
GUI will be simple: buttons, drop down menus, textboxes. Although it would be a bonus to have these in a pre-made library or as part of the phone utils, I can and will write my own if needed. However, I will need access to phone hardware such as GPS and location, internet access, notifications, running in background and possibly vibration.
I'd like to program in C++ or similar in preference, but any language that will cross-compile should do. Any help would be appreciated!
EDIT: I'm asking about what frameworks I can use for this, and what languages they use.
There are plenty of engines you could use. Xamarin is one of the bests(programms are written in c#)
I know what you mean. Try Eqela. Check this out for a quick overview: https://www.youtube.com/watch?v=WcWf7SXGBv0
Eqela, a programming language translator that enables software
developers to create software applications for several operating
systems using a single set of source code, makes it possible to deploy
applications on mobile, desktop and the web simultaneously. It is
based on application source code conversion technology.
The language is OOP so you will feel comfortable programming with it. Since it is based on source code conversion, the target source code is native to your target platform. Eqela can be translated to Android, iOS, and a lot of other popular platforms. HTML5 is also part of the target source code!
Access to your target platform's native code is also available. Let's say one of your target is Android, you could include Android-specific codes inside Eqela source code.
I've used this first hand and I think this is a great tool. However, since this is not popular language, community support is limited.
For more info:
http://eqdn.tech/
Use Ionic(design) + Cordova. But you should know HTML, CSS and Javascript.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Does anyone know a free Chinese handwriting engine? I already check this question: Where can I find a Free Chinese Handwritten Recognition engine for Android/IPhone?
On the tegaki website I see that android is supported. However I can't find any *.jar files or anything I can import to my android project. (in eclipse with ADT)
Now I am searching for a small getting started guide for tegaki or an alternative. By the way I found this function in the google translate app. https://play.google.com/store/apps/details?id=com.google.android.apps.translate&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5nb29nbGUuYW5kcm9pZC5hcHBzLnRyYW5zbGF0ZSJd
Something similar to that would be perfect. I wonder whether this part of the android sdk or open source. Unfortunatly I could't find it on the developer site.
The Google translate feature is proprietary, and the actual recognition is done on Google's servers, so there is no library.
Where did you find info on Tegaki supporting Android? BTW, you can use the underlying recognition engine (zinnia) on Android, and its license is permissive. You just have to compile with the NDK and write a JNI wrapper. It works for any language, you just have to train it for Chinese.
There is HanziLookup, a good ole' Java Swing component that recognizes Chinese handwriting input: http://kiang.org/jordan/software/hanzilookup/
More recently there is HanziLookupJS, a Javascript port with an updated algorithm an alternative new dataset: https://github.com/gugray/HanziLookupJS
Both are open-source and pretty straightforward in case you need to port them to a different platform.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a book or other resource which gives me a good overview over the Android system.
Things I'm looking for:
how to define preinstalled apps / widgets
how to add drivers for sensor data (e.g. accelerometer)
how to configure display parameters
Every recommendation is welcome as I didn't find anything yet.
Sorry this is a late answer, but recently I've stumbled on a very helpful set of videos on this subject from Marko Gargenta -- it was very helpful to me understanding the different portions of android and how to get started with creating a custom ROM image:
Android Internals Part 1: http://www.youtube.com/watch?v=1_H4AlQaNa0
and Part 2: http://www.youtube.com/watch?v=rFqELLB1Kk8
I've seen a few books devoted to android system.
Embedded Android by Karim Yaghmour
Android Forensics: Investigation, Analysis and Mobile Security for Google Android by Andrew Hoog.
Marakana videos are useful also.
source.android.com - you should have done some build (to deal with common errors) before thinking about how to customize it.
This youtube playlist https://www.youtube.com/watch?v=KLUXPxxJc5c&list=PLtw7MVCFtZkTg93Ofr7KTusbSSauVu6bi is a very good start.
He introduces how to build a custom Android service there.
Also Embedded Android by Karim Yaghmour. (Everything covered from basics).
P/S: If you have one device, and you want to port pure Android (AOSP, Cyanogenmod) to it, then you kinda have to learn by experience at some point due to some of the source code not released by vendors.
Hope this help
I have no knowledge of such books, however, you can have clues on what you are asking in the source code. All these are done in the product definition.
You have a good example in ./device/samsung/crespo (which is the product definition for the Nexus S).
You define preinstalled apps by modifying the PRODUCT_PACKAGES variables, in the Makefile for your product.
Drivers are both done in the kernel, and in libsensors for the accelerometer, and every other sensors.