Updating mobile version in android - android

I'm currently developing my first app with Visual Studio 2015 - Apache Cordova. I've coded everything and the code is fully working on my Ripple (emulator in browser) which has 4.x.x OS.
However, when i pack up the apk and move it to my phone (which has 6.x.x OS) it works normally, but the modals, bootstraps and stylesheets (CSS-file) are not working. To clarify; If I've made style modifications in my HTML-file, those changes will be shown how they should be, in the app.
Is there any way that I could change the pre-requisites so it works on my Phones current OS (6.x.x) or is there simpler method to work around this?

Related

UI Element (Font, button, images) size issue on Mobile first platform Hybrid app on android devices

I am supporting a hybrid app built using IBM mobile first platform v7.1 and jQueryMobile framework in which we are facing UI element size issues on android platform. The font, button and all the other elements appearing too large on android app since last 2 weeks. However, the app was working fine few days back.This app is on google playstore and this issue persist over there as well
I don't know what has broken the app since nothing has been changed from the code perspective and its happening only on android OS version 6.0 and above. This might be an android OS version issue
Any Guidance or suggestions will be appreciated to identify the root cause or fixing the issue

Xamarin Android emulator screen gets split into 4 identical rectangles when deploying

I've just gotten into developing apps for smartphones (I'm fairly adept with objective programming already and have some experience with Visual Studio) and decided to try out Xamarin. I've installed Xamarin Studio and Visual Studio 2015 Community with Xamarin without any problems. However, when I actually try to deploy the app (using the Xamarin Android API 15 emulator), a weird bug happens: the screen of the emulator gets split into 4 identical rectangles as you can see in this screenshot. The screen controls still work like they should and are in the default positions (the buttons are not on each of the 4 rectangles and in the normal position for a phone). I can unlock the emulator and launch apps like I would be able to on a correctly working emulator. I have all the prerequisites for Android API 15 installed. The app behaves similarly when I deploy it on the Xamarin Android API 21 emulator (all the prerequisites are installed). I am trying to deploy the blank Visual Studio 2015 Xamarin.Android app without any code changes.
Have you guys ever seen such a bug (or maybe a feature :) ) and do you know how to solve it?
Found the solution if anyone has the same problem: editing the emulator in the AVD to Use Host GPU fixes the issue.

Samsung S4 Update has completely disfigured phonegap application

I'm currently developing my final year project, which is due this month, using phonegap and the most recent update to the Samsung Galaxy S4 seems to have completely disfigured everything in my application.
Has anyone come across this issue before or have any idea how to fix this ASAP?
Thanks lots,
Paula
I have come across this when using phonegap and sencha touch. First thing to do is make sure you update your app to the current version of phonegap. Typically they will release new version along side of android.
If your still getting the issues after the phonegap update. I would suggest looking into what browser it is using. Several phone manufacturers put their own flavor into the web browser which can affect your code. I previously had an issue with htc do to the browser handling css differently. Android APIs are the same, some will use different browser code so you will have to test it against each to make sure it works.
I also believe phonegap allows you to modify what browser it uses. It may default to chromium now but in the past you could switch it depending on what api version it was.

Application running really slow when android os update to 4.1.2

I have made HTML5 application which is using vmoss platform, similar to phonegap. The application was running smoothly on samsung galaxy 10.1 tab with android version 4.0.4. After the client updated the device to android 4.1.2 now he is complaining of following issues.
Calendar control not working in new version
Text box controls having focus issues
Application GUI Issues because response is very slow
The page where issue of slowness comes is the page where child pages are loaded inside one of its div.
Can someone tell me, is it android os update issue or what?
i think it's because of the platform not updated to work/cope well with version 4.1.2
this one is vmoss platform issue.
Better try to run simple Html page with all these control without using the VMOSS at backend and see if there will be any issue.
Some time the version of Jquery doesn't fully support by the browser.

Is PhoneGap slow or it is a bug?

After I have compiled and deployed the demo application to my Samsung Galaxy S II I noticed that the Sample PhoneGap App which comes with PhoneGap was not very responsive when pressing buttons and scrolling.
I also made a little app using PhoneGap and jQuery Mobile, with 4 buttons everything was ok, but when I added more than 7 and my viewport needed to be scrolled, scrolling become to be very slow, the more buttons/widgets I had the slower the srolling was.
Is this a bug specific to my mobile device or it is just how PhoneGap works:
The fact that PhoneGap apps feel slow on my phone including the demo?
EDIT:
The same PhoneGap app served by an HTTP server from my laptop and launched in the standard Android browser works very smoothly
Try setting your targetSdkVersion higher. Changing mine from "8" (i.e. Android 2.2) to "14" (Android 4.0) dramatically improved PhoneGap performance on phones running newer versions of Android. Most likely this enables certain performance-enhancing features such as hardware graphics acceleration.
For more info see my other answer about this here: https://stackoverflow.com/a/12397768/233370
Since PhoneGap and the frameworks that is used with it (JQM,Sencha Touch etc) are just working in a WebKit browser they can be slow if there's too much to render.
There's actually no bug with your device or etc.It's just that PhoneGap and the frameworks are not so good if you want fast response and so on.You can try your app in other devices and can observe that they behave the same.
I had the same Problems, after Update to Android 4.0.4 my Phonegap (Cordova 2.0.0) & Sencha Touch 2 - APP was very very slow.
But after I insert
super.appView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
the APP works fine, as before the update.
http://developer.android.com/guide/topics/graphics/hardware-accel.html
For improved performance you may not need Phonegap.
If what you need is quick cross platform styling but fast native components try a tool like nativecss.com It keeps the styling in CSS, but uses native components for everything else - so no HTML rendering delays or clunky animations.

Categories

Resources