This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This method displays the given price on the screen. | |
| */ | |
| private void displayPrice(int number) { | |
| TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
| priceTextView.setText(NumberFormat.getCurrencyInstance().format(number)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MySQL to Google Spreadsheet By Pradeep Bheron | |
| // Support and contact at pradeepbheron.com | |
| function myMySQLFetchData() { | |
| var conn = Jdbc.getConnection('jdbc:mysql://127.0.0.1:3306/employee_db', 'username', 'pass'); // Change it as per your database credentials | |
| var stmt = conn.createStatement(); | |
| var start = new Date(); // Get script starting time | |