Copyright not available Nokia Location API (OVI Maps) - java-me

I have made a simple J2ME application using Location API to show maps on my application, when I run it on Nokia Mobile it is working fine but When I try to run it on Samsung mobile I got that error
Copyright not available
could anyone please help in that
I'm using the code in this tutorial
http://www.developer.nokia.com/Community/Wiki/How_to_calculate_and_show_a_route_with_Java_ME_Location_API
it is working fine in Nokia C2 but it is not working for any Samsung mobile and produce the previous error

The Nokia Maps API for Java has been designed to work on any Java ME device, without making it specific to Nokia phones. Given the wide range of Java ME phones out there it is likely you have come across some sort of unforseen compatibility issue. (Obviously the majority of testing has occurred on Nokia phones)
The "Copyright not available" message states in full that:
An error occurred while trying to download the copyrights.Please check
your internet settings.
The downloading of copyright information via http is the very first thing to be done when initialising a MapCanvas, since Nokia itself is obliged to display the copyrights on its maps where the map data has been bought in from third parties.
My guess is that either the Samsung device you are testing with is not correctly configured to connect to the Internet (maybe there is no SIM card?) or alternatively the Samsung firmware is misinterpreting the URL for downloading the copyrights as invalid.
The misinterpreted URL issue has also been observed using the Sun WTK, and the workaround (shown below) is to use the Map servers hosted in China for non-compliant SDKs as the URLs are formatted slightly differently and the devices are generally more forgiving.
// Due to an issue with the hostnames that are used it is not possible to use
// international maps at this stage on the WTK emulators. Most devices and the
// Nokia emulators do not suffer from this limitation.
if ("SunMicrosystems_wtk".equals(
System.getProperty("microedition.platform"))) {
ApplicationContext.getInstance().setChina(true);
}
Obviously you''l need to use the correct values for System.getProperty("microedition.platform") to get this to work.

Related

Building Liblinphone for iOS

I am planning to develop an iOS application where I need to use VOIP services. I found Liblinphone which is one such open source API for VOIP.
My requirements:
Making voice call & receiving
Making video calls & receiving
Making voice call conferences.
Are these all possible with Liblinphone? Are there any other opensource VOIP libraries for achieving this better than Liblinphone?
Any help and tutorial links are a big helpfor me.
You may take a look at siphon (http://code.google.com/p/siphon/).
From their homepage:
Home of the World's first free SIP/VoIP application for iPhone and iPod Touch 1 and 2.
Siphon SIP/VoIP project is the first in his category that works on iPhone and iPod Touch 2 with headset for all SIP providers. It is a native application approved running on 2.X using internal micro/speaker and headset.
The Application supports the SIP standard, preserving compatibility with hundreds of SIP providers and offers a GUI which preserves the apple design of native iPhone applications.

Sony Smartwatch Emulator: Getting started

I downloaded Sony's most recent SDK which includes an unusual Emulator that is an APK that runs on an Android phone (I guess that is what you do with it).
Anyway I see no documentation about how to use this to test/deploy apps.
Am I supposed to have 2 phones and one runs the emulator and the other runs the "host application" or do I run the host application on the same phone or what?
Nothing that I can find in docs explains this.
So I've figured this out (sort of). You run the emulator on your phone, then run the Smart Extension app on your phone as well (so no bluetooth connectivity like when you have a real smartwatch).
Phone also needs to have the SmartConnect (previously LiveWare) app and the SmartWatch app installed (I think). So that's three apps (emulator, SmartConnect, SmartWatch app).
Anyway, my actual smartwatch arrived in the mail shortly after I posted the original question, so I probably won't be using emulator much anymore.

External Accessory Framework EAAccessoryManager connectedAccessories returns only 1 accessory on iOS 4.2 when there should be more

Calling the connectedAccessories method on the EAAccessoryManager returns a list with only a single accessory (seemly randomly chosen from the available connected accessories in the Bluetooth screen) when running on iOS 4.2 using an iPhone 3GS.
In retrospect - on iOS 5.0 on an iPhone 4 the method returns the correct list of accessories (currently tested up to 2). According to the documentation iOS 4.0 should return a list of accessories however it fails to mention if this can contain more than one item. (Apparently in iOS 3.0 only one device WAS supported).
The EAAccessoryDidConnectNotification notification is also only fired once for the randomly chosen accessory when running on iOS 4.0; Disabling the accessory results in the appropriate EAAccessoryDidDisconnectNotificiation for that accessory. Re enabling the accessory doesn't result in any further notifications without returning to the bluetooth settings menu and re connecting the device (but that's another annoying issue). Visiting the bluetooth connection screen reveals the originally connected accessory no disconnected and my second accessory connected but further calls to the "connectedAccessories" method still returns an empty list.
Viewing the console logs from the phone I can see the bluetooth system connecting and monitoring both devices but somewhere along the line this isn't been presented via the External Accessory Framework.
If anyone has any helpful info on this issue that'd be great -- it seems there's only a small number of iOS developers that have even worked with this framework so finding anything other than copies of the original apple documentation is rather difficult :-D.
To summarise:
Is it possible to detect multiple accessories from iOS and connect and open sessions for multiple devices. I've found this is possible in iOS 5.0 on iPhone 4.
Many thanks,
Chris

J2ME nokia s40 development

I am using S40 SDK to develop my application.My application requires to communicate with files stored on memory card.But I am helpless that how to put the files on memory card in SDK ?
I am using Eclipse IDE for developing application.
I believe <SDK installation directory>\bin\Storage\<instance identifier> is where the files are stored by the emulator.. Instance identifier is visible in the title area of the emulator application. It is a number that looks like a phone number.
You want to put files on the memory card within your application? You need to read about JSR75 FileConnection.
Check the following links to get more info:
FileConnection API
File Connection Using J2ME api JSR 75
Getting Started with the FileConnection APIs
One more info: Make sure your device supports the FileConnection API.

J2ME Camera and Sound Recorder Access On A Windows Mobile

I'm currently involved in a research project that requires me to access a Windows Mobile Camera and sound recorder with J2ME to, well take pictures and record sound... the phone has to be a windows mobile for some reason that has nothing to do with me and the software has to be written in Java, also not my decision.
So I need to try and find a phone that supports this (if one exists) so I'd like to know if anyone has found one?
Thank You For Your Help.
(Note the phone supporting MMAPI (JSR 135) does not imply that you can use the camera and sound recorder, our current phone has this and has not access).
First, if you have any Windows Mobile 6.x device, please try to use JVM build for Windows Mobile from Sun Microsystems => http://blogs.oracle.com/javamesdk/entry/jvm_for_windows_mobile
Or, you can buy LG Monaco (WM 6.5) from AT&T network. It has Java ME with MMAPI camera support. Also, LG Incite (WM 6.1) have MMAPI camera support.
As I know, recent HTC WM device with Java ME also support MMAPI camera features.
Good luck.

Resources