What is the tool to convert images to 9 patch image? where it will be located?
Options
1) draw9patch is the tool name, it is located in android-sdk/platform-tools.
2) draw9patch is the tool name, it is located in android-sdk/tools
3)9patch is the tool name, it is located in android-sdk/platform-tools
4)9patch is the tool name, it is located in android-sdk/tools
Options
1) Implement your own custom View by extenting View class, and then implement onDraw method in it.
2) Take any UI control like ImageView, and draw image using canvas.
3) it is not possible to directly touch Canvas.
4) both option 1 and 2 are right
Options
1) it is part android.graphics.drawable.package
2) it is part of view package
3)it is part of 3D graphics library (open GLES)
4)it is part of kernal
Options
1) If it is disabled onStatusChanged() will be called with provider name.
2) if it is disabled onProviderDisabled() will be called with provider name.
3)either one of the option 1 or 2 will happen
4) There is no way to find it out.
How to get phone locations? which is better network provider or GPS provider?
Options
1) You can use satellite to fetch your locations.
2) You can either use your cell tower information or WiFi-information to know your phone location.
3)using option 1 is faster and more accurate than second option, it also takes less battery power.
4)using option 2 is faster than option1, but how ever it will not give you exact location compared to option 1. takes less battery power.
What will happen if a sensor is not unregistered, after using it for some time?
Options
1) Android will automatically switch off that sensor and stops it.
2) Nothing will happen, but that sensor will keep running in background, with this no side-effect occurs.
3)that sensor will keep running in the background, and consumes lot of battery power un-necessarily.
4) Program will crash