music player in iphone simulator 4.2 - ios4

I am trying to add music player to my iphone app using the MediaPlayer framework. I dont have a real device with me and want to test it on simulator. But, the simulator doesnt support MPMusicPlayer and crashes when i run the add media app.
Is there a way I could test MPMusicPlayer on simulator?

You can't add music to the simulator so MPMusicPlayer will fail. It will have to be tested on a device.

Related

How to implement barcode scanner functionality in ios?

already i have built bar-code scanner app in android using phone-gap,now i want to implement same thing in ios also,i want use same java script,css files for this ios app also. Give me suggestions how to start i'm new to ios development.suggest me a library that runs on present ios mobiles like iphone 3gs,4...etc.
hi use barcode scanner plugin for IOS link

Is the Simulator or Emulator closer to matching device?

When I run my web application on the Tizen Web Simulator and the Tizen Emulator using the same resolution (HD 720x1280) and density (DPI), the display does not match. Which one is closer to the display on the actual Tizen device?
Tizen Emulator is closer to the actual device because does an actual emulation so it has an OS image build on it.
Web Simulator is simulating the API, the Web Runtime, and some of the connectivity using Chromium's Webkit engine. It is a simulated environment and there is support only fort the HTML5 applications and not for the native applications.
From my experience with the Tizen Web application API, Tizen Emulator was closer to the actual device compared with the simulator.
There is a scale menu for Tizen Emulator. You can find context menu when you click to right mouse button on the tizen emulator. 4 scales available.
1x
3/4x
1/2x
1/4x
'1x' is closer to actual Tizen device. Tizen simulator display is similar '1/2x' scale of tizen emulator for me.
The Emulator is indeed closer to the device display than the simulator.
However, if you want to see how your app would look on a device, why not flash the Tizen image on a device?
they can be found here, and i'm sure instructions are there also:
http://download.tizen.org/releases/2.1/tizen-2.1/

deploying j2me application on old handsets

I was to develop a simple j2me application for microworks. The application is to send sms.
But I found that most of the mobile phone they carry are very simple and even some of them don't have Bluetooth, infrared, browser. How to make it work out?
We can assume configuration as nokia 2100, nokia 1616. How am I supposed to deploy my app on such handsets?
OTA is required to work on every MIDP mobile device, just navigate with the device browser to the jad URL and click it.

Midlet doesnt respond to touch in older touch screen phone

I am very new to j2me. I have developed a basic SMS Banking app. My app works in most phones which are touch and non touch devices (Samsung duos, Monte, Nokia 6120c …, Sony Ericson w300). But when I installed it in a Samsung SGH-D980 it installs and starts fine. But the list element which is the first screen after my loading splash screen does not respond to the touch. I have developed the app using Net beans 7.0.1 and uses CLDC 1.0 and MIDP 2.0. I have tried the defaultfxtouchphone emulator and works fine on it too. My problem is why does it work on some touch phones but not in the above mentioned touch phone. thank you,
The fact that touch events are available to MIDlet at any other phones means nothing in your case.
MIDP specification (JSR 118) does not force implementation to make touch (pointer) events available to MIDlets even for touch device. According to data provided at club-java page, this is exactly the case for SGH-D980:
Touch screen or mouse (hasPointerEvents()) No
Stylus motion events (HasPointerMotionEvents()) No
As soon as device allows to work with your list in non-touch fashion (you wrote nothing that says it ain't so), there is no problem - you just have to live with that.
of course not passing touch events to MIDlets when these are available natively means that MIDP implementation on this device sucks. But that's a different story

Stream/Play audio files on mobile browsers

I am trying to create a mobile website and want to be able to play/stream audio files.I have tried html5's audio tag and tried testing it on opera mobile 10 simulator but it does not work. I have lots of audio files and the audio should be auto played.
sidenote:
Also, i need to test my website for android and iphone mobile phones. I am downloading android emulator for windows. I tried searching for iphone emulator for windows but there are none...
Phone emulators aren't always a good indicator as they do not usually have a media player installed. The best way to test is to find someone with an actual Andriod / Blackberry / iPhone.
You should try the same HTML5 code with an actual phone. Note that Opera Mobile 10 does not have support for the video/audio tag. If you're interested in streaming to mobiles without HTML5, you should check this FAQ entry for more information.

Resources