Sunday, August 19, 2012

nexus7 android development

nexus7 android development 

I had problems with nexus7 and i don't found any useful article in the web. Hence thought of writing this blog for Android brothers and sister.

Here you go, if you are planning to deploy your applications in nexus7 for testing in Windows. The following is the process.

Setup the Nexus7 Settings

1. Unlock the main screen

2. Click on the View APPS Menu as highlighted below

3. Click on the settings in the APPS menu page (See the highlighted settings)



4. Click on the Device - Storage as highlighted below


5. Click on the view more options in the storage as highlighted in yellow below


6. Click on the USB Computer connection

7. Select the option Camera(PTP) option.
Your android device can be deducted only if this mode is selected.

Don't choose the option Media device (MTP) which is highly supported in Mac OS.


Enable Developer Option Settings

1. Unlock the main screen



2. Click on the View APPS Menu as highlighted below



3. Click on the settings in the APPS menu page (See the highlighted settings)



4. Select Developer Options


Note: If you are using Android 4.2.2 and not able to find Developer Options please check this link for more details http://zacktutorials.blogspot.ca/2013/03/enabling-developer-options-in-android.html

5. Select the following options


  1. Stay awake
  2. USB debugging
  3. Allow mock locations


Where is your USB driver for windows located

<Your Android SDK location>\extras\google\usb_driver

Ex: In my PC it is stored in the location below
C:\STRP\android-sdk-windows\extras\google\usb_driver


What to do if my extra usb_driver is not available 

In Eclipse open the Android SDK Manager  and check the Extras --> Google USB Driver.

Install the package and check in <Your Android SDK location>\extras\google\usb_driver






Windows7 USB Driver installation for nexus7

1. Device driver software was not successfully installed message will be seen as below,


2. Click Start -- Control Panel

3. Search for Device Manager


4. Check the Other devices and Nexus where it is missing driver
5.  Right Click Nexus and select Update Driver Software 


6. Click Browse my computer for driver software option



7.  Select the android driver location 

<Your Android SDK location>\extras\google\usb_driver

Ex: In my PC it is stored in the location below 
C:\Data\android-sdk-windows\extras\google\usb_driver


8. Check always trust software from "Google Inc". and Click Install


9. Your Android device is installed and message will be displayed as below,


10.  Use this option

adb kill-server
adb start-server
adb devices


Note: In case you get error 'adb' is not recognized as an internal or external command,
operable program or batch file. Please read the link http://zacktutorials.blogspot.ca/2013/04/adb-is-not-recognized-as-internal-or.html

11.  Make sure adb devices lists your device and your device is connected to USB




WindowsXP USB Driver installation for nexus7

1.  When you connect the nexus7 device the following screen will be prompted

2.  Select the option Yes, this time only and Click Next>

3.  Select the option Install from a list or specific location (Advanced)

4.  Select the Location and Click Next >


<Your Android SDK location>\extras\google\usb_driver

Ex: In my PC it is stored in the location below
C:\Data\android-sdk-windows\extras\google\usb_driver



5.  Wait for the ADB Interface driver is completely installed


6.  On Successfully Installation, you will see the screen below, 


7.  Open Command prompt and execute the adb commands as below 


adb kill-server
adb start-server
adb devices




8. If your driver is not installed. Go to Start --> My Computer --> Properties


9. Hardware --> Device Manager


10. Other --> Nexus --> Update Driver





Follow all the steps, for driver for Samsung Galaxy Nexus just download the driver below,


In case of any problem with you can download the driver directly from the link below,







Thursday, February 23, 2012

Windows Dos batch file Date and Time Split


SET currdt=%DATE:~4,2%_%DATE:~7,2%_%DATE:~-4%_%time:~0,2%_%time:~3,2%_%time:~6,2%

SET month=%DATE:~4,2%
SET day=%DATE:~7,2%
SET year=%DATE:~-4%
SET hour=%time:~0,2%
SET sec=%time:~3,2%
SET millis=%time:~6,2%

echo %currdt%
echo %day%
echo %month%
echo %year%
echo %hour%
echo %sec%
echo %millis%

echo %year%_%month%_%day%_%hour%_%sec%_%millis%

The above batch script can extract day, month, year, hour, sec, millisecond.

You can use this in Windows Batch Script for saving files with Date TimeStamp

Wednesday, January 18, 2012

Read contents from Wikipedia even on Blackout

Read contents from Wikipedia even on Blackout

"Wikipedia is protesting against SOPA and PIPA by blacking out the English Wikipedia for 24 hours, beginning at midnight January 18, Eastern Time. Readers who come to English Wikipedia during the blackout will not be able to read the encyclopedia. Instead, you will see messages intended to raise awareness about SOPA and PIPA, encouraging you to share your views with your representatives, and with each other on social media."

There is a way to read contents from Wikipedia during the blackout. I Support Wikipedia initiative, however  wikipedia is very important and to read some information i found a way.

All out need is a Chrome Browser with iReader App (https://chrome.google.com/webstore/detail/ppelffpjgkifjfgnbaaldcehkpajlmbc)

Click on the link below,
http://en.wikipedia.org/wiki/Test_(assessment)





Click on the iReader icon after the page is loaded, as shown above


Bingo !!! You got access to Wikipedia Content even on Blackout !!! Enjoy everyone..... Support Wikipedia 

Support Wikipedia Using Facebook: Facebook Share

Support Wikipedia Using Google+ : Google+ Share

Support Wikipedia Using Twitter: Twitter Share

Any problems or Questions please post it.

Thursday, February 10, 2011

How to copy oracle sqldeveloper settings from one machine to other

When we move machine, copying the Oracle configuration is a problem. However there is solution for this problem.


Navigate to the following location,


Step 1: C:\Documents and Settings\\Application Data\SQL Developer

Step 2: C:\Documents and Settings\\Application Data\SQL Developer\systemXX.X.X.X.XX

Step 3: Copy the product-preferences.xml in the location below,

C:\Documents and Settings\\Application Data\SQL Developer\systemXX.X.X.X.XX\o.sqldeveloper.XX.X.X.XX.XX

Step 4: Copy the connections.xml in the location below,

C:\Documents and Settings\\Application Data\SQL Developer\systemXX.X.X.X.XX\o.jdeveloper.db.connection.XX.X.X.X.XX.XX.XX





Copy these 2 files(product-preferences.xml&connections.xml ) to your new machine in the same location

Wednesday, February 9, 2011

How to copy putty configuration from one machine to other

When we move machine, copying the putty configuration is a problem.
There is solution for this problem.
From the machine where existing putty connection are available we can extract the details. The following steps are to be followed.

Step 1: Windows –> Start –> Run –> regedit















Step2: Navigate in Register Editor –> My Computer –> HKEY_CURRENT_USER –> Software –> Simon Tatham –> Right Click –> Export –> Save as Simon Tatham.reg






Step3: Copy this file Simon Tatham.reg to the new machine.



Step4: Run this Simon Tatham.reg in the new machine the settings will be available.