Pages Navigation Menu

Coding is much easier than you think

RECENT POSTS

How to Find IP Address of Android SmartPhone?

Posted by in Android

How to Find IP Address of Android SmartPhone?

  You may need your android phone’s IP address for creating a media center remote, or wireless file server, there are a number of cell phone and computer applications that need your smart phone’s IP address. There are two kinds of IP Addresses. Internal IP address is the address of the device which is assigned by the router from which your phone is connected. External IP address is the address of the device assigned by the ISP (Internet Service provider).   ** UPDATE: Android Complete tutorial now available...

read more

How to configure the Android emulator to simulate the Galaxy Nexus?

Posted by in Android

How to configure the Android emulator to simulate the Galaxy Nexus?

  What settings for the Android emulator will closely simulate the characteristics of the Galaxy Nexus as possible? Solution: You can very well go through the procedures available below to simulate the characteristics of NEXUS,   Target: Google APIs – API Level 15 Skin: Built-in WXGA720   Selecting skin sets the following hardware parameters, leave them as-is: Hardware Back/Home: no Abstracted LCD density: 320 Keyboard lid support: no Max VM application heap size: 48 Device ram size: 1024   Galaxy...

read more

What is the difference between HTTP and REST and SOAP in web services?

Posted by in Soap-UI, Web technology

What is the difference between HTTP and REST and SOAP in web services?

  SOAP uses WSDL for communication between consumer and provider, whereas REST just uses XML or JSON to send and receive data   WSDL Defines contract between client and service and is static by its nature. In case of REST contract is somewhat complicated and is defined by HTTP, URI, Media Formats and Application Specific Coordination Protocol. It’s highly dynamic unlike WSDL.   SOAP doesn’t return human readable result, while REST result is readable with is just plain XML or JSON   This is not true. Plain...

read more

How to create transparent activity in android

Posted by in Android

How to create transparent activity in android

  Sometimes, we need an activity to some processing but we need not necessarily have a UI. For this, you can do just not do a setContentView() call. This will show up an activity with the default theme applied.   ** UPDATE: Android Complete tutorial now available here.   But, what if you need a transparent activity? It should be showing what is behind it and still do some stuff. Just follow this post to get it done. Add the following style In your res/values/styles.xml file (if you don’t have one, create it.)...

read more

How to make an Android Spinner with initial text €œSelect One€

Posted by in Android

How to make an Android Spinner with initial text €œSelect One€

  There is two methods to do this. One is through XML and another is through Programmatically.   Method 1 : XML First, you might be interested in the “prompt” attribute of the Spinner class. See the picture below, “Choose a Planet” is the prompt that can be set in the xml with android:prompt=”” I was going to suggest subclassing Spinner, where you could maintain two adapters internally. One adapter that has the “Select One” option, and the other real adapter (with the actual options),...

read more

Debugging a service

Posted by in Android

Debugging a service

Case: You may have written/called a service for your application that may run at the background once it is created. But when you run your application you won€™t be able to see the services when your activity uses the services as it runs at the background and it is not visible. But once the service is completed, it will automatically get closed.  So in this case, it is not possible to debug your service like it is done manually for an activity. Solution: Please follow the steps below in order to debug your service, Step 1: In the first...

read more

Difference between String, StringBuffer and StringBuilder? When to use them?

Posted by in Java | 2 comments

Difference between String, StringBuffer and StringBuilder? When to use them?

  The main difference between the three most commonly used String classes as follows.   StringBuffer and StringBuilder objects are mutable whereas String class objects are immutable. StringBuffer class implementation is synchronized while StringBuilder class is not synchronized. Concatenation operator “+” is internally implemented by Java using either StringBuffer or StringBuilder.   By immutable, we mean that the value stored in the String object cannot be changed. Then the next question that comes to our mind is...

read more

how to get cookies value in java servlet

Posted by in Java

how to get cookies value in java servlet

Cookies come as part of the HttpServletRequest object. The Cookie Class provides an easy way to read Cookies. You can use getCookies() method to retrieve all the cookies in your servlet program.You can gain access to any cookies sent by the browser from the javax.servlet.http.HttpServletRequest passed to the servlet’s doGet, doPost, etc methods. This getCookies() method returns an array of cookie objects. In this example we will show you how you can retrieve all the cookies and display using servlets. // Check for cookies Cookie[]...

read more

Re-installation failed due to different application signatures – Android Error

Posted by in Android

Re-installation failed due to different application signatures – Android Error

  Cause Mainly this error occur for same application sign.If you port your app to another device, there may be a problem with keystores. it’€™s called debug.keystore and located in %USER_HOME%/.android/ folder. It happens because eclipse tries to push apk with re-install key. The digital signature is driven by a signing key that exists on the machine that signs the app. If Developer A compiles an app using the standard debug key and installs it in an emulator, then tries installing some other variation of the app — one...

read more

Android tutorial for beginners

Posted by in Android | 3 comments

Android tutorial for beginners

  Wanna Learn Android easily????!!!! Here you go!!!!   Learn and become an expert in developing android applications. In order to fully appreciate the below tutorial, basic knowledge on Java and XML is a prerequisite. Check out tutorials for :- JAVA XML ANDROID DEVELOPMENT TUTORIALS   Learn how to setup the environment for android development, create virtual devices and some of the app fundamentals involved in developing android application… SETUP ANDROID DEVELOPMENT ENVIRONMENT LEARN TO CREATE AND USE AVD’s...

read more