j2me polish PIM List - java-me

I have made an app for j2me Mobile, now I wanted to give it polish effects for which I copied Build.xml and resources folder and the issues were solved, but my project uses javax.microedition.pim.Contact; and I have written my whole code using that API.
When I clean & debug this project it gives error as below
error: package javax.microedition.pim does not exist
import javax.microedition.pim.Contact; //if it asks to import then there should be a way, but what?
I know polish offers its own PIM API as de.enough.polish.pim.PimContact, but I can't change my code for this. What I want to do is to apply polish css effects and run it as polish project but using the javax.microedition.pim.Contact for PIM operations.
There should be some way to use it and I guess there is, I did try to find something useful there but couldn't get it. I am new to polish and J2me so there is possibility of lack of knowledge. But I would love to find a satisfactory answer to this issue.

Strange that being so many users and developers of J2me and Nokia I didn't get the answer of a stupid mistake I was doing since long. I just had to select the PIM api from the selection of target API and devices when creating the object as we know that in all J2me or Nokia uses the Generic javax.microedition.PIM api. Sorry for answering my own question but I think it could be helpful for any other dumb like me. Thanks for bearing

Related

Take panoramic photos in Android

I want to make an Android application that allows the user to take panoramic pictures... I have been searching for several hours for some library or some sample code or tutorial but I didn't find anything very interesting. Some applications like "Cardboard camera" or the standard Android camera can do this! Is there a way to call these application functions? Or some API? It still would be good if the app I want to make just would use an external app to take the photo. Please help me, thank you :)

How to develop Spotify Desktop Applications, now Libspotify is discontinued

have done my due diligence, and not found any other posts that answer this question, but as usual, if you know a similar question, point me that way!
I noticed a long time back that Libspotify has been dicontinued:
(https://developer.spotify.com/technologies/libspotify/)
So, my question is - what should we do for developing Desktop applications?
They do state: "We hope to be able to provide you with a new library for other platforms." But, this has been going on since 2015!
I have seen many projects in GitHub still using Libspotify - so what should we do? An update was promised "in the upcoming months" but I've not seen anything yet.
What should we do for developing Desktop Applications?
We at Spotify don't currently provide playback as part of our platform offering outside of our iOS and Android SDKs, and I don't have any updates on that at the moment. As mentioned on the website, we hope to be able to provide playback SDKs for more platforms in the future. We don't support any new development on libspotify.
You can use the Spotify Web API to interact with Spotify in a variety of ways, including getting information about metadata, and accessing/modifying user libraries and playlists, which may be useful. You can also use the Applescript API to control playback on macOS, which may also help.
The Spotify Web API is pretty straight forward to use. Of course it defines the protocol rather than implements it so it is OS independent.
I put together a few classes to help unwrap some of the JSON parameters simply. These were written in Swift for macOS.

Convert Objective C project to Xamarin

We have an app written in Objective C. It uses CoreData, RestKit, about 10 viewcontrollers.
We would like to migrate it to Xamarin (so we can target Android and Windows).
I was hoping there was a way to bind the current code to a Xamarin solution and kind of rewrite features step by step within Xamarin (eg: replacing a viewcontroller at a time, and at the end replacing RestKit+CoreData, by SQLite + ServiceStack).
I am aware of the binding to Objective C option that they provide, however, it doesn't look to be the appropriate fit for this (way too complex, probably easier to rewrite the app from scratch).
Is there a way to migrate our current project to Xamarin so we can convert? or do we start from scratch?
Thanks.
Options:
Migrate full project - no;
Automatically create binding for libraries, rewrite business-code, UI-code - yes;
Rewrite from scratch using .Net/Mono classes - yes.
If code size is relatively small, you should rewrite the whole app. Moreover, thus you could have a chance to separate business-logic from UI code and tools libraries (RestKit, CoreData). In perspective, that code will be more reliable and cross-platformish.
This tool can help. It does Obj-c to C# translation (some manual cleanup required):
Automagical
Quite probably, a re-write, from scratch. One thing to keep in mind, if your back-end is .net.. and you are using DTO's.. like with AutoMapper from Entity Framework objects.. you'll be able to re-use those DTO objects on your mobile side with Xamarin. If you are using OData, I'm not sure if this is still a problem, but Xamarin studio wasn't generating OData service clients. So you had to generate them in Visual Studio, then take the generated client code and throw them into your Mobile projects.
sqllite-net is awesome. I've never had any problems with it.
https://github.com/praeclarum/sqlite-net
I currently have a project, with DTO Objects from an Azure WCF service, that I push directly down into SQLLite objects on IOS and Android with Xamarin. I use RestSharp, rather than Service Stack. I should probably go learn the difference.
If you are looking to use SQLCipher from the Component store, to encrypt your sqllite db locally on your device (Good advice to do so), you should be aware that there is an issue in android.. going to 2.2 or 2.3 with SQLCipher. Works for ICS and above though, if I remember right.
Just be careful on your security implementation for allowing clients to connect. I want to say.. don't take too much advice.. and don't take too little either. : )

where can I find some good examples for beginner on J2ME Polish

I am a beginner in the mobile application developemnt. I just started with J2ME, I have to work with J2ME Polish. Can any one suggest me where can I find examples on the J2ME polish like the hello world program for a java developer.
Thanks.
If you have downloaded Polish, you already have them in the samples folder. The given examples probably get you started. The online help is also quite extensive.

Is it possible to modify code generated by PhoneGap and how would this effect apps market application process?

Is it possible to modify/supplement code generated by PhoneGap to modify/add functionality? And how does this effect the application's likelihood of being accepted into the apps market?
The reason I am asking is because there are certain components of the desired iPhone application that we would like to have that we can not achieve with our converted CakePHP web application. These desired items include QR code scanning and augmented reality.
Yes, you can do that.
https://github.com/phonegap/phonegap-plugins
You can look there for already written (and validated) plugins.
If I remember correctly, a qrscanner plugin already exists.
Augmented reality it not really possible with phonegap. (At least not as far as I know) As you can't manipulate the camera view with phonegap.
Maby if you would write a plugin for it. But that would mean writing almost the whole application in objective-C.

Resources