Thursday, August 30, 2012

Google Cloud Messaging (GCM)


Google Cloud Messaging (GCM)

GCM Application


Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices. The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data. The GCM service handles all aspects of queuing of messages and delivery to the target Android application running on the target device.
The Google Cloud Messaging (GCM) is to use the Google Cloud Messaging framework in your Android application. You will get configuration and setting up GCM in Android.

DCM consists of two part –
1.       A web server containing a page where you can send messages
2.       An Android application that receives and displays such messages.

Details information about API reference documentation  are available here –


Wednesday, August 29, 2012

How do I insert special characters as text in XML editor for Android?



You are writing an app that involves using some mathematical symbols. I'm doing this in the visual XML editor.
Is there any way I can get, say, an integral symbol, or a "less than or equal to" symbol?


Answer is  - Yes.


String htmlStringWithMathSymbols = "≤  ≥";
textView.setText(
Html.fromHtml(htmlStringWithMathSymbols)); 
OR
<string name="item_unknown">\u003c Item Unknown \u003e</string> 


Tuesday, August 21, 2012

Best Answers to Tough HR Interview Questions

Best Answers to Tough HR Interview Questions :
Check these typical interview HR questions with sample answer that will guide you to choose your answer. There questions are tragated more towards freshers but are equally useful for experience candidates also.
1. Tell me about yourself:
2. We're considering two other candidates for this position. Why should we hire you rather than someone else?
3. Why do you want to work in this industry?
4. Why should I hire you?
5. Tell me about a time you didn't perform to your capabilities.
6. Tell me about an effective manager, supervisor, or other person in a leading role you've known. 7. What's your greatest achievement to date?
8. Give an example of a time when you were asked to accomplish a task but weren't given enough information. How did you resolve this problem?
9. What is your biggest weakness?
10. Why weren't your grades better.