21⟩ 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.
“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”
Samsung bada does not support changing locales within an application. However, you can change the locale by changing the language in the Settings menu.
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);
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.
Yes. From SDK version 2.0 onwards, it is possible to rotate maps.
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.
Yes, from bada version 2.0 onwards, the map control is available in UI Builder.
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.
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.
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.
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.
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.
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.
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.
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.
You can use NetConnectionInfo::GetLocalAddress() to get the IP addresses (both). See the bada API Reference for further details.
Use the Osp::Net::NetConnectionInfo::GetSubnetMaskAddress() method to get the subnet mask.
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);
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.
You can get the available heap memory using the Osp::System::RuntimeInfo class.
The following layouts are supported
GridLayout
HorizontalBoxLayout
RelativeLayout
VerticalBoxLayout