May 11

Android – ListView inside AlertDialog

Problem: How to display ListView inside AlertDialog?
Output:


Read the rest of this entry »

May 08

30 helpful Android development Tips/Tricks

Hello All,

The main purpose of this article is to list out all the useful tips/tricks that i have tweeted (some of you may be
my followers – @pareshmayani). And if you are followers then you may have noticed i have been tweeting several tips related to Android development. So for those peoples who are not my followers, i would like to list out those tweets here.

I would love to have your feedback/reviews :)


Read the rest of this entry »

Apr 27

Android Tip – How to define Getter/Setter methods?







Hello All,
This is actually a tip to define Getter/Setter methods in easy way. In other terms you can say Object initialization.

You know why i thought to share this tip, just because i have seen many people defining Getter/Setter methods by their own and After getting my tip, you will call its Time wasting task :)

Now, lets come back to the point and follow the below steps to define Getter/Setter methods for a particular class.

Step 1: Open Eclipse and Create one Android project

Step 2: Create a class and declare attributes that you want for this class.

Step 3: Select these 3 attributes inside the class and right click -> source -> Generate Getters and Setters…

You are done. Enjoy programming and shortcuts :)

Apr 26

Android – Custom toggle button example

Problem: How to customize toggle button with custom images in android?

 

Output:
Android - Custom Toggle Button

Android - Custom Toggle Button

Solution:

 

Step 1: Create 2 images for ON and OFF state of toggle button, place these 2 images inside the Drawable folder. FYI, i have used 9-patch tool to create images for the states.

Step 2: Now, create a selector file for your toggle button, which is used to get state of button and define drawable accordingly.
Read the rest of this entry »

Apr 06

WP7 – A simple clock example for Windows Phone in 10-15 minutes

I have started to learn WP7 through reading e-book, here i would like to share the Simple clock example which i have practiced just now. Its very easy to understand and
implement.


MainPage.xaml

 
            
        

Read the rest of this entry »

Apr 02

I am now an Android gold badge holder at StackOverflow

Here i am proud to announce that i am now an android gold badge holder at StackOverflow. Why i am feeling proud? Just because right now only 11 members (including me) holding this badgeand they all other 10 members are a great people doing in android platform such as CommonsWare (Mr. Mark Murphy, founder and authors of many books on android), Romain Guy (Android engineer at Google),Macarse (Author of an android development book entitled 60 Android Hacks.), Pentium10, Cristian. So its obvious i feel proud myself to have a place along with this great people :)
Read the rest of this entry »

Mar 28

Android – How to implement Google Search inside application?

In Android application, if there is functionality of implementing Google search then here is the easy solution to implement it. In this example, we will accept input from the user and will search the same string input in the Google search. For implementing this functionality we use Intent.ACTION_WEB_SEARCH .
Read the rest of this entry »

Mar 27

I am now a DZone MVB (Most Valuable Blogger)

Today, one more feather is added in my crown…..Yeh :) :) FYI, this is the 2nd feather, 1st was JavaCodeGeeks :)

Let me tell you exactly!!

Few days ago, Mr. Mitch Pronschinske ,Senior Content Curator and Editor-in chief at DZone contacted me and saying that “With the quality of writing displayed in your blog, I’d be honored to invite you into our program”, at that time i knew just little about this program so i had contacted Mr. Juhani Lehtimaki (Founder of Android UI Design Patterns) as he is also a DZone MVB. I was convinced that this was a great opportunity. I humbly accepted the invitation.

Now, i am proud to say I am now a DZone MVB (Most Valuable Blogger).
Read the rest of this entry »

Mar 22

Windows phone 7 for your Android device







App name: Launcher 7

If you are having android device and you just want to enjoy the looks and operating environment of Windows Phone 7 OS HomeScreen then this app is for you!! FYI, Windows phone 7 has the concept of Tiles.




Mar 21

Windows Phone Emalator with Local keyboard input







While working on Windows phone 7 development, you might have faced a problem that you are not able to input through your local keyboard into the Windows phone 7 emulator keyboard.
Have you faced this problem?

Solution:
Just Press the “Page Up” key on the keyboard
or
Press the “Pause/Break key“.

Both of these keys activated my PC Keyboard to input into Windows Phone Emulator.



Older posts «