Android – Making phone call – ACTION_CALL Intent

|

try { Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:+98765")); startActivity(intent); } catch (Exception e) { Log.e("Demo application", "Failed to invoke call", e); } Don’t forget to add this permission into the AndroidManifest.xml file: <uses-permission android:name="android.permission.CALL_PHONE"/> Note: If you forget to add this permission inside the AndroidManifest.xml file then below Exception may...

Android – Working With Calendar and Managing Compatibility With Froyo

|

Today i came across an article, in that article i found a great thing that the Calendar URI in FROYO 2.2 version is changed from content://calendar/calendars to content://com.android.calendar/calendars. To manage the compatibility with such Calendar Code across all the version, we need to handle Old URI along with the New...

Unix – Evaluate Floating point Arithmetic Operation in Unix

|

Problem: How to evaluate Floating point Arithmetic operation in Unix? Solution: In UNIX, as we know, ‘expr’ is used to evaluate arithmetic operation but it is not used to evaluate floating point valued expression. See the below image for more clarification: Now, One more command is used to evaluate arithmetic...

Unix – Calendar Sept 1752 – A surprising Fact in Unix

|

I have found one amazing fact in Unix. i.e. 11 days missing in the month of September, 1752. Why it is happened in the month of September 1752? The Gregorian Reformation is assumed to have  occurred  in 1752  after the 2nd of September. By this time, most countries had recognized the reformation...

How to start with Android ? What softwares are Required ?

|

Software Requirement to start development with Android Eclipse 3.4 (Ganymede) or greater, If you need to install or update Eclipse, you can download it from http://www.eclipse.org/downloads/. JDK 5 or JDK 6 (JRE alone is not sufficient) Android Development Tools plugin (recommended) To start working with Android Development First, you have...