Tuesday, February 28, 2012

android: emulator simulation

to simulate events on the android emulator, initialize a telnet session in your command prompt:
# telnet localhost 5554

to simulate sms receipt
telnet> sms send <number> <message>

to simulate gps location receipt
telnet> geo fix <long> <lat>

to install apk in emulator, in your command prompt:
# cd C:\Program Files\Android\android-sdk-windows\platform-tools
# adb install <installer.apk>


to access sqlite:

cd C:\Program Files\Android\android-sdk\platform-tools
adb -s emulator-5554 shell 
cd to your sqlite file
sqlite3 <db>

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...