Bada Interview Preparation Guide
Download PDF

Bada frequently Asked Questions by expert members with experience in Bada. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts

44 Bada Questions and Answers:

Table of Contents:

Bada Interview Questions and Answers
Bada Interview Questions and Answers

1 :: How to upgrade my firmware?

You can upgrade your firmware by connecting your phone to Kies.

2 :: 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:

Click-to-Brower: Opens a web page, set by the advertiser, in the default browser.
Click-to-Call: Automatically dials a number set by the advertiser
Click-to-Store: Launches Samsung Apps Store with the product page defined by the advertiser.

For more info, refer to the Osp::Ads::Controls namespace in the help file.

3 :: 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".

4 :: 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.

5 :: Tell me what types of layout are supported?

The following layouts are supported
GridLayout
HorizontalBoxLayout
RelativeLayout
VerticalBoxLayout

6 :: 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.

7 :: 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.

8 :: 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);

9 :: How to get the subnet mask?

Use the Osp::Net::NetConnectionInfo::GetSubnetMaskAddress() method to get the subnet mask.

10 :: 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). See the bada API Reference for further details.

11 :: 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.

12 :: 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.

13 :: Tell me 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.

14 :: 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.

15 :: 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:
1. Browse to the text file containing NMEA location data as shown below.
2. Click 'Send file'.

To use the map:
1. Select the correct map location.
2. Select points.
3. 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.

16 :: 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.

17 :: 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.

18 :: Please tell us 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.

19 :: Tell me can I use UI Builder to design map applications?

Yes, from bada version 2.0 onwards, the map control is available in UI Builder.

20 :: Tell me 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.

21 :: Tell me can I rotate the map?

Yes. From SDK version 2.0 onwards, it is possible to rotate maps.

22 :: 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.

23 :: Suppose 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);

24 :: 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.

25 :: 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.