create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| private static final String EMAIL_REGEX = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"; | |
| private static final Pattern EMAIL_PATTERN = Pattern.compile(EMAIL_REGEX); | |
| private ArrayAdapter<String> getEmailAddressAdapter(Context context) { | |
| Account[] accounts = AccountManager.get(context).getAccounts(); | |
| HashSet<String> emailSet = new HashSet<String>(); | |
| for (int i = 0; i < accounts.length; i++) { | |
| if (isEmailAddress(accounts[i].name)) { | |
| emailSet.add(accounts[i].name); | |
| } |
| private ArrayAdapter<String> getEmailAddressAdapter(Context context) { | |
| Account[] accounts = AccountManager.get(context).getAccountsByType("com.google"); | |
| String[] addresses = new String[accounts.length]; | |
| for (int i = 0; i < accounts.length; i++) { | |
| addresses[i] = accounts[i].name; | |
| } | |
| return new ArrayAdapter<String>(context, android.R.layout.simple_dropdown_item_1line, addresses); | |
| } |
| package it.gmariotti.android.examples.preference; | |
| import android.os.Bundle; | |
| import android.preference.PreferenceFragment; | |
| public class GenericPreferenceFragment extends PreferenceFragment { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { |
| g_LastCtrlKeyDownTime := 0 | |
| g_AbortSendEsc := false | |
| g_ControlRepeatDetected := false | |
| *CapsLock:: | |
| if (g_ControlRepeatDetected) | |
| { | |
| return | |
| } |
| package com.psrivastava.deviceframegenerator.widget; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.widget.CheckBox; | |
| import android.widget.CompoundButton; | |
| import android.widget.CompoundButton.OnCheckedChangeListener; | |
| import android.widget.TextView; | |
| import android.widget.Toast; |
| // Copyright 2012 Square, Inc. | |
| package com.squareup.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** Maintains an aspect ratio based on either width or height. Disabled by default. */ | |
| public class AspectRatioImageView extends ImageView { |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"