First of all, I'm trying to create the Symbian UI from scratch. But j2me comes with a fixed signal bar. Can I change it? Second, is it possible to create the UI using j2me?
In s60 2nd edition phones j2me provides a system property to get the signal strength that is:
System.getProperty("com.nokia.mid.networksignal");
It gives the value as <number of bars> (amount in dBM) e.g. 6 (95dBM) or something.
Hope it helps.
You can't do this at all using J2ME, as there is no way to find out the current signal strength.
However you can do this in native Symbian using the CTelephony class.
Related
I'm trying to build a bluetooth-receiver which can control the different media players on my smartphone (Spotify, Apple Music...) using the BlueZ D-Bus Media API:
https://github.com/pauloborges/bluez/blob/master/doc/media-api.txt
Most functions work fine so far (e.g. Play(), Pause(), Next()...). At the moment I'm struggling how to implement the commands from the position bar. When I move the slider in the position bar I want the playback to jump to that position. Unfortunately BlueZ D-Bus Media API does not offer a method like SetPosition() or something like that.
The best solution I found so far is to use the methods FastForward() or Rewind() multiple times which jump through the playback in 10-second-steps. That works fine for short songs but takes way too long (many seconds) for podcasts which are often longer than one hour.The ideal would be a method which can set the position of the playback depending on the slider in the position bar.
My question: Is there any way to set a specific position of the playback?
Many thanks
The Bluetooth A/V Remote Control Profile does not provide for setting a dedicated position within a media file. Therefore, I am afraid that this function is also not available in the BlueZ Media API.
I have a project using quadcopter(ARDrone).
And i want to controlled it unmanned indoor, using arduino board and iBeacons.
iBeacons send signal strength and floor info to arduino board(inside ARDrone connected main board) and iphone for searching location in building. Project is just controlling drone to go to iphone's location by itself. All calculation parts are managed in server.(triangulation etc.)
Here are the questions.
How can arduino board receive bluetooth 4.0 signal and send it to
server? 4.0 signal can be received by bluetooth 2.0 module?
Do i need to build bluetooth 4.0 receiver module? Or are there any other ways?
In server, complicated calculation will be managed by programs in c++ language but simple things are handled by web language. php? jsp? or other lang which one is better?
and some hints for this project.
I really need your help. thanks;)
3. The calculations to identify the location from the received signal strength and location of the Beacons are fairly straightforward, so should be fine in which ever language you prefer. You will need to use Trilateration, once you have converted RSSI (received signal strength) into a distance.
4. The major challenge you will have is getting accurate distances, iBeacons as you know use Bluetooth LE, what you may not know is that this operates on a Microwave wavelength and so is easily disrupted by humidity in the air, as well as other objects like people. This means that the RSSI readings will jump about a bit, a basic way to overcome this is to take an average over several readings, even so the distances found will be rather inaccurate in many circumstances. To get an idea of the kind of readings that you will get for distance without compensating for environmental factors have a look at my presentation: "Factors effecting positional accuracy of iBeacons", that is based on Estimote iBeacons, but should be relevant for other brands as well, but you will need to do your own experiments to work out the relative errors. I was seeing distance readings that were +-2M away from the real location.
My name is Wojtek Borowicz, I'm a community evangelist at Estimote.
To add to what Chris Thomson (BTW, cool slide deck!) - your first two question can basically be reduced to a single answer: you need your receiver to support Bluetooth Smart on both the hardware and software side. So yes, you need a Bluetooth 4.0 module to receive Bluetooth 4.0 signal and you also need a Bluetooth 4.0 stack for your receiver to be able to 'interpret' that signal.
I would like to list all the input devices available when I launch an application, but I can't find a way to do that in the API.
How can I get a list of available keyboards, mice, gamepads, touch screens, accelerometers...
Haxe is a programming language that compiles to other languages. There are projects that use the compiled haxe code to deploy to different runtimes. For example the NME framework compiles to neko, html5, flash, mobile etc. So your question doesn't really make the strictest sense.
I doubt there is an api for getting a list of the available input devices in nme as generally it will be evident. You could however go through the api one input at a time to test if its available or working I guess.
Do you have a special need for this? generally people usually use compiler conditionals to determine these things eg;
#if mobile
//your touch input code
#elseif desktop
//your mouse / keyboard code
#end
There is exist Joystick API in OpenFL for gamepads.
Each event has an “device” property, which specifies which input device the event is coming from. In this way, you can support multiple joysticks or (probably) gamepads in one game.
http://www.joshuagranick.com/blog/?p=692
It would be great if anyone could provide a tutorial or best approach to create a dynamic speech bubble in iphone. Here is the link of an application that already has a dynamic speech bubble built in - http://itunes.apple.com/us/app/bubble-up-free/id364054415?mt=8 . Since I am starting to develop applications in xcode I am not sure whether to approach this using quartz 2d or open GL etc.
http://www.uinnoblog.com/sms-bubble-ui-in-iphone-apps.html
The previous approach is not really the good one where you can use only one image and use the advantage of the stretchableImageWithLeftCapWidth / topCapHeight according with a setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin of an UIImage allowing to stretch an image by its width and/or height without stretching all angles...
In that case, your speech bubble image will be smaller, you'll need only one (instead of 9) AND your code will be really smaller...
Here is good cocoa UI Component on GitHub: https://github.com/AlexBarinov/UIBubbleTableView
Is it possible to disable noise cancellation for the microphone in Android (specifically 1.5) via code?
I want to create a dumb MicrophoneApp that records all the background noises, but I believe that noise cancellation for the microphone is getting in the way. I know you can do it if you root your phone and edit settings (ie this article), but I want to make it without root the phone.
Noise filters in audio recording sources on Android vary greatly from device to device. It isn't until Ice Cream Sandwich that any sort of definition was put into the device compatibility document defining a method for not having filtering. That method id to use the MediaRecorder.AudioSource.VOICE_RECOGNITION audio source. Before that it's just choose a setting and hope for the best. I've found that some devices work better with MIC and some with VOICE_RECOGNITION prior to 4.0. HTC seems to have started the use fo VOICE_RECOGNITION as a no-filter zone pre-ICS.
Since there is no loop-back audio interface you can't even detect it but you can surface different audio paths to the user to choose from.
i dont think without rooting the phone you can change microphone behaviour. noise cancellation is more a function of second microphone than some software, and to alter some hardware you would require super user privileges.
Ok, noise detection and cancellation is done using two microphones and android simply differentiate both signals coming from each one of them and get the right signal of the speaker, Sony Ericsson Neo have the noise mic in the back of the phone, simply you can disable the second mic and you will get the full signal.