Wednesday, April 30, 2014

Adding external/third party jars to Android project in libs folder


  1. Download the jar files to your computer.
  2. Create a new folder, libs, in your Eclipse/Android project (if it does not exist)
  3. Right-click libs and choose Import -> General -> File System, then Next, Browse in the filesystem to find the parent directory where the jar(s) were downloaded.
  4. Click OK, then click the directory name (not the checkbox) in the left pane, then check the relevant JAR in the right pane. This puts the library into your project.
  5. Right-click on your project, choose Build Path -> Configure Build Path, then click the Libraries tab, then Add JARs..., navigate to your new JAR in the libs directory and add it.This step is when the new jar gets converted to a Dalvik-converted JAR that can be used with the Android project.

Saturday, April 26, 2014

Microsoft outlook folders not syncing with blackberry

By default, only messages in the Inbox and Sent Items folders of Microsoft Outlook are redirected to a BlackBerry device.

If you have setup rules to forward incoming emails to specific folders in Microsoft Outlook then these emails will not be sent to your BlackBerry device.

To get these emails on the BlackBerry device, you need to
1) disable all rules in Microsoft Outlook
2) Close Microsoft Outlook
3) on the BlackBerry device, select 'messages' -> reconcile now
Note: Any emails received in Microsoft Outlook prior to this setting will not be delivered to BlackBerry device.
4) you should be able to see all new emails on the BlackBerry device.

Once this has been done, you should re-enable all rules in Microsoft Outlook.

For more details, please refer below links

Friday, April 25, 2014

Delete a paired Bluetooth enabled device Blackberry

You must turn on Bluetooth technology on the smartphone.
You must disconnect your BlackBerry smartphone from the Bluetooth enabled device.

  1. On the home screen, click the connections area at the top of the screen, or click the Manage Connections icon.
  2. Click Networks and Connections > Bluetooth Connections.
  3. Highlight a paired Bluetooth enabled device.
    • To rename the device, 
      •  press the BlackBerry Menu key > Device Properties. In the Device Name field, change the name for the Bluetooth enabled device. Press the BlackBerry Menu key > Save.
    • To delete the device, 
      •  press the BlackBerry Menu key> Delete Device.

BlackBerry Menu key

Pair Bluetooth device with BlackBerry smartphone

You must pair your BlackBerry smartphone with a Bluetooth enabled device before you can start using it.

Each Bluetooth device has different ways to be setup in pairing mode so its better to check the instructions/documentation that came with the Bluetooth device. 

Once the Bluetooth device is setup in pairing mode, if you search for Bluetooth enabled devices from the BlackBerry smartphone, you should be able to see it in the list of discovered Bluetooth devices.

 From the BlackBerry smartphone,
  1. On the home screen, click the connections area at the top of the screen, or click the Manage Connections icon.
  2. Click Networks and Connections > Bluetooth Connections > Add New Device > Search.
  3. Click a Bluetooth enabled device.
  4. If necessary, do one of the following:
    • If the Bluetooth enabled device does not have a keyboard (for example, a wireless headset), on your BlackBerry smartphone, type the pairing passkey that either appears on the Bluetooth enabled device or is provided in the documentation that came with the Bluetooth enabled device. The passkey is most often a numeric or alphanumeric code.
    • If the Bluetooth enabled device has a keyboard (for example, a laptop), type a pairing passkey of your choice on both devices.
Passkey might 0000 (four zeros)

  1. After entering the passkey, you should be able to see the Bluetooth device connected to your smartphone.. 

Import contacts to blackberry vcf or gmail

First make sure that all your contacts are in one place like say Google contacts. Then
1)      login to gmail
2)      select ‘contacts’ from the top left corner
select contacts


3)      click on ‘More’ > Export
export contacts



4)      Select the ‘vCard format’

vcard format for all contacts to be exported

5)      Remember the location to where the contacts.vcf is created.
6)      Pair your BlackBerry Curve 9220 with your computer.
7)      Go to the location Step#6
8)      Right click on the contacts.vcf file and choose the send to Bluetooth or to Bluetooth option
Accept the file transfer on BlackBerry and after 1min or so you should see all the contacts in as your BlackBerry contacts

Monday, April 14, 2014

Mass Timings at St.Rock Catholic Church, Bangalore

St.Rock Catholic Church, 
Amruthnagar,
Chellikere,
Banaswadi Post,
Bangalore – 560 043.

Sunday:
7.00 am (English)
8.30 am (Kannada)
5.30 pm (Kannada)

