J2ME Image not Found - java-me

I am working on a menu with just simple image
Image x = Image.createImage("numbers.png");
listMenu.append(counter, x);
it's working well on the emulators with the Micro Edition SDK 3
but when I use the Nokia emulator S40 or deploy to my mobile S60
it's not working, it gave me "Cannot read numbers.png"
any ideas?

I recommend you put your images in a res folder in your MIDlet's root directory. Your createImage() call then becomes:
Image x = Image.createImage("/res/numbers.png");

Related

How to fix Android emulator with image above API 30 stuck on google logo on linux

I have been trying to create an emulator with an emulator image above API 30 but every time I launch the emulators, they get stuck on Google logo.
When I wait I get the error on the image bellow:
I have tried to create AVD's with or without the PlayStore icon. And I have also tried to pick devices with all kinds of screen resolutions. I have launched the emulator from both Android Studio & the terminal. None of the solutions I have found like this one have worked for me.
Devices with image API <= 30 work fine.
My system is a Fedora, Linux with 16gig ram & Core I3 intel processor
I just switched to cold boot in advanced settings.

Flutter Desktop Application Image Picker

I am building Flutter Desktop Application . I am facing many issues .
I want to pick a image from Flutter desktop and need path in return But no plugins are supported .
Help me regarding this issue .I hope you will reply me as soon as possible.
Hi did you use file_picker pub its support for the flutter Desktop its also return file path

How to play a local movie file with AVPlayer in Tizen TV App using Tizen Studio

I have a mp4 video file that's located in a Tizen TV app. I created an image directory and placed the mp4 file along with other images used in the app.
In Tizen IDE Rev2.4, I was able to access the file and play the video by accessing it as below.
/opt/user/apps/{package_id}/res/wgt/images/FILE-NAME.mp4
With the new updated Tizen Studio 1.1, the above path throws an invalid URI error in AVPlayer.
How can I access to the locally stored video files using JavaScript? I couldn't find any answers on Tizen developers sites.
Thanks for your help in advance.
The new generated file path to the file is
file:///opt/usr/home/owner/apps_rw/{package_id}/res/wgt/images/FILE-NAME.mp4

onclick playSound Method not working in intel xdk

i am not able to play the audio file onclick of a button.
here is the code i got from the xdk website.
function audioBtn()
{
// play the sound
intel.xdk.player.playSound("sounds/anything.wav");
}
the audio location is:
C:\Users\abc\Documents\pqr\www\sounds\anything.wav
Thanks in advance....
Intel XDK Emulator doesn't support playing audio files using the intel.xdk Player object, but this does work within the Intel App Preview mobile app for testing by scanning the QR Code under the Test tab.
For example, you can play audio files (supported by your platform of course) within your application in App Preview or on device as follows
intel.xdk.player.playSound(intel.xdk.webRoot + "sounds/anything.wav");
intel.xdk.webroot contains the path for the www/ directory.

Midlet throws javax.microedition.rms.RecordStoreException: error opening record store file in Samsung emulator

I'm using the Samsung SDK 1.2.0 Beta in Netbeans 6.8. I'm trying to test my midlet for accessing the record store management system.
This statement
RecordStore rs = RecordStore.openRecordStore("Store", true);
runs fine when I'm using the Nokia SDK but it throws a RecordStoreException when I used it on Samsung.
I already discovered what's wrong. I installed Samsung SDK to a different folder with spaces instead of installing it to the default folder which is "C:\Samsung_SDK_120_Beta" or to another folder without using spaces.

Resources