Crie um link simbólico entre o diretório do SDK do Android do Eclipse e o diretório do Android Studio.
$ cd /Applications/Android\ Studio.app/ $ ln -s /Users/{usuario}/Dev/Android/SDK sdk
Simples assim =)
$ cd /Applications/Android\ Studio.app/ $ ln -s /Users/{usuario}/Dev/Android/SDK sdk
Exibir:
$ defaults write com.apple.finder AppleShowAllFiles -bool true
$ KillAll Finder
Ocultar:
$ defaults write com.apple.finder AppleShowAllFiles -bool false
$ KillAll Finder
Simple!
Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=appname&version=1& 409 Conflict Another transaction by user userid is already in progress for app: s~appname, version: 1. That user can undo the transaction with "appcfg rollback". See the deployment console for more details Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=appname&version=1& 409 Conflict Another transaction by user userid is already in progress for app: s~appname, version: 1. That user can undo the transaction with "appcfg rollback".
Abra o console e entre no diretório BIN do App Engine SDK, no meu caso: /Applications/Eclipse/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.8.8/appengine-java-sdk-1.8.8/bin
$ sudo chmod a+x appcfg.sh (torna o appcfg.sh em 'executável')
Identifique o diretório war do seu projeto. No meu caso: /Users/rafaelbarrelo/Dev/Eclipse/workspace/MidiaPalestrinaServerV2/war/
$ ./appcfg.sh rollback /Users/rafaelbarrelo/Dev/Eclipse/workspace/MidiaPalestrinaServerV2/war/
Ele irá iniciar o processo... Coloque o e-mail e senha!
Fim, processo concluído e deploy "liberado"!
//Habilita controle do bloqueio de tela Microsoft.Win32.SystemEvents.SessionSwitch += new Microsoft.Win32.SessionSwitchEventHandler(SystemEvents_SessionSwitch); //Trata os eventos void SystemEvents_SessionSwitch(object sender, Microsoft.Win32.SessionSwitchEventArgs e) { if (e.Reason == SessionSwitchReason.SessionLock){ //Bloqueou estação } else if (e.Reason == SessionSwitchReason.SessionUnlock){ //Desbloqueou estação } }
using System.Runtime.InteropServices; const int SPI_GETSCREENSAVERRUNNING = 114; [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern bool SystemParametersInfo(int uAction, int uParam, ref bool lpvParam, int flags);// Retorna TRUE se estiver executando public static bool GetScreenSaverRunning() { bool isRunning = false; SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, ref isRunning, 0); return isRunning; }