Friday, April 11, 2014

Android app emulator for pc



The Android app emulator is really good to do some pre-testing of android apps before installing it on your device.After all you do not want to cause your mobile to crash :P

The Android app emulator really takes some time to startup and be fully functional. Startup time ranges between 5-10min as it has to load all associated functions that might be invoked.

Emulator started at 5.47pm


Fully functional emulator at 5.52pm

Once launched, you can use it just as you use the app on the mobile device. Mobile app testing signoff should always be done on using targeted devices.

Once launched properly, you should see logs similar to the ones below:
[2014-04-06 17:53:20 - TestApp] Android Launch!

[2014-04-06 17:53:20 - TestApp] adb is running normally.


Installing an apk file through Eclipse or from command line, should produce logs similar as the ones below:
[2014-04-06 17:53:25 - TestApp] Uploading TestApp.apk onto device 'emulator-5554'

[2014-04-06 17:53:26 - TestApp] Installing TestApp.apk...

[2014-04-06 17:53:37 - TestApp] Success!

[2014-04-06 17:53:37 - TestApp] Starting activity com.bertie.testapp.MainActivity on device emulator-5554

[2014-04-06 17:53:41 - TestApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.xyz.testapp/.MainActivity }


Troubleshooting tips:

1) Installation error, Launch failed on device, etc
This means that the android emulator is still not fully operational and you are trying to deploy/install an app on it. You will get something like the below error logs
[2014-04-06 18:10:47 - MainActivity] Installation error: Unknown failure
[2014-04-06 18:10:47 - MainActivity] Please check logcat output for more details.
[2014-04-06 18:10:47 - MainActivity] Launch failed on device: AVD_for_Nexus_5_by_Google

2) No active compatible AVD's or devices found
This means that the emulator is not running or is not responding
[2014-04-12 10:40:47 - WebView] Performing com.example.android.webview.MainActivity activity launch
[2014-04-12 10:40:47 - WebView] No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.

Thursday, April 10, 2014

File transer/FTP files from Linux box to AS400 system.

Rather than going through the trouble of writing programs using third party utilities to ftp (file transfer protocol) files, the below simple shell script will do the job.

ls -t /home/temp/abc*.txt | head -1
The above linux command is to get the most recent file. You can change the file pattern to anything you like.

TEMPFILE01
This is the destination file that will be created.


#!/bin/sh
HOST=myserver.test.com
USER=username1
PASSWD=password1
SRC_FILE="$(ls -t /home/temp/abc*.txt | head -1)"
FILE=TEMPFILE01

echo $SRC_FILE

ftp -nu $HOST <user $USER $PASSWD
put $SRC_FILE $FILE
quit
exit 0
End-Of-Session

x

Saturday, April 5, 2014

Import/Open existing android app project in Eclipse

Most of the time when we try to import/open a downloaded eclipse project, we get the error message “… overlaps the location of another project ..”

Eclipse is showing an error message because you are trying to create a new project on a existing directory that already contains a project. Eclipse is trying to save you from losing work.!!
  
Incorrect steps to import existing Eclipse project:
1)      Extract downloaded SimpleCalendarApp.zip in E:\workspace-adt
2)      Extracted zip creates a folder E:\workspace-adt\SimpleCalendarApp
3)      Launch Eclipse
4)      File --> import --> Android “existing android code into workspace”
5)      Root directory : select E:\workspace-adt
6)      Select project “SimpleCalendarApp”
7)      Click Finish
8)      Displays error message “… overlaps the location of another project ..”





 Eclipse is showing an error message because you are trying to create a new project on a existing directory that already contains a project. Eclipse is trying to save you from losing work J.


Correct Steps to import existing Eclipse project:
1)      Extract downloaded zip in c:\temp
2)      Extracted zip creates a folder c:\temp\SimpleCalendarApp
3)      Launch Eclipse
4)      File --> import --> Android “existing android code into workspace”
5)      Root directory : select c:\temp
6)      Select project “SimpleCalendarApp”
7)      The project is created in Eclipse.


Tuesday, April 1, 2014

Opening/disassembling a Dell Latitude D630 laptop


Roscoe Dyer has written a well illustrated guide on opening/disassembling a Dell Latitude D630 laptop. Its very easy to follow with step by step instructions.

http://blog.parts-people.com/2011/08/18/dell-latitude-d630-fan-removal-and-installation/
 
Depending on the problem with your laptop, you need not follow all the 27 steps. I just needed to clean the dust from the heatsink exhaust area as the laptop was overheating after 2hrs of usage.




Monday, October 21, 2013

Pearl Jam Lightening Bolt tour setlist 2013

Pendulum
Low Light
Given to Fly
Do the Evolution
Mind Your Manners
My Father's Son
Cropduster
Wishlist
Sirens
I Am Mine
Lukin
Not for You
Down
State of Love and Trust
Lightning Bolt
Porch

Encore:
Other Side
Future Days
Gone
Black
Jeremy
Daughter
Even Flow
Rearviewmirror

Encore 2:
Smile
Once
Alive
Baba O'Riley
(The Who cover)
Yellow Ledbetter

source: www.setlist.fm

Sunday, October 13, 2013

Nine Inch Nails setlist 2013 @ TD Garden, Boston, MA

Copy of A
1,000,000
Came Back Haunted
Terrible Lie
March of the Pigs
All Time Low
Find My Way
Piggy
Disappointed
Survivalism
Running
A Warm Place
The Wretched
Into the Void
The Frail
Satellite
Somewhat Damaged
Wish
The Hand That Feeds
Head Like a Hole

Encore:
Even Deeper
In This Twilight
While I'm Still Here
Black Noise
Hurt

Tuesday, September 10, 2013

Stone Temple Pilots with Chester Bennington setlist 2013

Stone Temple Pilots with Chester Bennington setlist at House of Blues, Boston, MA 2013

Down
Big Bang Baby
Vasoline
Dead & Bloated
Out of Time
Silvergun Superman
Church On Tuesday
Big Empty
Sour Girl
Interstate Love Song
Pop's Love Suicide
Hollywood Bitch
Sex Type Thing
Sex & Violence

Encore:
Wicked Garden
Piece of Pie (with Richard Patrick)
Trippin' on a Hole in a Paper Heart