> git rebase -i HEAD~N
This file contains 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
myButton.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View v) { | |
SimpleDateFormat formatter = new SimpleDateFormat("h:mm:ss a"); | |
String strWhen = formatter.format(new Date()); | |
TextView myTextview = (TextView) | |
findViewById(R.id.TextViewToShow); | |
myTextview.setText("Clicked at " + strWhen); | |
} | |
}); |
This file contains 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
final TextView firstTextView = (TextView) findViewById(R.id.textView); | |
final Button firstButton = (Button) findViewById(R.id.firstButton); | |
// ACA escribir View.OnClickListener(){ Y APRETAR CTRL+i | |
firstButton.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
firstTextView.setText("You clicked!"); | |
} | |
}); |
This file contains 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
String usersName = String.valueOf(usersNameEditText.getText()); | |
Toast.makeText(this, yourYesResponse, Toast.LENGTH_SHORT).show(); |
This file contains 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
Integer iNum = new Integer(123); | |
String sText = "The number one-two-three = "; | |
String sFullText = sText + iNum; // aca llama al toString, es al pedo ponerlo o no. | |
/** | |
* This method simply throws an Exception if the incoming parameter a is not a positive number, just for fun. | |
* | |
* @param shouldThrow Whether or not to throw an exception | |
* @throws Exception | |
*/ |
This file contains 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
import android.app.Activity; | |
String strClassName = Activity.class.getName(); // android.app.Activity | |
String silly = "Silly String!"; | |
Class someKindOfClass = silly.getClass(); | |
String strSillyClassName = someKindOfClass.getName(); // java.lang.String | |
This file contains 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
<resources> | |
<string name="app_name">My Android App Name!</string> | |
</resources> |
This file contains 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
{ | |
"responses": [ | |
{ | |
"textAnnotations": [ | |
{ | |
"locale": "en", | |
"description": "U UnitedHealthcare | e\nHMO\nHealth Plan (80840): 000-00000-00\nMember ID: 000000000 00\nMember:\nMARY SMITH\nGroup Number: 000000\nPayer ID 12345 EM. Date:01.01/2011\nOPTUMR\nCopys\nOfice: $15\nRx Bin: 012345\nRx PCN: 9789\nRx Grp: AAAA\nER S50\nSignatureValue HMO\nOffered by UnitedHealthcare of California\n", | |
"boundingPoly": { | |
"vertices": [ | |
{ |
This file contains 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
{ | |
"responses": [ | |
{ | |
"textAnnotations": [ | |
{ | |
"locale": "en", | |
"description": "blue\ncolifornia\nPromise\nHealth\nLA Care\nREALTR PL\nPlan\nMember: FIRST M LAST\nMember ID: 000000000000\nCIN:\n000000000\nHealth Plan Group #:\n00000000\nEffective Date:\n04/01/2019\nPRIMARY CARE IPA\nPRIMARY CARE PHYSICIAN\n(000) 000-0000\n0000 STREET\nCITY, STATE\nZIP\n", | |
"boundingPoly": { | |
"vertices": [ | |
{ |
OlderNewer