I have made an android app using codename one
I tried the following with codename one:
1) Display.getInstance().flashBacklight(10);
2)Display.getInstance().vibrate(100);
3)Display.getInstance().sendsms();
All these API worked properly for the J2me build.
However, for android none of them worked. Why could this be happening? I tried it on motorolla atrix 2.
flashBacklight isn't supported on Android, if I remember correctly that functionality wasn't available on older Android versions it might be available now. You can file an issue on that and we can look into it again.
Vibrate should work its possible vibration was disabled on that specific device but I haven't tried it. You can file an issue on that as well and we can have a look.
Send SMS works for me, it opens up the SMS intent on Android and passes the text/number to which the SMS should be sent. This is different behavior than the J2ME version of sending SMS.
Related
Hello i am looking forward to convert my android app which runs libgdx in a fragment to IOS
So i am looking for a way to run libgdx inside IOS app.
For example when i switch to a screen in ios Libgdx instance will run on that screen. I am not talking about converting a standalone libgdx game to ios(like using robovm)
I know i can rewrite android app part of my application using codenameone but i am not sure about libgdx nor how
can i do what i want with codenameone ? is there any guide ? if i can do i will subscribe and start converting.
Thanks
Unfortunately this isn't currently possible as I mentioned in the reddit thread here. I don't think there's a technical blocker but it would require a lot of work and there's no motivation to do that work either from our side or the LibGDX side.
I use codenameone to build android and javascript apps for many years. This is the first time I sending build to iOS. The apps is install on my device, everythings is working fine, just the Commands (on the Old GUI Form) not working when pressed (touch). This happen on every Forms (design using Old GUI Editor)
It this a iOS Build Server error(I don't think so)..
Anyone can help on this?
I have created one ionic app it runs perfectly fine in browser but when I convert it into app it gives white screen.
I have already install white list plugin and allowed all url in config and also have kept meta tag. Am not able to find any other solution.
When kept simple html file am able to view it.
Any help will be grateful.May be good way to debug will be also good.
Connect your phone to PC with USB cable and remember to keep USB Debugging On. Now, navigate to chrome://inspect. You'll find the device name and click on "inspect". On Console tab, the error list will give you a hint about what is wrong there.
In my case, a custom service was Injected in controller which had been removed at some time as It was not used anywhere.
Ok just answering this question so it will be helpful to all.
Below blog was helpful for me that how I can debug
http://gonehybrid.com/how-to-debug-the-white-screen-of-death-in-your-ionic-app/
And guess what was issue, folder name in app is case sensitive. I was just need to change a folder name as per exact case sensitive path I provide in index file.
Mostly such thing occures because of a javascript error. You say it runs in your browser. Are there some exception in the console?
Not everythings is equal between browser and device, for example plugins. You have to be sure, that all used plugins are installed properly.
If you deploy on android, you can use android monitor to get console output. On ios xcode has already an integrated debugger.
I had this horrible issue because I compiled my Android application with Cordova 6.x and the project worked with CrossWalk plugin. In my case, the solution was uninstalling Crosswalk. If your project has installed that plugin, try to uninstall it and compile your project again.
I noticed my images on a website are blurry when using a mobile device. This occurs only when I'm using 4G and NOT when I'm connected to wi-fi. If I'm connected to wi-fi, the images look fine.
I realize a slower connection may be causing this, but I'm curious how I can fix it. I downloaded a "Resize Image Quality" plugin for Wordpress and that didn't work.
Are there any changes that can be made to CSS to fix this issue? I'm never had this issue before with Wordpress or any other CMS.
Here's a link just in case it's needed: http://bit.ly/1J1vwFB
That's weird, I used chrome with network throttling and emulating different phones.. It looks fine, have you tried other phones?
In my AngularJS/Ionic app I use the cordova-sqlite plugin and a local database to store data; I also use a web service to fill the database with data from a remote database. Well, sometimes I get a strange behaviour when I try to get data from the remote database.
My problem is that I can't debug the code in the way it is now.
If I try to use the ripple emulator it says that it can't work with the sqlite plugin. I googled around and found out that any plugin which uses native code won't work with ripple. I wanted to see the network transferring operations on ripple.
At the time Im writing this I'm usually debugging opening the system console and checking them out but this isn't a really good way to debug. I work on a mac with WebStorm.
Is there a way to debug my code on mac live on the device or simulator like in visual studio?
Have you tried GapDebug? It let's you debug your Cordova/Phonegap app on an Android or iOS device via Chrome Dev Tools or Safari Webkit Inspector and is almost magical. -> https://www.genuitec.com/products/gapdebug/