ল্যামডা এক্সপ্রেশন সহজ পাঠ

May 28, 2014

ল্যামডা এস্প্রেশনকে অনেক সময় এননিমাস ফাংশন এর সাথে তুলনা করা হয় যদিও ল্যামডা এক্সপ্রেশন হল এমন ফাংশন যার কোন আইডেন্টিফায়ার নেই। এগুলো ইনলাইন অথবা সিঙ্গেল লাইন ফাংশন হয়ে থাকে। সি শার্পে => অপারেটর ল্যামডা এক্সপ্রেশনে ব্যাবহার করা হয়ে থাকে। এই => অপারেটর ল্যামডা এক্সপ্রেশন এর প্যারামিটার আর স্টেটমেন্ট বডিকে পৃথক করে। একটা ল্যামডা এক্সপ্রেশন সাধারনত নিচের […]

Read the full article →

Variables in android strings.xml

March 15, 2014

Variables can be used in the strings defined in strings.xml using the c programming like printf  ‘%d’ syntax. This is because getString (int resId, Object… formatArgs) passes the string through Formatter. First define a string in the strings.xml file (usually res/values/strings.xml). This string has a variable %d that will be replaced in the next step of our […]

Read the full article →

Discover extras from android intent

March 15, 2014

If you are catching some unknown intent in your activity, there is simple way to discover which extras are available with the following codes.

Read the full article →

Phone’s last known location using LocationManager (android)

March 13, 2014

This is a fast code to get the last known location of the phone. If there is no exact gps-information it falls back to the network-based location info. This code is using LocationManager.

Read the full article →

Double back press exit android app

March 13, 2014

Sometimes it is required to block accidental back press on android app. The following code snippet helps to block accidental back press, It also helps to exit the app by double back pressing. Get back press work only at second press and notify user to press again to exit use the following snippet of codes.

Read the full article →

Android NDK Development with Genymotion Emulator

January 29, 2014

Genymotion / AndroVM is an android emulator built on x86 and Virtualbox. So it’s performance is way better than the Android default SDK Emulator. However in their latest update they’ve removed both ARM Translation and Google Play Apps. The removal of ARM Translation causes the “INSTALL_FAILED_CPU_ABI_INCOMPATIBLE” errors. And also force close of some native coded […]

Read the full article →

Birthday wish in Java style – a java sound example

January 22, 2014

The Java Sound API can be used for controlling audio playback, audio capture, MIDI synthesis, and basic MIDI sequencing. The following example shows how to use  Java MIDI synthesizer in its simplest form. Though its gives full control but it is complex to use this API. JFugue is an open-source Java API for programming music without […]

Read the full article →

Bilai-Fi a small tool to make wifi hotspot using laptop

January 20, 2014

The Idea of “Bilai-Fi” was first came from my friend Farhan (the geeky, cat lover guy), when one day he was asking me if there was not so bloated tool for windows to make wifi hotspot using laptop like “Connectify”. I told him that its possible to make one and after coding the it in […]

Read the full article →

Android x86 and Android on Intel

January 14, 2014

Along with AndroVM (Genymotion Emulator), Bluestacks player, Android-x86 is a community project aiming to port Android to x86 hardware so it can run natively on Intel and AMD processors. Which will allow you to install Android on a laptop or tablet just as installing Windows or Linux. The project  officially support only certain devices at this time. […]

Read the full article →

Calculating Pi – Monte Carlo method

December 25, 2013

Monte Carlo methods are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical result. Wikipedia link. Using Monte Carlo method Pi is calculated by 1. Drawing a square on the ground, then inscribe a circle within it. 2. Uniformly scatter some objects of uniform size (grains of rice or […]

Read the full article →