How to change the Style of a button dynamically in android?
Here I am going to change the style of a default button to buttonStyleSmall. So after that the button will appear small. this simple code does this. The try this adding to a layout
Here I am going to change the style of a default button to buttonStyleSmall. So after that the button will appear small. this simple code does this. The try this adding to a layout
You have seen Launchers listing your apps. Ever wondered how they get the list of all apps. This program help you to list all apps installed in your phone and in a gridview and invoke them. Here we use this class.. PackageManager Class for retrieving various kinds of information related to the application packages that… Read More »
This is a simple example showing how to encrypt and decrypt a file in android. what we will do in this post is 1. Generate a key for encrypting our data. 2. Create a file and save data using ENCRYPTION with our generated key to the SDCARD. 3. With the help of the key DECRYPT… Read More »
Do you approve of the way your CEO is leading the company? See which CEOs have the highest approval ratings. The Glassdoor list is based entirely on employee feedback shared during the past year. Check out the Top CEOs of 2013 and caste your vote here.. http://www.glassdoor.com/50-Highest-Rated-CEOs.htm
There are different ways for making an acitivity transparent. First method 1. Through XML in AndroidManifest like this. Here we are using Android’s built in theme. Method 2 Through styles create a style like this in your styles.xml and applying like this in the AndroidManifest.xml Check out this post for the complete implementation. http://www.coderzheaven.com/2011/07/20/how-to-create-a-transparent-activity-in-android/ Now… Read More »
Samsung has launched its New Galaxy Today , the New Samsung Galaxy S4. Check out more from this link below http://news.cnet.com/8301-1035_3-57574257-94/galaxy-s4-features-shown-off-in-youtube-videos/
An interesting post.. Everytime you write an app, it may or may not crash and we often see the “Force Close” Dialog. But what if we can customize the “Force Close” Dialog itself. This is done using “UncaughtExceptionHandler” class. This post explains this. here I am knowingly crashing the application like this int y =… Read More »
Hello all.. I have shown you how to create gradient buttons in Android using XML in this post. Now I will show you how to create these gradient buttons dynamically. We will start with a class that extends StateListDrawable similar to state-list we use in XML UIGradientSelector.java Now the class that extends PaintDrawable Class. UIGradientDrawable.java… Read More »
Actually this is fairly simple. This simple code does this. Here is the complete program that shows how to download a PDF File and open it in Android using an installed PDF Reader.
We know Samsung is set to reveal its Galaxy S4 smartphone on March 14th, and that the company has been desperately trying to spin up the same sort of pre-release hype about the device that Apple usually benefits from–including a rather strange promotion campaign involving a young “secret messenger” called Jeremy. Now a source that… Read More »
These are the different ways in which you can keep your screen on in your app 1. Declare the screen stays on in your XML layout 2. Inform the window manager in onCreate you want the screen to stay on 3. WakeLock – used for critical downloads or things that you definitely don’t want the… Read More »
The budget version of Apple’s latest iPhone will cost roughly $330 (£220), priced in order to appeal to young, middle class consumers in countries like China and India. The claims about the price and the imminent release were made on the Japanese website Macotakara, following on from earlier reports about Apple plans for a cheaper… Read More »
LG launching Galaxy S3 rival Optimus G @ Rs 30,990 LG is all set to launch its erstwhile flagship smartphone Optimus G in India at an event in Mumbai on February 27. This device is pitted against the current market leader Samsung Galaxy S III and is the basis for the highly popular Google Nexus… Read More »
A webservice can be A web service is any piece of software that makes itself available over the internet and uses a standardized XML messaging system. XML is used to encode all communications to a web service. For example, a client invokes a web service by sending an XML message, then waits for a corresponding… Read More »
It would appear that Samsung will indeed be showing off their fabled Galaxy Note 8.0 tablet this coming week at Mobile World Congress 2013. We’ve been sent a sort of spy-shot of the Samsung Galaxy Note 8.0 being blasted on a large screen inside the new MWC convention location – the show still being set… Read More »
A low-priced iPhone makes a lot of sense, Morgan Stanley says, and it even could hit the market this summer. Katy Huberty, an analyst with the banking firm, noted that after her meetings with Apple Chief Financial Officer Peter Oppenheimer, she’s convinced that innovation remains a top priority for the Cupertino, Calif., electronics giant. She… Read More »
Google Inc. has developed the first touchscreen laptops powered by its Chrome operating system to be sold later this year, according to people familiar with the matter, as the Internet giant tries to go toe-to-toe with Microsoft Corp.’s Windows operating system. Read More from here
since its arrival on the scene, HTC has been performing absolutely well and its latest launched, the HTC One or simply called the One, is pitted against Samsung’s Galaxy S3 and Apple’s iPhone 5 by the company and the market pundits. But will the HTC One be a competition for the top two, namely, Samsung… Read More »
Hello all….. This is a simple tutorial to show how to create a FLEXIBLE UI for both Phone and Tablets in Android. In the figure below you can see the result after running this tutorial. Tablet in LANDSCAPE MODE TABLET IN PORTRAIT MODE TABLET IN PORTRAIT MODE – AFTER CLICKING THE LIST. PHONE IN PORTRAIT… Read More »
Hello all….. This is a simple tutorial to show how to create a FLEXIBLE UI for both Phone and Tablets in Android. In the figure below you can see the result after running this tutorial. Tablet in LANDSCAPE MODE TABLET IN PORTRAIT MODE TABLET IN PORTRAIT MODE – AFTER CLICKING THE LIST. PHONE IN PORTRAIT… Read More »
A little on Dialog Fragments A fragment that displays a dialog window, floating on top of its activity’s window. This fragment contains a Dialog object, which it displays as appropriate based on the fragment’s state. Control of the dialog (deciding when to show, hide, dismiss it) should be done through the API here, not with… Read More »
Hello all……. This tutorial is all about writing your own Dialogs and implementing the click or touch on any of it’s views in another class (say another activity). This is primarily useful if we have a common dialog and have to handle it’s button click in different ways in different activities. Here what we will… Read More »
This tutorial is about how to use interfaces in java or Android. What is an Interface? An interface is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. An interface is not a class. Writing an interface is similar to writing a class, but they are… Read More »
Transparency in a background of a View in android can be achieved in two ways. 1. By providing a transparent image. 2. By providing an XML that has as shape with end, starting and middle color. This is a sample XML that creates a transparency. bg_gradiant.xml Note : By Simply providing a color doesn’t creates… Read More »
The BlackBerry Z10 is finally here flying the BlackBerry 10 OS flag and, with it, carrying the hopes of the struggling company. We’ve pitted the Z10 against its two most dominant competitors, the Apple iPhone 5 and the ever-popular Android Samsung Galaxy S III, but the truth is, the Z10 will likely be clawing for… Read More »