Weekdays:
Monday & Wednesday 6.30 am (Kannada)
Tuesday, Thursday & Saturday 6.00 pm (Kannada)
Friday  6.30 am (Kannada) &  6.00 pm (Kannada, 1st Friday of Month)

Contact phone: 080-25440585

nokia keypress ringtones - rock genre

Iron Maiden - Clairvoyant
Nokia Composer Code - (Help)
8.a1, 8.g1, 8.a1, 8.b1, 8.a1, 8g1, 8.a1, 2.d1, 8.a1, 8.g1, 8.a1, 8.b1, 8.a1, 8g1, 8.a1, 4.d2, 16g1, 16g1, 16g1, 16g1, 16#f1, 16d1, 8g1, 2g1, 16g1, 16g1, 16g1, 16g1, 16#f1, 16d1, 8g1, 2g1, 16g1, 16g1, 16g1, 16g1, 16#f1, 16d1, 8g1, 16#f1, 4.d1, 16g1, 16g1, 16g1, 16g1, 16#f1, 16d1, 8g1, 16#f1, 2d1
Nokia Keypress Sequence - (Help)
(Hold 6)8, (Hold 5), (Hold 6), (Hold 7), (Hold 6), 5, (Hold 6), (Hold 2)99, (Hold 6)88, (Hold 5), (Hold 6), (Hold 7), (Hold 6), 5, (Hold 6), (Hold 2)9*, 588**, 5, 5, 5, 4#, 2, 59, 599, 5888, 5, 5, 5, 4#, 2, 59, 599, 5888, 5, 5, 5, 4#, 2, 59, 48#, (Hold (Hold 2))99, 588, 5, 5, 5, 4#, 2, 59, 48#, 2999
Metallica - Master Of Puppets
Nokia Composer Code - (Help)
16e1, 16f1, 16b1, 16e1, 16f1, 16c2, 16e1, 16f1, 16#c2, 16e1, 16f1, 16c2, 16e1, 16f1, 16b1, 16b1, 16e1, 16f1, 16b1, 16e1, 16f1, 16c2, 16f1, 16e1, 16d2, 16#c2, 16e1, 16d2, 16#c2, 16e1, 16d2, 16#c2, 16d2, 16#c2, 16e1, 16d2, 16#c2, 16e1, 16d2, 16#c2, 8e1
Nokia Keypress Sequence - (Help)
388, 4, 7, 3, 4, 1*, 3**, 4, 1*#, 3**, 4, 1*, 3**, 4, 7, 7, 3, 4, 7, 3, 4, 1*, 4**, 3, 2*, 1#, 3**, 2*, 1#, 3**, 2*, 1#, 2, 1#, 3**, 2*, 1#, 3**, 2*, 1#, 39**
Metallica - Nothing Else Matters
Nokia Composer Code - (Help)
4e1, 4g2, 4b2, 4e3, 4b2, 4g2, 4e1, 4g2, 4b2, 4e3, 4b2, 4g2, 2e1, 4b2, 2b2, 2b2, 32-, 4b2, 4c2, 4b2, 4a2, 4b2, 4a2, 4e2, 2e2, 2e2, 16-, 4c2, 4e2, 4e2, 4#f2, 4e2, 4e2, 16-, 4e2, 4#f2, 2g2, 4g2, 4g2, 2a2, 4a2, 4a2, 2e2, 2g2, 2b2, 2e3, 2b2, 2g2, 2e2
Nokia Keypress Sequence - (Help)
3, 5*, 7, 3*, 7**, 5, 3**, 5*, 7, 3*, 7**, 5, 39**, 78*, 79, 7, 099, 78, 1, 7, 6, 7, 6, 3, 39, 3, 0888, 18, 3, 3, 4#, 3, 3, 088, 3, 4#, 59, 58, 5, 69, 68, 6, 39, 5, 7, 3*, 7**, 5, 3
Nirvana - In Bloom
Nokia Composer Code - (Help)
8.#a1, 4#a1, 8#a1, 8.g1, 4g1, 8g1, 4g1, 4g1, 4g1, 4f1, 8.f1, 4f1, 8f1, 2#g1, 8-, 4#a1, 4#a1, 4#a1, 4#a1, 8.#a1, 4#a1, 4#f1, 4#f1, 4#f1, 4#f1, 8.#f1, 4#f1, 4#d2, 4#d2, 4#d2, 4#d2, 8.#d2, 4#d2, 4b1, 4b1, 4b1, 4b1, 4a1, 4a1, 4a1, 4a1, 4#a1, 4#a1, 4#a1, 4#a1, 2.#a1
Nokia Keypress Sequence - (Help)
(Hold 6)8#, 68#, 69#, (Hold 5), 58, 59, 58, 5, 5, 4, (Hold 4)9, 48, 49, 599#, 088, 6888#, 6#, 6#, 6#, (Hold 6)9#, 68#, 4#, 4#, 4#, 4#, (Hold 4)9#, 48#, 2*#, 2#, 2#, 2#, (Hold 2)9#, 28#, 7**, 7, 7, 7, 6, 6, 6, 6, 6#, 6#, 6#, 6#, (Hold 6)999#
Foo Fighters - Monkey Wrench
Nokia Composer Code - (Help)
32g1, 32g1, 32f1, 32f1, 32e1, 32e1, 32d1, 32d1, 32f1, 32f1, 32e1, 32e1, 32d1, 32d1, 32c1, 32c1, 32d1, 32d1, 32c1, 32c1, 32a1, 32a1, 32c1, 32c1, 32d1, 32d1, 32c1, 32c1, 32d1, 32d1, 32e1, 32d1, 32g1, 32g1, 32f1, 32f1, 32e1, 32e1, 32d1, 32d1, 32f1, 32f1, 32e1, 32e1, 32d1, 32d1, 32c1, 32c1, 32d1, 32d1, 32c1, 32c1, 32a1, 32a1, 32c1, 32c1, 32d1, 32d1, 32c1, 32c1, 32d1, 32d1, 32e1, 32d1
Nokia Keypress Sequence - (Help)
5888*, 5, 4, 4, 3, 3, 2, 2, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 1, 1, 6**, 6, 1*, 1, 2, 2, 1, 1, 2, 2, 3, 2, 5, 5, 4, 4, 3, 3, 2, 2, 4, 4, 3, 3, 2, 2, 1, 1, 2, 2, 1, 1, 6**, 6, 1*, 1, 2, 2, 1, 1, 2, 2, 3, 2
Deep Purple – Burn
Nokia Composer Code - (Help)
16a1, 16c2, 16b1, 16a1, 8.d2, 16a1, 16c2, 16b1, 16a1, 8d2, 8c2, 16a1, 16a1, 16c2, 16b1, 16a1, 8.d2, 16a1, 16c2, 16b1, 8a1, 4-, 16a1, 16c2, 16b1, 16a1, 8.d2, 16a1, 16c2, 16b1, 16a1, 8d2, 8c2, 16a1, 16a1, 16c2, 16b1, 16a1, 8.d2, 16a1, 16c2, 16b1, 8a1
Nokia Keypress Sequence - (Help)
688, 1*, 7**, 6, (Hold 2)9*, 68**, 1*, 7**, 6, 29*, 1, 68**, 6, 1*, 7**, 6, (Hold 2)9*, 68**, 1*, 7**, 69, 09, 68, 1*, 7**, 6, (Hold 2)9*, 68**, 1*, 7**, 6, 29*, 1, 68**, 6, 1*, 7**, 6, (Hold 2)9*, 68**, 1*, 7**, 69
Rage Against The Machine - Guerilla Radio
Nokia Composer Code - (Help)
8e1, 8#f1, 8#f1, 16e1, 8#f1, 16e1, 8#f1, 8a1, 8b1, 8e1, 8#f1, 8#f1, 16e1, 8#f1, 16e1, 8#f1, 8a1, 8b1, 8e1, 8#f1, 8#f1, 16e1, 8#f1, 16e1, 8#f1, 8a1, 8b1, 8e1, 8#f1, 8#f1, 16e1, 8#f1, 16e1, 8#f1, 8a1, 8b1, 8e1, 8#f1, 8#f1, 16e1, 8#f1, 16e1, 8#f1, 8a1, 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, 7, 7, 2*, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7**, 0, 7, 7, 7, 7
Linkin Park - One Step Closer 1
Nokia Composer Code - (Help)
8#c1, 8#c2, 16#g1, 8.#d2, 8a1, 8#g1, 16#c1, 8.e1, 8#c1, 8#c2, 16#g1, 8.#d2, 8a1, 8#g1, 16#c1, 8.e1, 8#c1, 8#c2, 16#g1, 8.#d2, 8a1, 8#g1, 16#c1, 8.e1, 8#c1, 8#c2, 16#g1, 8.#d2, 8a1, 8#g1, 16#c1, 8.e1
Nokia Keypress Sequence - (Help)
18#, 1*#, 58**#, (Hold 2)9*#, 6**, 5#, 18#, (Hold 3)9, 1#, 1*#, 58**#, (Hold 2)9*#, 6**, 5#, 18#, (Hold 3)9, 1#, 1*#, 58**#, (Hold 2)9*#, 6**, 5#, 18#, (Hold 3)9, 1#, 1*#, 58**#, (Hold 2)9*#, 6**, 5#, 18#, (Hold 3)9
Linkin Park - In The End 1
Nokia Composer Code - (Help)
4.d1, 8-, 4.a1, 8-, 4.a1, 8-, 4.f1, 8-, 4.e1, 8-, 4.e1, 8-, 4.e1, 8-, 4e1, 4f1, 4.d1, 8-, 4.a1, 8-, 4.a1, 8-, 4.f1, 8-, 4.e1, 8-, 4.e1, 8-, 4.e1, 8-, 4e1, 4f1, 4.d1, 8-, 4.a1, 8-, 4.a1, 8-, 4.f1, 8-, 4.e1, 8-, 4.e1, 8-, 4.e1, 8-, 4e1, 4f1, 4.d1
Nokia Keypress Sequence - (Help)
(Hold 2), 08, (Hold 6), 08, (Hold 6), 08, (Hold 4), 08, (Hold 3), 08, (Hold 3), 08, (Hold 3), 08, 3, 4, (Hold 2), 08, (Hold 6), 08, (Hold 6), 08, (Hold 4), 08, (Hold 3), 08, (Hold 3), 08, (Hold 3), 08, 3, 4, (Hold 2), 08, (Hold 6), 08, (Hold 6), 08, (Hold 4), 08, (Hold 3), 08, (Hold 3), 08, (Hold 3), 08, 3, 4, (Hold 2)
National Anthem – Italy
Nokia Composer Code - (Help)
4d1, 8.d1, 4e1, 2d1, 4b1, 8.b1, 4c2, 2b1, 4b1, 8.d1, 4c2, 2b1, 4a1, 8.b1, 4a1, 2g1, 4d1, 8.d1, 4e1, 2d1, 4b1, 8.b1, 4c2, 2b1, 4b1, 8.d1, 4c2, 2b1, 4a1, 8.b1, 4a1, 2g1, 4b1, 4b1, 2#f1, 8.g1, 4a1, 8.g1, 4#f1, 2e1, 4g1, 8.#f1, 4g1, 2a1, 4c1, 2b1, 4c2, 4d1, 8.d1, 4e1, 2d1, 4b1, 8.b1, 4c2, 2b1, 4b1, 8.d1, 4c2, 4.b1, 8d2, 8a1, 8d2, 4.g1
Nokia Keypress Sequence - (Help)
2, (Hold 2)8, 38, 2999, 78, (Hold 7)8, 18*, 7999**, 78, (Hold 2)8, 18*, 7999**, 68, (Hold 7)8, 68, 5999, 28, (Hold 2)8, 38, 2999, 78, (Hold 7)8, 18*, 7999**, 78, (Hold 2)8, 18*, 7999**, 68, (Hold 7)8, 68, 5999, 78, 7, 49#, (Hold 5)88, 68, (Hold 5)9, 48#, 3999, 58, (Hold 4)8#, 58, 6999, 18, 79, 18*, 2**, (Hold 2)8, 38, 2999, 78, (Hold 7)8, 18*, 7999**, 78, (Hold 2)8, 18*, (Hold 7)99**, 28*, 6**, 2*, (Hold 5)9**
Aerosmith - Walk This Way
Nokia Composer Code - (Help)
4f1, 4#f1, 4g1, 4c2, 4-, 4f1, 4#f1, 4g1, 4c2, 4c2, 2-, 16-, 4f1, 4#f1, 4g1, 4c2, 4-, 4f1, 4#f1, 4g1, 4c2, 4c1, 4c2, 4-, 4f1, 4#f1, 4g1, 4c2, 4-, 4f1, 4#f1, 4g1, 4c2, 4c2, 2-, 16-, 4f1, 4#f1, 4g1, 4c2, 4-, 4f1, 4#f1, 4g1, 4c2, 4c1, 4c2
Nokia Keypress Sequence - (Help)
48, 4#, 5, 1*, 0, 4**, 4#, 5, 19*, 18, 099, 08, 4**, 4#, 5, 1*, 0, 4**, 4#, 5, 19*, 1**, 1*, 0, 48**, 4#, 5, 1*, 0, 4**, 4#, 5, 19*, 18, 099, 08, 4**, 4#, 5, 1*, 0, 4**, 4#, 5, 19*, 1**, 1*

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.