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
{ | |
"$schemaTransformation" : "http://buzzword.org.uk/2008/jCard/transformation.js" , | |
"id" : "jCard" , | |
"version" : "0.1.0" , | |
"title" : "jCard" , | |
"description" : "This document defines the jCard data format for representing and exchanging a variety of information about an individual (e.g., formatted and structured name and delivery addresses, email address, multiple telephone numbers, photograph, logo, audio clips, etc.)." , | |
"type" : "object" , | |
"seeAlso" : | |
[ | |
"http://microformats.org/wiki/jcard" , |
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
+ (NSString *)encodedString:(NSString *)unescaped { | |
NSString *charactersToEscape = @"!*'();:@&=+$,/?%#[]\" "; | |
NSCharacterSet *allowedCharacters = [[NSCharacterSet characterSetWithCharactersInString:charactersToEscape] invertedSet]; | |
NSString *encodedString = [unescaped stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters]; | |
return encodedString; | |
} |
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
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done |
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
Intent email = new Intent(Intent.ACTION_SEND); | |
email.setType("message/rfc822"); | |
email.putExtra(Intent.EXTRA_EMAIL, new String[]{"you@gmail.com"}); | |
email.putExtra(Intent.EXTRA_SUBJECT, "subject"); | |
email.putExtra(Intent.EXTRA_TEXT, "message"); | |
startActivity(Intent.createChooser(email, "Choose an Email client :")); |
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
PackageManager manager = this.getPackageManager(); | |
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0); | |
Toast.makeText(this, | |
"PackageName = " + info.packageName + "\nVersionCode = " | |
+ info.versionCode + "\nVersionName = " | |
+ info.versionName + "\nPermissions = " + info.permissions, 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
// In the onCreate() | |
Intent intent = getIntent(); | |
if (Intent.ACTION_VIEW.equals(intent.getAction())) { | |
Uri uri = intent.getData(); | |
Log.i(TAG, "Started by a user clicking " + urlStr); | |
doSomethingWithTheUrl(uri.toString();); | |
} |
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
<uses-permission android:name="android.permission.WAKE_LOCK" /> |
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
<uses-permission android:name="android.permission.GET_TASKS" /> |
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
package pro.schmid.android.secureapp; | |
import android.app.Activity; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.view.ViewGroup; | |
import android.view.ViewGroup.LayoutParams; | |
import android.view.WindowManager; |
NewerOlder