How to get the emulator's phone number in midlet? - java-me

Usually the emulator's phone number is displayed on itself (example: 0555555555).
I want to get that number from midlet.
In other words, is there any method to retrieve the emulator's or phone's mobile number ?

Related

Assign a name to a physical device in Android Studio?

I have two Pixel 4s connected for testing/debugging. They both show up as Google Pixel 4 [uniqueID]. Is there a way to change the displayed name, to make it easier to tell them apart without me having to remember each uniqueID?

Samsung Galaxy Tab 1 layout problems

I'm having trouble running my app on the Galaxy tab original 7". It appears to make everything 1.5 times bigger, i.e. if I specify 40dip for a textSize in my layout, it will display as 60 dip when I run it on the tablet.
I tried messing around with the display metrics and changing the density and densityDpi to 1. (When I run a toString of the display metrics in the Galaxy tab 2, they are both 1, whereas the Galaxy tab 1 has values of 1.5)
The app runs very well on every phone I've tested it on, and on the Galaxy tab 2, so I can't figure out what the problem is. I even tried creating a dummy app with just a textView with a size of 40dip, and it still converted it to 60.
Any ideas?
Does the answer to this question help you? Seems that he is having the same (or similar) problem.
Android layout on emulator vs device
Android, concerning the User Interface design

how do you control Alert behavior on J2ME phones?

I'm testing my midlet on 2 different Nokia model phones: 7210 Supernova and 6600 Fold.
Both are S40 5th ed SP1, still I get a different behavior with the alerts and I was wondering whether there is a way to fix that.
At various times my MIDlet beeps and puts up a self-dismissing Alert for n seconds (meaning it goes away after n seconds unless the user dismisses it earlier).
If that happens after the phone goes into screen saving mode (darkens), this is what happens:
on the 7210 Supernova, the screen lights up, you see the alert, and if you don't touch it it dismisses itself after n seconds and you can see the background screen - this is the desired behavior.
on the 6600 Fold, you hear the beep, but the screen remains dark. If you now press some button the phone lights up, but only then it displays the alert. The rest is similar. But this is problem because the whole MIDlet is at a stop until the user hits a key.
So I can fix it by not displaying this alert on phones that behave like my 6600, but I still want it on phones that behave like my 7210. Is there a way to check for this
programmatically? what do you check for?

How to increase size of sip qwerty keyboard on windows mobile 6.53? (VC++)

In an input text field, the user taps at the Soft Input Panel keyboard to bring it up. Unfortunately, the keys are so tiny! Is there a way from VC++ (VS2008) to resize it so the buttons are larger?
I dont know how people use it - the keys are so tiny, that even with a stylus, one ends up typing the wrong keys. I could not figure out how to increase the size of the SIP panel from the default 80 pixels to something larger. I found this SIP sample but it does not set the size C:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\HandleSIP
It is not simple, but you can provide a custom Soft Input Panel (SIP).
MSDN has an article titled Programming a Software-Based Input Panel that details the technique.

how to change the input mode of the mobile using j2me (MIDP2.0)?

I am working in j2me midp2.0 environment. Now, I want to draw String (custom item) based on user key pressed event. Here, my problem is, some phones default input mode is numeric and I can't be able to draw Strings. How to change this input mode to Strings and vice versa?
I think you manually get the key values and change it. On key press event you find which key pressed based on that you write a login to get numeric values or character, etc.

Resources