Install phpMyAdmin on Ubuntu 16.04

References https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04

Continue reading »

JoinColumn vs mappedBy in JPA

References https://stackoverflow.com/questions/11938253/jpa-joincolumn-vs-mappedby https://stackoverflow.com/questions/37047938/jpa-hibernate-onetoone-joincolumn-referencedcolumnname-ignored

Continue reading »

Back Navigation for ActionBar on Android

AndroidManifest.xml

ProfileActivity.java

References https://developer.android.com/training/implementing-navigation/ancestral.html https://developer.android.com/training/implementing-navigation/temporal.html https://stackoverflow.com/questions/28740610/how-do-i-show-back-button-in-activity https://stackoverflow.com/questions/5312334/how-to-handle-back-button-in-activity

Continue reading »

Add Header Layout to NavigationView on Android

activity_main.xml

drawer_header.xml

MainActivity.java

References http://www.technotalkative.com/part-4-playing-with-navigationview/

Continue reading »

Add Spinner as an item in Navigation Drawer on Android

Step 1. Please add item in menu.xml

Step 2. Please create layout for spinner view

Step 3. set spinner data in your activity […]

Continue reading »

Convert ArrayList to String[] in Java

For example:

References https://stackoverflow.com/questions/4042434/converting-arrayliststring-to-string-in-java

Continue reading »

Insert an Item at a Specific Index in Array with JavaScript

References https://davidwalsh.name/array-insert-index

Continue reading »

Select Menu Item of Navigation Drawer on Android

References https://github.com/mhdr/AndroidSamples/tree/master/091

Continue reading »

Close Application with Exit button on Android

References https://stackoverflow.com/questions/6014028/closing-application-with-exit-button

Continue reading »

Right to Left Menu Items of Navigation Drawer on Android

Or

References https://stackoverflow.com/questions/38848821/android-right-to-left-navigationdrawer-menu-items-arent-rtl https://github.com/mhdr/AndroidSamples/tree/master/090

Continue reading »
1 2 3 4