Monday, 26 September 2016

Microsoft Translator API Integration

Microsoft Translator is a hosted service, accessed via an API that provides language translation.
It can be used to build Android Applications where you need language translation.
You need to get started with using the Translator API to translate content by signing up for the service, registering an application, and getting your Client ID and Client secret.

  1. Signing up for Microsoft Translator and getting your credentials.
  2. Get an account on Windows Azure Marketplace.
  3. The Microsoft Translator API is accessible through Microsoft Windows Azure Marketplace.

 You can see it here:

To begin developing using the Microsoft Translator API, you need to do the following:

  1. Register for an account on Windows Azure Marketplace.
  2. If you already have an account, you can use it, but it’s recommended that you follow through these steps to ensure that you configure the service correctly
  3. Sign up for the Microsoft Translator API using your registered account.
  4. Register your application on Windows Azure Marketplace.
  5. Get the Client ID and Client Secret for your registered application.
  6. The following instructions will show you how to do this. When you’ve completed them, you’ll be ready to start coding.

Wednesday, 14 September 2016

Socket to execute Android Commands :-)

In this tutorial we are going to see how to use Sockets in Android Applications. 
In Android, sockets work exactly as they do in Java SE. In this example we are going to see how to Restart  an android Application  from Windows/Mac using device IP & Port no.  
Even Application is not running in Android Tablet device , can Execute/Launch using this method.

Thursday, 25 August 2016

Custom shape image-view in android using canvas

Article for custom shape image-view in android using canvas. 

There is no library needed, using canvas you can make any type of shape with simple java code

Click here to get the method ;-)

Thursday, 14 July 2016

Customizing Radio Group In Android

In Android, you can use “android.widget.RadioButton” class to render radio button, and those radio buttons are usually grouped by android.widget.RadioGroup. If RadioButtons are in group, when one RadioButton within a group is selected, all others are automatically deselected.

Customizing Radio Button In Android
Custom Radio Buttons
In android we can customize  the default Radio Buttons. Default Radio Buttons are small and also not attractive, By using customized Radio Buttons we can design more attractive and better user interface.

To customize Radio Buttons we need to have two drawables
1:  when radio button is selected.
2:  when radio button is not selected.

In this example I have  used these two drawables for selected and not selected state.

Click here to access Resource file

Sunday, 19 June 2016

Data Encryption/Decryption

“Encryption works best if it is ubiquitous and automatic. It should be enabled for everything by default, not a feature you only turn on when you’re doing something you consider worth protecting.”

-Bruce Schneier, Cryptographer, Privacy and Security Specialist

Encryption enhances the security of a message or file by scrambling the content. To encrypt a message, you need the right key, and you need the right key to decrypt it as well.It is the most effective way to hide communication via encoded information where the sender and the recipient hold the key to decipher data. The concept isn't that different from children who come up with secret code words and other discreet ways to communicate, where only they can be able to understand the message. Encryption is like sending secret messages between parties—if someone tries to pry without the proper keys, they won't be able to understand the message.

There are two methods of encryption: symmetric and asymmetric encryption. Symmetric encryption, also known as secret key encryption, pertains to the sender and the recipient holding the same keys to encrypt and decrypt a message. Asymmetric encryption, or public key encryption uses what is called a key pair—a public key for encrypting a message, and a private key to decrypt it.

Click here to get methods ;-)

Sunday, 12 June 2016

How to hide status bar & Notification bar permanently form an activity !!!

Smartphone notifications are pretty useful, there's no denying that. They make it hard to miss an important event, such as an upcoming appointment in one's calendar or the arrival of a new email in their priority inbox. But when abused, notifications can be quite annoying. Android users would surely agree with that – it is a common practice among developers to have their games pushing notifications reminding the user that they have skipped a day without playing or that they're about to miss on an in-app purchase discount. You know, stuff that nobody really cares about. Thankfully, disabling these annoying Android notifications is an easy job, requiring no hacking whatsoever.

Click here to get solution  ;)

Wednesday, 27 April 2016

Android Application Locker - :-)

Setting a lock code on your smartphone is highly recommended to protect your personal information, but sometimes a lock code can be a bit inconvenient.

What if you could do away with the device lock code, instead locking only the apps you want to keep private? An Android app named App Lock let's you do just that. That's not to say you can't use App Lock in addition to the lock code on your device, adding an extra level of security to your information.

App Lock, preventing unwanted access to any app you deem private.