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
//In a service | |
public void showNotification(){ | |
Intent notificationIntent = new Intent(getApplicationContext(),MainActivity.class); | |
notificationIntent.setAction(Intent.ACTION_MAIN); | |
notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER); | |
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
PendingIntent contentIntent = PendingIntent.getActivity( | |
getApplicationContext(), | |
0, |
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
#!/bin/bash | |
#script to set correct touchscreen orientation after x start | |
#this won't rotate the displayed image, only the touchscreen input | |
#to rotate the displayed image add the following to /boot/config.txt | |
#"display_rotate=1" to rotate display 90 degrees | |
#"display_rotate=3" to rotate display 270 degrees | |
# To execute this script on boot, add the following line: | |
#@/path/to/file/screenflip.sh | |
#to (Wheezy): |
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
{ | |
"basics": { | |
"name": "Allan Galarza", | |
"label": "Developer", | |
"summary": "I am a mechatronics engineer with a love for electronics, automation and software development. I really enjoy learning and organization.", | |
"website": "https://galarzaa90.github.io/", | |
"email": "[email protected]", | |
"location": { | |
"city": "Hermosillo", | |
"region": "Sonora", |