Ivan's Blog


Lets learn new things!

Localization: Convert English Number to Bangla Number

To support localization in an application, We need to store all primary text translations into files or database. Every popular framework or platform like Android, J2EE, PHP frameworks and CMS support multi-language localization. Most of these are based of simple configuration. Most common approaches used by these platform or frameworks are: XML based localization string files and Database driven: tag based data structure.


Accessing all images using MediaStore: An android provider

As an android developer, we need to access devices images for various purpose. To access images, android sdk provide a build in content provider, called MediaStore. Here I will demonstrate how we can use MediaStore to access not only all photos but also map them into their corresponding albums.   1st off all we will need external storage read permission. … Read More


Wowza outgoing security Secure Token and PHP, Android client

Configure outgoing security using Wowza Streaming Engine Manager There is a very good documentation in Wowza forum to enable security token for Wowza steaming server. Here is link to follow: http://www.wowza.com/forums/content.php?578-How-to-configure-security-using-Wowza-Streaming-Engine-Manager Now the outgoing stream is secured. If any one knows the secret token, then only generate the authenticate URL for steaming. Here are some code example to do this. … Read More


An approach to create custom randomized, secured keyboard for Android

Recently Me and my team received a request to prepare a custom random keyboard for Android. This keyboard will be an Android library, which will be incorporate as a part of a secured application. To prepare this kind of library, we found an approach to build a custom keyboard in Android. An engineer from Netherlands published a brief article creating … Read More


Android: Use HttpURLConnection instead of deprecated Apache module: HttpClient/HttpResponse

As Android deprecated Apache module like HttpClient, HttpResponse, we can use HttpURLConnection. Here is some code sample: try { URL url = new URL(onlineUrl);//use a proper url instead of onlineUrl HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty(“User-Agent”, “”); connection.setRequestMethod(“GET”);//we can use POST instead of GET method also. connection.setDoInput(true); connection.connect(); InputStream inputStream = connection.getInputStream(); if (inputStream != null) { BufferedReader bufferedReader = … Read More


[NFC]NFC TAG data reading

NFC TAG data reading: There are different type of data can be stored in NFC tag. Data can be: TNF = TNF_WELL_KNOWN AND RECORD = RTD_TEXT/RTD_URI TNF = TNF_ABSOLUTE_URI TNF = TNF_MIME_MEDIA TNF = TNF_EXTERNAL_TYPE Here is android code example where shows how to read the data from tag. [sourcecode language=”java”] public void test(Intent intent){ ¬†¬† ¬†Parcelable[] data = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES); … Read More