Applying MD5 Algorithm In Android

Hello developers, have you ever given a thought about securing your content when it is being used in communication? If yes then this blog might help you in achieving so.

MD5 stands for Message Digest(5 denotes the series), which is a hashing algorithm used for generating the fingerprint of the content. It was designed in 1991 by Ronald Rivest at MIT.

MD5 algorithm is a one way hashing process which means you cannot generate original text from the hash code.It always produces the same output for the similar input, and this property is used for checking the data integrity. You can compare the two hash codes at destination(one which is received from server and one which is already present at destination) and check whether the files contains the same content or not.

Continue reading

Upload Failed : You uploaded a debuggable APK

It was quite late in the evening and I was about to wrap up my work. Suddenly I got a call form my client in Skype and he shared his concerns of uploading the build to production. Although it was late, I thought to help him before I close the day, since that guy is in the middle of his day time (in US). Now mind set is to spend time on the issue. I started looking into the issue.

The issue is, while he (my client) started uploading the APK file into the Android store, he is receiving the below rejection message from the store.

Upload Failed

Continue reading

How to Use Render Scripts in Android

If you are an android developer, you must have faced the problem of slowing down or even crash of your app while implementing complex image processing operations? I faced the same and found RenderScripts as appropriate solution to it.

The RenderScript are used in android for complex computations such as image processing. The Scripts are based on the C99 standard of C language. RenderScripts was introduced in API 11 i.e. Honeycomb.

For accessing RenderScript in android there are two API’s

1. Android.renderscript :- from API 11(HoneyComb) to higher API’s.
2. Android.support.v8.renderscript :- from API 8(Froyo) to higher.

Continue reading

Classic Bluetooth Implementation

This is basically a kind of tutorial which will be useful if you are learning and implementing bluetooth in your android app. In this tutorial I have shared the code for scanning of the Classic Bluetooth devices in range and fetching the paired devices list, moreover I will find some time to write about the implementation of further aspects of classic bluetooth.

Android offers bluetooth API that lets you share your stuff wireless. As per Bluetooth standards it offers you short range (10 m approx.) device connectivity. This API let application to the Bluetooth devices and enable point to point or multipoint wireless feature. Here we are discussing about the Classic Bluetooth that consumes more battery life.

Bluetooth devices with low power requirement Android 4.3 (API level 18) introduces support for Bluetooth Low Energy, I have talked about it in my last blog. We will get to understand about  the API by creating a sample application that lets you share you stuff over bluetooth.

To start with we will first find to check that whether our device support bluetooth or not. For this we need to use Bluetooth Adapter class. Bluetooth Adapter is some sort of entry – point for all bluetooth interaction.

Continue reading

Bluetooth Low Energy (BLE)

Don’t you think Bluetooth plays a significant role in making the smart phones smart? So let’s talk about something smarter i.e. Bluetooth Smart or BLE. As far as the BLE or the Bluetooth low energy is concerned it is not just a feature it’s a new technology

it was first proposed by NOKIA in 2006 with the name WIBREE. And now the devices which are equipped with BLE are called as Bluetooth Smart devices and the devices which has both Bluetooth classic and the BLE are called as Bluetooth Smart Ready devices.

Continue reading

jQuery with WinJS in Windows Store Application

Introduction
As we all know, we can design Windows store applications using HTML, CSS and JavaScript. We can use jQuery along with the WinJS as well.

Description
Let’s open up the Visual Studio and create a new navigation project under JavaScript with a name called jqTest.
Now we will get the project created and opened with the default.html page.SolutionExplorer

 

Let’s get download the jQuery and place that in js folder in Solution Explorer. Continue reading

SeekBar Customization for Android Development

If you want some customization in the seekbar which you use while developing android apps, there are several ways of doing this. You can customize seek bar with the help of the xml or you can make it impressive even programmatically.

Let’s have a look if you want to change its appearance with the help of xml

First of all the progress Drawable attribute of the seekbar should be set as the xml file in the drawables folder as

android:progressDrawable=”@drawable/progress_seekbar”

The overall seek bar implementation in the layout xml should look something like this

Continue reading