Monday, 29 June 2015

Android Interview Question Part-1


 

1. What is an Explicit Intent?

- Explicit intent specifies the particular activity that should respond to the intent.
- They are used for application internal messages.

2. What is an Implicit Intent?

- In case of Implicit Intent, an intent is just declared.
- It is for the platform to find an activity that can respond to it.
- Since the target component is not declared, it is used for activating components of other applications.

3. What do intent filters do?

- There can be more than one intents, depending on the services and activities that are going to use them.
- Each component needs to tell which intents they want to respond to.
- Intent filters filter out the intents that these components are willing to respond to.

4. Where are lay out details placed? Why?

- Layout details are placed in XML files
- XML-based layouts provide a consistent and standard means of setting GUI definition format.
5. What is Android?
an open-source operating system used for smartphones and tablet computers.
6. ADT stand for?
Android Developer Tools
7. SDK stand for ?
Software Development Kit
8. Language Know to develop android apps?
Java
XML
9. What is Intent?
An Intent is exactly what it describes. It's an "intention" to do an action.

An Intent is basically a message to say you did or want something to happen. Depending on the intent, apps or the OS might be listening for it and will react accordingly.

There are two types of intents in android:
  • Implicit Intent
  • Explicit Intent

10. What is AVD?
AVD Stand for Android Virtual Device (emulator), The Android SDK includes a mobile device emulator - a virtual mobile device that runs on your computer.

Sunday, 21 June 2015

Windows Phone Interview Questions Part1

1. Style:
A Style is basically a collection of property settings applied to multiple instances of the same type. AStyle contains a collection of one or more Setter objects. Each Setter has a Property and a Value. TheProperty is the name of the property of the element the style is applied to. The Value is the value that is applied to the property.
Implicit Styles: For example, if you create a style implicitly for all the ToggleButton controls in your application, and your application has ToggleButton and CheckBox controls (CheckBox derives from ToggleButton), the style is applied only to the ToggleButton controls.
BasedOn Styles: It is possible to build a new style based on an existing style. You can do this using the BasedOnproperty. This reduces the duplication of code and makes it easier to manage resources. Each style supports only one BasedOn style. 
2. UserControl:
Provides the base class for defining a new control that encapsulates related existing controls and provides its own logic.

3. LifeCycle Of WindowsPhone:
  App Launching=>Running=> OnNavigatedFrom(NavigationEventArgs)=>deactivated=>dormanent (stopped and no processing takes place)=>tombstoned(app has been terminated and it will be relaunched and the application can use the preserved data to restore state) =>Activated=> OnNavigatedTo(NavigationEventArgs) =>Closing=>raised when the user navigates backwards past the first page of an app
4. ContentTemplate:
Gets or sets the data template used to display the content of the ContentControl
ControlTemplate: Specifies the visual structure and behavioral aspects of a Control that can be shared across multiple instances of the control..
Control: Represents the base class for UI elements that use a ControlTemplate to define their appearance.
5. DataTemplate:
Describes the visual structure of a data object.
6. ItemTemplate:
·         Gets or sets the custom content for the data item in a control.ex:listbox
·         ItemsControl: Represents a control that can be used to present a collection of items.
·         ItemsPresenter: Specifies where items are placed in a control, usually an ItemsControl.
·          ItemPanelTemplate:specify the panel used to arrange the children of your ListBox.
·         ItemSource: Gets or sets a collection used to generate the content of the ItemsControl.
7. Layouts:
Windows Phone provides a flexible layout system that enables you to specify how controls are positioned on the screen.
i)Absolute layout(Canvas): you arrange child elements in a layout panel by specifying their exact locations relative to their parent element
ii)Dynamic Layout(Stack Panel,Grid): To use automatic or proportional sizing, you must assign special values to the Height andWidth properties.
8. StackPanel Vs Grid Vs Canvas Vs WrapPanel:
StackPanel: The StackPanel is a simple layout panel that arranges its child elements into a single line that can be oriented horizontally or vertically. 
Grid: The Grid control is the most flexible layout panel, and supports arranging controls in multi-row and multi-column layouts.
Canvas:  Canvas is useful for scenarios where the UI elements contained within it never move.
WrapPanel or WrapGrid : Positions child elements sequentially from left to right or top to bottom. When elements extend beyond the container edge, elements are positioned in the next row or column. In Windows Phone 8, consider using the WrapPanel available in the Windows Phone Toolkit.
9. What is  Diff B/W Grid column_2  2* and column_4  2*:
Suppose there  4 columns in grid
Column _2  2*: After the Auto columns are calculated, the column gets part of the remaining width. Column 2 will be one-half as wide as Column 4.
Column _4  2*: After the Auto columns are calculated, the column gets part of the remaining width. Column 4 will be two times as wide as Column 2.
10. Panel:
Provides a base class for all Panel elements. Use Panel elements to position and arrange child objects in Windows Phone applications.

Thursday, 18 June 2015

Java Decompiler installation in LINUX



Download jd-gui from here.

Then install few libraries as show in this tutorial.


$ sudo apt-get install libgtk2.0-0:i386
$ sudo apt-get install libxxf86vm1:i386
$ sudo apt-get install libsm6:i386
$ sudo apt-get install lib32stdc++6
$ ./jd-gui 
 
 
And it works..,

How to install Android Studio on Windows Operating System



  1. First you need to install latest version of JDK. you will get the latest version of jdk here. Download it,
  2. Install latest jdk on your Computer.
  3. Set path of jdk to the system variable as 
  4. Go to computer properties
  5. Advance option
  6. go to system variable and add new variable as "JAVA_HOME"
  7. add set the path of the jdk excluding bin.
  8. Download and install Android Studio from here