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
| @echo off | |
| title Activate Office 365 ProPlus for FREE - MSGuides.com&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products: Office 365 ProPlus (x86-x64)&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&echo Activating your Office...&cscript //nologo slmgr.vbs /ck |
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
| // Find the View that shows the numbers category | |
| TextView numbers = (TextView) findViewById(R.id.numbers); | |
| // Set a click listener on that View | |
| numbers.setOnClickListener(new View.OnClickListener() { | |
| // The code in this method will be executed when the numbers View is clicked on. | |
| @Override | |
| public void onClick(View view) { | |
| Intent numbersIntent = new Intent(MainActivity.this, NumbersActivity.class); | |
| startActivity(numbersIntent); |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> | |
| <!-- Title for the application. [CHAR LIMIT=12] --> | |
| <string name="app_name">Sólo Java</string> | |
| <!-- Hint text display in the empty field for the user's name [CHAR LIMIT=20] --> | |
| <string name="name">Nombre</string> | |
| <!-- Hint text display in the empty field for the user's name [CHAR LIMIT=20] --> | |
| <string name="toppings">Ingredientes</string> |
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 is called when the plus button is clicked. | |
| */ | |
| public void increment(View view) { | |
| if (quantity == 100) { | |
| // Show an error message as a toast | |
| Toast.makeText(this, "You cannot have more than 100 coffees", Toast.LENGTH_SHORT).show(); | |
| // Exit this method early because there's nothing left to do | |
| return; | |
| } |
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
| int numberOfSmoothiesTillPrize = 10; | |
| if (numberOfSmoothiesTillPrize > 9) { | |
| Log.v("SmoothieActivity", "Congratulations, you get a free smoothie!"); | |
| numberOfSmoothiesTillPrize = numberOfSmoothiesTillPrize - 10; | |
| } else { | |
| Log.v("SmoothieActivity", "No free smoothie this time."); | |
| } | |
| Log.v("SmoothieActivity", "You currently have " + numberOfSmoothiesTillPrize + " out of 10 smoothies needed for your next free smoothie."); |
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
| boolean isRaining = true; | |
| if (isRaining) { | |
| Log.v("WeatherActivity", "It's raining, better bring an umbrella."); | |
| } else { | |
| Log.v("WeatherActivity", "It's unlikely to rain."); | |
| } | |
| Log.v("WeatherActivity", "Thank you for using the WhetherWeather App."); |
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
| boolean isRaining = false; | |
| Log.v("WeatherActivity", "Thank you for using the WhetherWeather App."); | |
| if (isRaining) { | |
| Log.v("WeatherActivity", "It's raining, better bring an umbrella."); | |
| } else { | |
| Log.v("WeatherActivity", "It's unlikely to rain."); | |
| } |
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
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" | |
| android:paddingBottom="@dimen/activity_vertical_margin" | |
| android:paddingLeft="@dimen/activity_horizontal_margin" | |
| android:paddingRight="@dimen/activity_horizontal_margin" | |
| android:paddingTop="@dimen/activity_vertical_margin" | |
| tools:context=".MainActivity"> |
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 text on the screen. | |
| */ | |
| private void displayMessage(String message) { | |
| TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
| priceTextView.setText(message); | |
| } |
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
| <Text View | |
| android:text="Hapy Birthday" | |
| android:layout_width="150dp" | |
| android:layout_height="150" | |
| android:background="@android:color/darker_groy" | |
| > |