
This is important because background location might be invoked when the app isn’t Instead of passing a location listener instance you need to pass a Class It starts with the venerable LocationManagerīut instead of using the standard API you need to use setBackgroundLocationListener, but Its also implemented rather differently both in iOSīecause of the nature of background location the API is non-trivial. Background location is even more complex than background media, polling location is generallyĮxpensive and requires a special permission on iOS. This was actually committed last month but documenting this has been a bit more challenging so it got pushedīack a bit. Should allow background playback of music.

You should use that API when you want to create a media stream that will work even when yourĪpp is minimized and this should work for Android.įor iOS you will also need to add a special build hint: ios.background_modes=music.

To get this to work on Android we added the new API: MediaManager.createBackgroundMedia. This support isn’t totally portable since the AndroidĪnd iOS approaches for background music playback differ a great deal. Recently added support for background music playback. Notice you can also use getMaterialDesignFontĪs part of our continuing effort to improve the portability of background processes within Codename One we Where the style object indicates the size and color of the image. If you just want the image to use in any way you see fit you can just use:įontImage img = FontImage.createMaterial(FontImage.MATERIAL_THUMB_UP, style) The API will implicitly extract the button styles and use that to set the right icon into place. The cool part about that code is that you don’t have to define a special font, color or anything!

I can just apply it to a button like this:įtMaterialIcon(getStarted, FontImage.MATERIAL_THUMB_UP) To do that just go to the Material Design Icon CatalogĪnd type the icon name in the search field (or just scroll thru the images).

You can also use one of the huge list of Google’s material design fonts with just one line of code! This reduces the total download size while making the fidelity of the UI much higher.Īs a result of this features like pull-to-refresh, infinite progress, share button etc. Google’s material design includes a really cool mobile friendly icon font and using that for all our builtin features Ideal in terms of syntax/availability especially for simpler apps. However, up until now you had to download a font. A while back and used them quite a bit, recently we added the
