Pages

45 [Latest] Bada Mobile OS Job Interview Questions and Answers PDF


Real Time Bada Mobile OS Interview Questions and Answers PDF


•    Can I Set The Image File Path For Markers And Info Windows?
Yes. It is possible to set the path of an image to show in an info window as well as for markers using the SetContent() method.

•    Can I Rotate The Map?
Yes. From SDK version 2.0 onwards, it is possible to rotate maps.

•    Suppose I Am Unable To Get Any Gps Data At My Work Location. What Are The Possible Reasons?
GPS values are not sensed correctly in closed environments. Check the values in an open area.
Especially in indoor environments, GPS signals cannot be sensed. In that case, network positioning can help to get proper location data. Enable the network positioning option under Settings > Location > Network position.

•    I Have Iso 3166-1 Country Code Information From A Server. How Do I Convert It To A Country Name That Is Readable By A User ?
Construct a Locale object with the required country code and get the name of the country from the Locale object
For example:
Locale locale(LANGUAGE_ENG, COUNTRY_US);
Osp::Base::String countryName;
locale.GetCountryName(countryName);

•    How To Change The Locale? Is There An Api For It?
Samsung bada does not support changing locales within an application. However, you can change the locale by changing the language in the Settings menu.

•    Tell Me What Mechanisms Are Available To Establish Communications Between Two Different Applications?
Applications can communicate asynchronously through channels (ClientChannel and ServerChannel). Channels encapsulate the underlying IPC mechanism and communication is simplified through them.

•    How To View Or Check Files That My Application Has Created For Testing Purposes When I Run The Application On The Emulator?
If you want to check for a file in the Home folder, use File::IsFileExist().

•    How To Emulate The Storage Card Availability In The Emulator?
You can do this with the Event Injector. Right-click on Emulator > Event Injector > Device > MMC Insert.

•    How To Secure Or Encrypt My Files And Databases?
You can encrypt files using Construct() with the secureMode parameter.
For example, if you want to create secure files, use File::Construct(const Osp::Base::String &filePath, const Osp::Base::String &openMode, bool secureMode, bool createParentDirectories).
If you want to create secure database files, use Database:: Construct (const Osp::Base::String &databasePath, long openMode, bool secureMode, long option).
Also, bada provides methods for converting normal files and databases to secure, encrypted ones with the ConvertToSecureFile() and ConvertToSecureDatabase() methods.

•    Which Version Of Opengl Is Supported?
Samsung bada supports OpenGL® ES 1.1 and 2.0, which are subsets of the OpenGL® 3D graphics API designed for embedded devices.

•    How To Insert Emoticons In Text?
EnrichedText is the best candidate for this. By using EnrichedText, you can easily mix various styles and resources in text. In this case, you can insert bitmaps into text with the Osp::Graphics::EnrichedText::Add(const Osp::Graphics::Bitmap & bitmap) method.

•    How To Support Multiple Languages?
You can use string resources with resource IDs where each string corresponding to an entry for each language can be added and identified using its respective resource ID. The same can be accessed in your application using the GetAppResource()->GetString( >string id> ) method.

•    Suppose My Application Needs To Store The Application State, Even If It Is Being Terminated By The System. How Can I Do This?
In such cases the checkpoint event is fired and bada provides an event listener (IAppCheckpointEventListener) for it. You can save your application state or context within the OnAppCheckpointing() callback method. You can also save your application sate on OnAppTerminating().

•    How To Bring A Multitasking Enabled Application, To The Foreground Programmatically?
You can use the LaunchApplication() method with the current application's AppId to bring your app to the foreground.

•    How To Change My Application Settings?
Under the menu bada Developers > My Applications > Application Manager you will find a list of your existing applications. Click on the name of the application you wish to modify, then the version. On the details page, click [Modify] button.

•    How To Make My Application Multitasking Enabled?
You can do it in the project properties window as shown below:
Project Properties > bada build > Application Information > check the Multitasking checkbox.

•    Do You Know Samsung Bada Promises To Support Multitasking. What Is The Maximum Number Of Bada Applications That Can Run Simultaneously?
Depending on the memory usage of applications and the physical memory size, the number of applications that can be run at the same time may vary somewhat.

•    Suppose When A User Presses The End Button To Kill The Application, I Want To Stop This From Happening So That The User Can Be Prompted Whether They Want To Save The State Or Not?
No, the application cannot stop itself from being terminated. If you must save the data, you can save it in the onAppTerminating () method, but you cannot provide any UI elements as the application is terminating. An alternative is to provide a settings page to get the user's preferences and use the appropriate logic in the onAppTerminating() method.

•    Can An Application Send An Event To Itself And Capture It?
An application can send user events to itself using Osp::App::SendUserEvent() and capture the event using Osp::App::OnUserEventReceived().

•    Is There A Global Copy/paste Feature? Can I Copy Text From One Application And Paste It Into Another One?
Yes, however it is only available for text. You can do this in the Edit Field to copy/paste from one bada application/native application to another (bada app/native app). Double-clicking or long pressing on some text gives you this option.

•    Will A Running Bada Application Get Key And Ui Events If The Phone Goes Into The Locked State?
No. When the phone goes into Locked mode, the running bada application goes into the Background state. Key events, such as volume up and down or the end key, are not sent to the running bada application.

•    Which Game Engine Has Been Ported To Bada?
AirPlay, a 3D game engine, has been ported to bada, and is now available for you to use.

•    How To Do A Screenshot In Bada?
Screenshots: Home (OK) key + hold key press (press Home key first)
Screenshots are located in /media/images.

