My Blog

I am NOT taking any more projects for now. Please do not get offended.


I am NOT taking any more projects for now. Please do not get offended.

What all I can do for you?

As you probably know from my website that I work on contract basis for different companies and individuals to develop software or create an IT strategy or IT infrastructure and in this post I will give you a detailed description as to what all I can do for you. If you are a startup: Many times non technical […]

Read more

I am NOT taking any more projects for now. Please do not get offended.

Show or hide the Android Status Bar in NativeScript

I was trying to get the status bar to hide in one of the apps and created a simple code to do that. var application = require(‘application’).android; function statusBar(action){ var activity = application.startActivity; //activity.runOnUiThread(function(){ var win = activity.getWindow(); if(action === ‘hide’){ win.addFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN); } else if(action === ‘show’){ win.clearFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN); } } Then call statusBar(‘show’) or statusBar(‘hide’) […]

Read more

I am NOT taking any more projects for now. Please do not get offended.

Lock or change orientation on Android using NativeScript

We need to lock or change the device orientation to see a video or play a game etc. You can do so in Android using NativeScript as follows: function lockOrientation(orientation) { var activity = application.startActivity; switch (orientation) { case ‘unlocked’: activity.setRequestedOrientation(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); break; case ‘portrait-primary’: activity.setRequestedOrientation(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); break; case ‘portrait-secondary’: activity.setRequestedOrientation(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT); break; case ‘landscape-primary’: activity.setRequestedOrientation(android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); break; case […]

Read more

I am NOT taking any more projects for now. Please do not get offended.

Gaurav Chandra, Freelance Mobile App Developer Delhi, Noida, Gurgaon, Faridabad.

I am NOT taking any more projects for now. Please do not get offended.