Tuesday, July 15, 2014

FragmentStatePagerAdapter getItem not called

Using FragmentStatePagerAdapter instead of FragmentPagerAdapter might fix this problem. 

FragmentPagerAdapter stores the whole fragment in memory, and could increase a memory overhead if a large amount of fragments are used in ViewPager. But FragmentStatePagerAdapter only stores the savedInstanceState of fragments, and destroys all the fragments when they lose focus. 

Hence FragmentStatePagerAdapter should be used when we have to use dynamic fragments.

Wednesday, July 9, 2014

Cannot modify header information headers already sent error

If you are a wordpress user sometime you might end up facing error similar to this while logging in as an admin.


Warning: Cannot modify header information - headers already sent by (output started at /home/smarttra/public_html/vkslabs.com/wp-content/themes/news/functions.php:6) in /home/smarttra/public_html/vkslabs.com/wp-includes/pluggable.php on line 896

Possible fixes for this issue includes

1. Remove blank spaces before <? and after ?> in functions.php under wp-includes folder
2. Add ob_start(); as the first line right after <? in functions.php


Sunday, July 6, 2014

Android Application - LIC (Life Insurance Corporation)

LIC application allows you to maintain your insurance policies with Life Insurance Corporation of India (LIC India). The application allows you to add premium due dates to your calendar so that you don't miss your premium payment.

Download for free 
 

Android Application - India Database

Finally an application that provides all the information you need to know about India. The application *works offline* hence no need to be connected to Internet all the time. The application can be downloaded from the Android Google play market from here or scanning it using your phone





1. Bank Details
The app provides you the following information of more than 150 Banks and 90000 branches.
• Bank Name
• Branch Name
• IFSC Code
• MICR Code
• Contact Details
• Address


You can search a bank detail by using the following information
• IFSC Code
• MICR Code
• Location


2. Pin Code DetailsThe app provides Pincode details of more than 40000 locations. You can find details of a location by searching using Pincode or find Pincode by searching using the location details.
• 40,000+ Pin Codes


3. STD & ISD CodeThe app allows you to Search Location by entering the code and you can also find the code by entering the location details.
• 2500+ STD Codes
• 250+ ISD Codes


4. Vehicle Registration Details Find the district and RTO details for a vehicle registration number.
Search by location to find the registration numbers for that particular location.
• 1000+ RTO Records.


5. Mobile Number LocatorFind the location of a mobile number using its first 4 digits.

Note:
The application doesn’t support mobile numbers that were ported from a different carrier.
Please don’t expect the app to provide real time location of entered mobile number since it is beyond the scope of the application and is a privacy concern.

• 1500+ Mobile Number Records.

Monday, May 19, 2014

Eclipse Error : contains native libraries that will not run on the device

Few days back I wanted to try Crittercism's NDK library and ended up facing the following error in Eclipse after following exactly the same steps given on their site.

The library 'crittercism_v4_5_1_ndk.jar' contains native libraries that will not run on the device.

The following libraries were found:

- assets/armeabi-v7a/libcrittercism-ndk.so

- assets/armeabi/libcrittercism-ndk.so

This error could be avoided by the following Steps.

Eclipse Preference ->Android->Build->Un Check "Force error when external jars contain native libraries"

Monday, January 6, 2014

Disable CellBroadcast in Cyanogenmod

The problem started last week when I started receiving Cell Broadcast alerts non stop all day. My phone is Samsung Galaxy S2 and was running on latest version of Cynogenmod. After searching in some Android forums I found a way to disable all kinds of cell broadcast by using  option in Message application.

Message->Menu->Cell Broadcast

Even after doing so the problem did not go away. Finally after lot of searching I found a way to do this. Use Terminal Emulator and execute the following commands.
su
mount -orw,remount /system
rm /system/app/CellBroadcastingReceiver.apk
reboot

Friday, November 15, 2013

UI≠UX

Difference between UI and UX

1


The most common misconception we come across in the workplace, in client meetings or even in the Job listings is that the terms UI and UX are interchanged and used in the wrong context. Though both the terms look and spell alike there is a substantial difference in the overall objective and scope.

User Interface (UI) is a medium of communication between a person and a system. UI encompasses approaches and elements that allows the user to interact with the system. In other terms UI can be considered as the most powerful tool that designer use to bring out a great user experience.

On the other hand User Experience (UX) is:

  • The overall experience

  • A combination of various interface, UI being an important one among it.

  • Thrives to address everything perceived by a person


2


A UI designer can only solve a part of the equation by creating tools such as images, icons, text but the user experience is much larger than that and is influenced by a multitude of things such as functional performance, color scheme, ease of use etc. Hence for an organization it is very important to understand the basic difference between the two roles and hiring the right candidate with proper skill set.



Last but not the least...


This is what happens when you let a developer play the role of UI/UX designer

3


4