•    How To Get Descriptions For Error Codes?
Right-click on the Emulator and select "Error Lookup". Enter the error code number to get the description of the error code.

•    What You Know About Bada?
Bada is an operating system for mobile devices such as smartphones and tablet computers. It is developed by Samsung Electronics. Its name is derived from ocean or sea in Korean. It ranges from mid- to high-end smartphones.

•    How To Upgrade My Firmware?
You can upgrade your firmware by connecting your phone to Kies.

•    Can You Please Explain What Kind Of Options Are Available To Integrate Ads Within An Application In Bada 2.0?
The Ad control supports two types of Ads: Image Banner, and Text Banner. When the user touches the Ad, one of the following actions is triggered:
o    Click-to-Brower: Opens a web page, set by the advertiser, in the default browser.
o    Click-to-Call: Automatically dials a number set by the advertiser
o    Click-to-Store: Launches Samsung Apps Store with the product page defined by the advertiser.

•    How To Load A Local Html File On The Device With A Web Control?
Samsung bada currently supports the "/Home" virtual path, which is readable and writable, as well as the "/Res" virtual path, which is readable for loading local HTML files. Make sure to store local HTML files in the Home or Res folder as per your (reading and writing) requirements, and specify the file path as "/Home/ .html" or "/Res/ .html".

•    How To Add A Scrollpanel, Created Using The Scrollpanel Resource In The Ui Builder, To A Form?
Create a new ScrollPanel and attach it to a Form; the corresponding ScrollPanel resource is automatically created. Double-clicking the ScrollPanel allows you to then edit the ScrollPanel resource.

•    What Types Of Layout Are Supported?
The following layouts are supported:
o    GridLayout
o    HorizontalBoxLayout
o    RelativeLayout
o    VerticalBoxLayout

•    How To Find The Heap Memory Usage For The Currently Running Application?
You can get the available heap memory using the Osp::System::RuntimeInfo class.

•    How To Check The Firmware Version On A Test Phone?
Currently there is no method to do this. However, you can check the firmware version of your device by going to Settings > General > About Phone > Version.

•    How To Make The Result Of Getmaxtransactioncount() Larger Than One?
When constructing a session, instead of using NET_HTTP_SESSION_MODE_NORMAL, use NET_HTTP_SESSION_MODE_PIPELINING.
For example:
r = pSession->Construct(NET_HTTP_SESSION_MODE_PIPELINING, &proxyAddr, hostAddr, null);

•    How To Get The Subnet Mask?
Use the Osp::Net::NetConnectionInfo::GetSubnetMaskAddress() method to get the subnet mask.

•    How To Get The Ip Address Of A Device (both Dynamic Ip And Static Ip)?
You can use NetConnectionInfo::GetLocalAddress() to get the IP addresses (both).

•    Explain What Are The Different Http Session Modes?
HTTP supports NORMAL and PIPELINING session modes. All transactions within these sessions are submitted through the same connection. While only one transaction is processed at a time in normal mode, multiple transactions can be pipelined in pipelining mode. In normal mode, you must wait for the end of the previous transaction in order to submit the next transaction.

•    How To Enable Http Chunked Mode?
1.    Add a header field to a request header for "Transfer-Encoding", set the value to "chunked".
2.    Use the HttpTransaction::EnableTransactionReadyToWrite() method.
3.    Implement the OnTransactionReadyToWrite() method to send more chunks. An empty chunk is considered to be the last chunk.

•    Can We Use The Local Loopback (127.0.0.1)?
Samsung bada does not support it out of the box. However, if you create a socket with your own system IP address, that can act like the local loopback for you.

•    Explain Does Bada Provide Apis For Ssl, Encryption, And Decryption?
Applications can create secure connections by using the Osp::Net::Http class and Osp::Net::Sockets::SecureSocket class. The SecureSocket class uses the SSL protocol to make connections.
The Osp::Security namespace provides all the encryption and decryption classes.

•    How To Simulate Locations?
Right click on the Emulator and select Event Injector > Locations
You can provide the input as a text file or select points on the map.
To use a text file:
0.    Browse to the text file containing NMEA location data as shown below.
1.    Click 'Send file'.
To use the map:
2.    Select the correct map location.
3.    Select points.
4.    Click 'Send log'.
I built the 'Navigator' sample and tried to test it in the Emulator. The program seems to work, but it could not render the map.To use the default location service, the client name and password must be provided in the ROUTE_SVC_EXTRA_INFO defined in the NavigatorConstants.h file.

•    How To Zoom In And Zoom Out On The Map?
You can zoom in by double tapping and zoom out can with 2-finger touch. Pinch-to-zoom (multi-touch) is supported for both zoom in and zoom out.

•    Do I Still Need All The Privileges In The Manifest File When I Use Free Map Apps And The Navteq Ads?
From 2.0 onwards, you do not need to use the deCarta ads library for free maps. Instead, you can use the Ad namespace with Navteq for the advertising network. In this case, the only privilege needed is AD_SERVICE.

•    Is There Any Way For Bada To Set Gps Info While Capturing?
Yes. Samsung bada provides a method to set GPS information. Use the SetExifGpsCoordinates() method to set GPS coordinates in the EXIF field in the captured data.

•    Can I Use Ui Builder To Design Map Applications?
Yes, from bada version 2.0 onwards, the map control is available in UI Builder.

Latest Bada Mobile OS Interview Questions for freshers and Experienced pdf

No comments:

Post a Comment