How to reference xml elements using findViewById within fragment

While developing the Android application using activity, we use to reference the XML elements using findViewById method as below: TextView name = (TextView) findViewById(R.id.Config_name); This works only if we extend the class with Activity. It gives the compilation error as method not found if we extend the class with Fragment. Though we are extending the…

Read More

Converting an activity to a Fragment in android

Earlier I developed an android application using the Activity. But now the trend is to develop the android application using the Fragments. So I thought of converting the Activity based android application to Fragment based Android application. Earlier I thought it’s very difficult to do it. But It’s very simple. Here are the steps  how…

Read More

How to integrate whatsapp with android application or a website

We can integrate whatsapp with the android app in two ways: 1, Using the Android Intent System which we discussed in my previous blog: “How to share the media and text with the social android apps“ 2. Using the custom URL scheme provided by whatsapp itself. We will discuss the second one in this blog. …

Read More

How to share the media or Message Text with social apps in your android application

Normal 0 false false false EN-IN X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:”Table Normal”; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:””; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:”Calibri”,”sans-serif”; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-fareast-language:EN-US;} I was developing an android application to a customer. One of the requirement was to share some media…

Read More

Sudoku Game Development in Android

Greetings of the Day!!! When I was learning Android, I thought of developing a game. The easiest was a Sudoku game. And when I was reading an android book I saw a basic example of the game and thought of using it and building on top of it. So I started it and completed it…

Read More

How to change the color of the tabs of the tabhost in android application

In Android, you can change the colour of the tab. By default the colour of the tab host is grey.  I want to change the colour of the unselected tab as #a45d0a i.e  Dark orange [Brown tone] and the selected tabs as #A42C0A i.e Dark red. Here first I initialize the tabs and each tab…

Read More