- Home
- Author: Paresh Mayani
Paresh Mayani
CEO & Co-Founder at SolGuruz® | Organiser @ GDG Ahmedabad | Top 0.1% over StackOverflow | 15+ years experienced Tech Consultant | Helping startups with Custom Software Development
Android – Difference between gravity and layout_gravity
Hi, Do you what’s the exact difference between gravity and layout_gravity attributes? android:gravity sets the gravity of the content of the View its used on. android:layout_gravity sets the gravity of the View or Layout in its parent. Here is the best example that i came across: How to Position Views Properly in. Here is my […]
-
Paresh Mayani
- December 30, 2010
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 be raised, and from exception […]
-
Paresh Mayani
- December 7, 2010
Android – Send email from your Android application – ACTION_SEND intent
The below code can be tested with the real device: But while testing it with an emulator, you need to make correction with: i.setType("text/plain");
-
Paresh Mayani
- December 7, 2010
Unix – Fetching ASCII Code of any Character and Character Value from the ASCII Code
This is the demo of fetching ASCII code of any character value and vice versa (Character value from the ASCII Code). The below is the demo for the “A” and “65”. Ascii value of character: It can be done in 2 ways: printf “%d” “‘A” echo “A” | tr -d “n” | od -An -t […]
-
Paresh Mayani
- December 1, 2010
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 URI, we can handle it […]
-
Paresh Mayani
- November 25, 2010
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 expression , i.e. bc command. […]
-
Paresh Mayani
- October 29, 2010
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 (although a few did not […]
-
Paresh Mayani
- October 28, 2010
Search
Explore Topics
Short Stories
From Payroll to People: The Evolution of
- 7 min read
How to Host a Web App :
- 6 min read
Why Hiring a Flutter Developer is the
- 10 min read