How to create a Startup Application in JavaME - java-me

How to create a Startup Application in JavaME.the Program will starts while the boot up of the Mobile

For nokia add jad attribute.
Nokia-MIDlet-auto-start: yes
possible values are yes, no and once.
on SE devices JP7onwards you can use
pushregistry entry
MIDlet-Push-1: autostart://:,,*
static and dynamic both will work
in blackberry go project properties ->application tab-> check option "Auto-run on startup"
don't know about other devices like motorola.

Related

Nokia Asha SDK Background Tasks

I have a problem in background processing I am working on app which needs to run tasks periodically to update content or download some files. I tried PushRegistery, but it launches UI (My App Midlet) however this tasks doesn't need to UI.
Simply I need to use something like Android Background Service and IntentService. Is that supported in Nokia Asha SDK or not and if not I am asking if there is a workaround to do that.
Also I every time app launched permissions prompted to use. How can I prevent that ?
I am working on device Nokia Asha 501
Standard JavaME doesn't offer any way of making background MIDlets.
But some phones lets you do Display.setCurrent(null); in order to hide the GUI and show the phone UI instead. I've seen it work on Sony Ericsson phones, but I'm not sure if it works on Nokia devices. (I don't think so).
With the Asha models, Nokia introduced a whole set of new API's though, so maybe you can do it using one of those. I haven't been able to find any such option myself though.
As for the permission prompts, there's sadly only one way to get rid of those, and that is to sign your MIDlet with an expensive certificate, for $299 - each year...
A few phones lets you manually set the security settings though. I've seen this too on a few Sony Ericsson phones, where you can set stuff like "Only ask once" or "Never ask" for certain operations like "Camera access" and such. Don't think Nokia offers such options though.
Finally, it's possible to patch / hack the phone to kill the JavaME security. But again, I've only seen it on Sony Ericsson phones, and I don't know of any way to do it with a Nokia phone.
So I'm afraid you need to look into signing.

Using mvvmcross, how can I "share" a viewmodel to work with a view for iphone and another for ipad? Any special name convention?

I'm developing a cross platform application that targets both android and iOS (iPhone and iPad).
I'm using MvvmCross (thanks Stuart) and Xamarin.
My doubt is related to the iOS development. The application target devices is set to Universal.
I've created a view model named LoginViewModel (inside the core ViewModels directory) and a view named LoginView (inside the Views directory of the UI), so, it respects the mvvmcross naming conventions and everything works fine.
Since the primary purpose of the application is to be used on a iPad, the LoginView is an iPad ViewModelController.
But in the future, I'll be building xib for both iPad and iPhone.
To test this, I created a set of new ViewModelController (changed to extend MvxViewController) and named them LoginViewModel~ipad (ipad view controller) and LoginViewModel~iphone (iphone view controller).
Xamarin Studio didn't let me save the save with the ~ and renamed the set of files to LoginViewModel_ipad and LoginViewModel_iphone (set of files: .xib, .cs and designer.cs).
I add a set of random controls into the xib file using xCode IB and saved them.
I started the application in the iPhone simulator, but my view doesn't appear, only an empty screen (or almost empty).
Can the same viewmodel be shared between an iPhone and iPad view?
If yes, what is the name convention for these cases?
Could you please lead me into the right direction?
Thanks for all the replies,
Luis Pinho
Stuart covers Universal apps in the N+1 series here . This might help.

Liferay 6.1 : Mobile theme

I have created theme for 6.1.20.
Now I want to create theme for Mobile device. I have never created mobile theme before.
I have created one sample-Wap-theme.
I can see my sample-wap-theme under ContolePanel > Site Pages > Mobile Devices.
I have selected that theme.
but when I switch to different mobile device user agent , I can not see theme changes !!!
Do I need to do any settings for Mobile Device Rule Groups ?
I have read some where about WURFL plugin. Do I need to install it ?
any help ?
As of Liferay 6.1, you must install the WURFL plugin in order to allow the mobile device rules to work.
This guide is very detailed

sencha touch/ query mobile running on touchscreen pc - virtual keyboard?

I need to develop a browser app for use on a kiosk touchscreen -> no physical keyboard.
I would like to use Sencha-Touch.
The browser would be running on windows or linux/ununtu.
How can users input text?
I am not tied to sencha touch. I can use another framework (query mobile, etc...) if it offers such a feature.
I'm not sure if this is what you're looking for but it's a jQuery Virtual Keyboard:
http://mottie.github.com/Keyboard/ (Demo)
https://github.com/Mottie/Keyboard
I have never heard of such a feature, and Sencha Touch definitely does not include it. However, it would not take much to introduce that functionality into the framework.
You would need to:
design and create your virtual keyboard. This would be a simple component with a HTML template which had buttons for each of the keys. On each key press, you would fire an event.
in all places you need the keyboard (for example, fields), you would listen to the tap event and then trigger the virtual keyboard. You would then just update the value of the field depending on what the user types.

Programmatically changing the current device profile in blackberry?

I'm trying to find an API in the Blackberry JDK that will allow me to change the device's current profile. For example, I'd like to call an API to change it from "Loud" to "Vibrate" or "Quiet" mode; these options are accessible via the Speaker icon on the main blackberry screen.
Is there any way to do this programmatically?
Thanks,
Yes, we can do that by launching the phones profile application from within your app with the following. From there you can edit a profile and set the volume.
ApplicationManager.getApplicationManager().launch("net_rim_bb_profiles_app");

Resources