How do I make my android application translate from English to Hindi using Yandex translator? Java API and JSON file. I have got the API key and I've no idea what codes are to be written to include the API and make it work. It will be really helpful if you post the entire code :D Thanks.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You can check this API: https://github.com/DoguD/Yandex-Translate-Android-API
Just import TranslatorBackgroundTask.java file to your application and then execute as shown below:
For more detailed explanation you can read the README in github.
You can start by checking out how to make an API call for their translate function. Their documentation in that part will show you the syntax for the HTTP request which will allow you to translate a specific piece of text and specify which languages you want to translate to and from.
In order to implement this into your Android application, you need to be able to send HTTP requests. There are many great libraries to do this. Loopj should be able to do the job. Their website will tell you how to add their library to your project/Android app.