Thursday, 13 April 2017

Frequently asks Interview Question For Android Development

- Activity and Fragment Lifecycle
Ans:- http://baiduhix.blogspot.in/2015/08/android-how-to-do-findviewbyid-in.html
 http://www.vogella.com/tutorials/AndroidLifeCycle/article.html

- InApp Purchase:-
Ans:- Used to purchase or Subscribe a product or Service from google play store.
 Main 3 Callback important in InApp-Purchase
 1) PurChaseFinish Listener = Call when finish purchase process.
 2) QueryInventory Listener-  Call every time InApp Activity Call. Gives Desription about Product weather it is Purchased or not in past, it's price, trancation id, date (if Purchased) or any other details
 3) ConsumeFinishListener -  There are 2 types of Product Consumable and non-consumable. Consumable Product are Consume by code. And It's successfully give response after consume in this callback Listener.

- Payment GateWay - Stripe
Ans:- https://stripe.com/

- Service
Ans:-  http://www.onsandroid.com/2011/12/difference-between-android.html

- Intent
Ans:- Explicit intents specify the component to start by name (the fully-qualified class name). You'll typically use an explicit intent to start a component in your own app, because you know the class name of the activity or service you want to start. For example, you can start a new activity in response to a user action or start a service to download a file in the background.
        Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it. For example, if you want to show the user a location on a map, you can use an implicit intent to request that another capable app show a specified location on a map.

- BroadCast Receicer
Ans:- Broadcast Receiver is used to Execute Register Event in Application. There are some Default broadcast receiver like bettry low, InComing message comes.
 See for exported :- https://developer.android.com/guide/topics/manifest/receiver-element.html#exported

- Newly Android OS Viersion Features
Ans:- https://en.wikipedia.org/wiki/Android_version_history

- Parent layout of All layout (e.g Liniar Layout, Relative Layout)
 Ans:-  ViewGroup

 - Difference between ListView and RecyclerView
 Ans:- http://stackoverflow.com/questions/26728651/recyclerview-vs-listview

 - Adapter used with RecyclerView
 Ans:- RecyclerView.Adapter<ViewHolder>

 - Difference between RelativeLayout and FrameLayout

 Ans:-
 FrameLayout - designed to display a stack of child View controls. Multiple view controls can be added to this layout. This can be used to show multiple controls within the same screen space.
 RelativeLayout - designed to display child View controls in relation to each other. For instance, you can set a control to be positioned “above” or “below” or “to the left of” or “to the right of” another control, referred to by its unique identifier. You can also align child View controls relative to the parent edges.

 - Diffrence between Thread and Async Task
 Ans:- http://www.onsandroid.com/2011/12/difference-between-android.html

 - External Libraries like Firebase, butterknife, Glide, Google Analytic
 Ans:- Need to find in Internet

 - Explain About Material Design
Ans:- https://developer.android.com/training/material/index.html

- Different between Fragment Add and Replace
Ans:- http://stackoverflow.com/questions/18634207/difference-between-add-replace-and-addtobackstack

- RealTime Database
Ans:- http://www.androidhive.info/2016/10/android-working-with-firebase-realtime-database/

- How to Stop Default Broadcast to catch Another application
Ans:- via exported=false attribute in Mainifest in when Broadcast registered

- What Happen when 2 different activities  gives Category Launcher
Ans:- Its Make 2 Different Instance of Application

- Restrict to access another class object without private keyword.
Pending

- Content Provider with Examples
Ans:- http://www.compiletimeerror.com/2013/12/content-provider-in-android.html


- Whats is Build Config ?
Ans:- https://developer.android.com/studio/build/index.html
http://stackoverflow.com/questions/30279304/how-to-use-build-types-debug-vs-release-to-set-different-styles-and-app-names
http://www.myandroidsolutions.com/2016/06/16/android-build-types-flavors/#.WKaSa3V9600


- Different between Permission and uses-permission tag
- <uses-permission> is for  default Android Permission And <permission> is for custom permission.



- What is Gradle ?
Ans:- http://stackoverflow.com/questions/16754643/what-is-gradle-in-android-studio



- String s1 = "Sohel", String s2 = "sohel" so s1==s2 ??
Ans:- true.


- Program from Activity A to Activity B and Method Calls in it.

  A to B

  A--> onPause
  B--> onCrete, onStart, onResume

  Backpress of B (B to A)


  B--> onPause,onStop,onDestroy
  A--> onResume


- What is Bound Service
Ans:- https://developer.android.com/guide/components/bound-services.html


- What is Product Flavor ?
Ans:- https://developer.android.com/studio/build/index.html
http://stackoverflow.com/questions/30279304/how-to-use-build-types-debug-vs-release-to-set-different-styles-and-app-names
http://www.myandroidsolutions.com/2016/06/16/android-build-types-flavors/#.WKaSa3V9600



 ============================ New Layouts =======================================================================================================================================================================================================================================================================================================

 - AppBarLayout
 Like whatsapp, on scrolling of listview, automatically toolbar gets hidden. This can be achieved using the Android AppBarLayout, Use this layout to hide the actionbar or appbar when the sibling view is scrolled.

- NestedScrollView
NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.

- CoordinatorLayout
  The CoordinatorLayout is a super-powered FrameLayout (according to the official documentation). Child views can also interact with one another.
  By default, if you add multiple children to a FrameLayout, they would overlap each other. A FrameLayout should be used most often to hold a single child view. The main appeal of the CoordinatorLayout is its ability to coordinate the animations and transitions of the views within it. Using xml only, you can describe a layout where a FAB moves out of the way of an incoming Snackbar, for example, or have a FAB (or any other View really) that is apparently attached to another widget, and moves on screen with the widget.

================Collection In Java=========================================


- Collection in Java
Ans:- http://beginnersbook.com/java-collections-tutorials/


ArrayList:-

Arraylist maintains the insertion order.
Elements gets sorted in the same sequence in which they have been added to the Arraylist.
Searching abject is very easy. get and set process of object is also easy.

LinkedList:-

LinkedList almost same as ArrayList.
Search Process is slow than Arrtaylist.
Deletation process of object is very fast compare to Arraylist.
Insertion process fast compare to ArrayList.

Vector:-

Vector gives poor permance of  searching, adding, delete and update of its elements.
Maintain Insertion order like ArrayList.

HashMap:-

HashMap maintains key and value pairs.
It is not an ordered collection which means it does not return the keys and values in the same order in which they have been inserted into the HashMap.
It neither does any kind of sorting to the stored keys and Values.

TreeMap:-

TreeMap maintains key and value pairs.
TreeMap is sorted according to the natural ordering of its keys.

LinkedHashMap:-

TreeMap maintains key and value pairs.
LinkedHashMap maintains the insertion order.

HashSet:-

HashSet doesn’t maintain any kind of order of its elements.
HashSet doesn’t allow duplicates.
If you try to add a duplicate element in HashSet, the old value would be overwritten.

TreeSet:-

TreeSet sorts the elements in ascending order.
TreeSet is similar to HashSet except that it sorts the elements in the ascending order while HashSet doesn’t maintain any order

LinkedHashSet:-

LinkedHashSet maintains the insertion order.
Elements gets sorted in the same sequence in which they have been added to the Set Like Arraylist

No comments:

Post a Comment

Run/install/debug Android applications over Wi-Fi ?

Open Teminal/cmd --------------- Below steps is for Android 10 or lower Step 1 - Connect the device via USB and make sure debugging is work...