Android

Invalid request. Missing the ‘origin’ parameter. Google Map directions request URL error

Posted on

Google Map Direction request API changed It seems Google Map Direction request API changed, which is used to get polyline points to draw drive path. Previously, I implemented drawing driving path on Map using below directions request. And this link worked perfectly, I used to get all the waypoints information, with it. https://maps.googleapis.com/maps/api/directions/json? waypoints=optimize:true|52.28582710000001,-1.1141665|52.2777244,-1.1581097& sensor=false but […]

Android

Display Menu items in ActionBar when using Fragment

Posted on

Display Menu items in Fragment ActionBar When Implementing Fragment screen, If it require to display Menu Items only specific to that Fragment screen. If you just write the following code… @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { // TODO Auto-generated method stub super.onCreateOptionsMenu(menu, inflater); menu.clear(); inflater.inflate(R.menu.done_actions_menu, menu); } /** * On selecting action bar icons […]

General

Heroku client internal error… Permission denied – git –version on Windows

Posted on

Heroku client toolbelt CLI Today, I installed Heroku client toolbelt CLI on my system, which installed Ruby and Git. When i run command to know version, i see following error C:Usersemployee2>heroku –version ! Heroku client internal error. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new Error: Permission denied – git […]

General

Keyboard shortcut for switching tabs in Chrome browser

Posted on

Switching tabs in Chrome browser. Useful keyboard shortcuts to quickly switching tabs in Chrome browser. There are different ways to switch tabs using keyboard shortcuts on   Windows Chrome browser like: To switch to the next tab: Ctrl+Tab or Ctrl+PgDown To switch to the previous tab: Ctrl+Shift+Tab or Ctrl+PgUp To switch to a specific tab: Ctrl+1 […]

Android

Validation using default feature of EditText

Posted on

Default Validation EditText I found a good article here on how to use the default feature of EditText to show the error. While writing the validation on EditText on a button click event or TextChanged event instead of showing alert dialog if you want to show error we can use the default feature of EditText as EditText […]