Create a Blackberry application with a webview (webapi) on OS 4.5 - blackberry

Anyone have some source code or something to do an application with html content?
I found it more easy than learning Java.
I want to do something like the phoneGap does but it works only with OS 5.0 and higher.
I found BrowserField but wouldn't work with 4.5 (field2 api not found), and BrowserContent I found it more difficult to learn.

There is no way to make a PhoneGap or any webworks-like application for SDK 4.5.
The reason is simple, SDK 4.5 does not support BrowserField2 class, this class plays the main role in rendering of webworks application.

Related

debugging rubymotion wrapped web view

I'm trying to debug the webview wrapped by a "native" iOS rubymotion app, but I'm not sure what tools exist to do this. Specifically, I'm trying to debug the CSS and HTML of the application. Is there a way to do this using rubymotion or some other toolkit?
Here is how to do it for Android : https://developer.chrome.com/devtools/docs/remote-debugging#debugging-webviews
I would look for similar on iOS, or perhaps you can use Android for development then convert to iOS.

MVVMCross + SQLCipher = impossible?

I'm a beginner in developing iOS apps with Xamarin and MVVMCross. MVVMCross fits perfectly on top of the Xamarin developing platform and its features are outstanding! I've watched several of the MVVMCross N=x tutorial videos on youtube, what helps me a lot to understand how to use the framework.
The iOS app i'm currently working on should use a database encryption, to secure the data. Therefore i wanted to use the Xamarin SQLCipher component. And here come my problems into play:
As far as i know it is a platform specific library, but i wanted to write a MVVMCross-SQLCipher-plugin, like the SQLite Community Plugin, which is separated in a PCL core and a platform specific library. Any suggestions how i can do this or is it impossible because of the SQLCipher-architecture?
We used the standard SQLite implementation included in MvvmCross and just swapped the binaries for SQLite to SQLCipher out and it works fine.
I believe all the calls are the in both binaries so there should be little else requried just make sure you set a password on the database when you do:
new SQLiteConnection(databasePath, password)

IOS Phonegap 3.X: Lock page orientation during runtime

I am developing a webapp using phonegap + sencha touch, and I want to lock orientation on certain pages during runtime. I found this phonegap plugin , but it's not working for phonegap 3.X.
I also found something about a js function which named 'shouldRotateToOrientation', is it provided by phonegap? And it seems just works in multi-page(html files) app, my sencha touch app only have one html file.
So, how can I do that? Any help from you will be greatly appreciated.
i know this is not really a valid "answer" but SO doesn't let me comment with <50 rep. anyway, i noticed it's not that difficult to set up an old plugin to be used with cordova 3+. adhere to the folder structure (which you can see in existing cordova plugins like "device"), create a plugin.xml and install the plugin with plugman. read the documentation about plugin development and you should be good.
you will especially have to replace the function header in the ios files. replace
-(void)setAllowed:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
with
- (void)setAllowed:(CDVInvokedUrlCommand*)command
This is a phonegap plugin for android/ios.
https://github.com/yoik/cordova-yoik-screenorientation

Phonegap and iPhone apps

I want to build an iPhone app, but I only know PHP, JavaScript, CSS and HTML. I heard that I can use Phonegap to build the app in javascript and it converts the JavaScript to Objective-C. Is that true? The phone gap documentation was hard to understand. What other solutions do I have?
Yes and no.
Phonegap (nowadays known as Apache Cordova) enables you to bundle web pages/applications as native phone apps. It also provides you with some JavaScript bindings to native phone APIs that you otherwise wouldn't be able to access (=with a plain webpage). These bindings include (just to name a few) Accelerometer, Camera and Compass. That's pretty much all it does - you still have to figure out how to write your application with JavaScript, HTML and CSS.
Try out how it works by checking out "Getting Started with iOS".
If you know all these languages you mentioned that is well enough for developing an iOS App(as well as you can develop the same apps in Android).
I would suggest you to go for PhoneGap(Cordova) framework to develop these apps. Using this framework you'll have to use HTML/HTML5, JavaScript, CSS, PHP and get the iOS App running on your device. Here to StartWith and then check out APIDocs. You will always get a lot of tutorials on google itself.
You can also refer This Question for gathering some knowledge about other frameworks available in market.
Hope it helps.
I would suggest Phonegap, but you can't use PHP with Phonegap apps directly... There are a few hacks around this though.
Although Phonegap is supposed to be "one codebase, distribute everywhere", if you want a really great looking app you'll have to spend a liitle time adjusting the UX for every platform or device. The thing I really like about Phonegap is that you can open up a HTML page locally on your browser and move thing around in firebug, making the process faster.

Creating OpenFeint static library for iOS

I'm trying to create a static library of Openfeint for iOS, to use it in apps with only C++ calls. When I try to run the cocos2d-x test project with that library linked, the app is going frozen with any OpenFeint call. However, if I don't create the library and I add the sources directly to the test project, it works perfectly. I'm working with SDK 5.0, Xcode 4.2 and deploying target 4.2 (I think that it doesn't really mind, because I can run it without creating the library)
Thanks, regards!
Alternative: Use a wrapper provided on the official web to use ScoreLoop, like OpenFeint: HERE. It´s cross-plarform, work on Android, Blackberry and iOS.

Resources