December 24, 2014

Android Application Upload to Google Play Store Minimum Requirements

Hi Friends,
Today, I have prepared a simple document which required once your signed application is ready (.apk file)

Pre-requisites

Google Play Developer Console account

Procedure

The following sections will explain the procedure of requirements

APK

In this section, you can upload the .apk for testing and production
We will have following tabs/sections for the following
1)   Production
2)   Beta Testing
3)   Alpha Testing 

Note:
For Beta and Alpha testing, tester e-mail ids shall be given to access the app)

  • Click on “Upload new APK” to upload the .apk file

Store Listing

App Info

1)   Title (max 30 characters)
2)   Short description (max 80 characters)
3)   Full description (max 4000 characters)

Graphic Assets for Android App Upload

  1. Screenshots
    • Default – English (United States) – en-US
    • JPEG or 24-bit PNG (no alpha). Min length for any side: 320px. Max length for any side: 3840px.
    • At least 2 screenshots are required overall. Max 8 screenshots per type. Drag to reorder or to move between types.
  2. Hi-res icon 
    • Default – English (United States) – en-US
    • 512 px x 512 px 32-bit PNG (with alpha)
  3. Feature Graphic 
    • Default – English (United States) – en-US
    • 1024 w x 500 h JPG or 24-bit PNG (no alpha)

Categorization

1)   Application type
2)   Category
3)   Content rating

Contact Details

1)   Website (Optional)
2)   Email

Privacy Policy

If you wish to provide a privacy policy URL for this application, please enter the privacy policy URL in the specified text box.

Note:
If we don’t have the privacy policy currently, we can skip by selecting “ Not submitting a privacy policy URL at this time” option.

Services and APIs

Licensing and In-app billing

Licensing allows you to prevent unauthorized distribution of your app. It can also be used to verify in-app billing purchases. Learn more about licensing.

Your license key for this application

We will be able to see a Base64-encoded RSA public key to include in your binary. Please remove any spaces. Add it to the, licensing source code of your program for verification with Google Play Store.

Please send your feedback and comments to psrdotcom@gmail.com

December 19, 2014

Reverse Engineering .apk file (or) Getting Java source code from .apk by extracting

Hi friends,

Today we are going to see how the .apk can be reverse engineered to see the original source code

Procedure

  1. Get the .apk file (Here I'm taking example apk called psr.apk)
  2. Rename the extention from psr.apk to psr.zip file
  3. Extract the psr.zip file
  4. It will create folder named "psr" and contents will be inside that
  5. Download the tool "dex2jar" from the official link
  6. Extract the downloaded "dex2jar" zip
  7. Navigate to the "dex2jar" extracted directory
  8. Execute the following command
    • ./d2j-dex2jar.sh psr/classes.dex
  9. Now it will generate classes-dex2jar.jar file
  10. Extract the jar file, it will create "classes-dex2jar" folder
  11. Now, open you "intelliJ IDEA"
    • Install "Java Decompiler IntelliJ Plugin" in "intelliJ IDEA"
    • In IDE, click "File->Open"
    • Select the "classes-dex2jar" folder path
  12. Now, click on any of the .class file, then you should be able to see the original java source code of it

Isn't it awesome guys :)

Keep enjoying the coding :)

Please send your feedback and comments to psrdotcom@gmail.com

Android Screencast Configuration Install in Ubuntu

Hi all,

Today, I am going to show you how to show the android screen on your Ubuntu.

Procedure

  • Download the androidscreencast from the official link
  • Just by running the jnlp, you won't be able to see the screen
  • Java has security restictions
  • Now we have to manually add Android screencast url to be allowed in Java Security in Ubuntu
  • Go to jre folder
    • Example: /usr/lib/jvm/oracle-(8/7)-java/jre/bin/
  • Run the following command
    • $ ./ControlPanel
  • Select "Security Tab"
  • Click on "Add" button
  • Enter the following http address
    • http://androidscreencast.googlecode.com

References

https://code.google.com/p/androidscreencast

Please send your comments and feedback to psrdotcom@gmail.com

December 17, 2014

Android insufficient permissions for device

Hi Friends,

I was having an issue when connected my friend's Micromax Doodle to my Ubuntu with the following error
"insufficient permissions for device"

Resolution

  1. Open Terminal
  2. Kill the server by typing the following command
    • $ adb kill-server
  3. Now, start the server
    • $ adb start-server
  4. On your device, a pop-up might come asking for granting the permission
  5. Click on "Yes" for approving the access
  6. Now, check your device status with the following command
    • adb devices
  7. With the above command, you should be able to see devive IMEI and device name
Enjoy the Ubuntu and Android combination :)

Please send your comments and feedback to psrdotcom@gmail.com

Pandoc - Easily convery file format from one markup to another markup language

Hi Friends,

Today I come across very useful tool for easily converting/creating different markup languages.

I personally interested in converting/creating HTML, PDF via Latex, MicroSoft Word .docx files

Try Online

To try the conversion online, please click on below link
http://johnmacfarlane.net/pandoc/try
 

Procedure

  1. In "from" dropdown, you can select "Markdown" and "to" dropdown, select "HTML5"
  2. Type the following content
    • % PSR
      PSR Header
      ==========1234

      PSR Sub Heading
      ---------------
      sub heading contents
  3. Click on "convert" button
  4. Now you will be able to see content converted into HTML5 with appropriate tags.

References

http://johnmacfarlane.net/pandoc/

Please send your comments and feedback to psrdotcom@gmail.com

December 14, 2014

Install and configure latest Oracle Java JDK 8 and 7 in Ubuntu

Hi friends,

Today, I'll try to explain the way how to install the latest Oracle Java JDK 8 and 7.

Pre-requisites

Ubuntu 12.02 or above

Procedure

We can install in two ways
  1. Using PPA
  2. Manual Installation

PPA installation

  • Open terminal from "Applications" or press key combination "Ctrl+Alt+T"
  • Type the following commands in sequence
    • $ sudo apt-add-repository ppa:webupd8team/java
    • $ sudo apt-get update
  • To install latest JDK 8, type the following command
    • $ sudo apt-get install oracle-java8-installer
  • To install latest JDK 7, type the following command
    • $ sudo apt-get install oracle-java7-installer
  • Once the download complete, it will ask for agree for terms and conditions
  • Click on "OK" to complete the installation

Manual Installation

  • Download the Oracle JDK from the following official link
  • Extract the downloaded zip (Example "jdk-1.8.0.25.tar.gz")
  • It will create a folder with name "jdk-1.8.0.25"
  • Create a folder "java-8-oracle" under "/usr/lib/jvm" folder
    • $ sudo mkdir -p /usr/lib/jvm/java-8-oracle
  • Move the folder contents to /usr/lib/jvm/java-8-oracle
    • $ mv jdk-1.8.0.25/* -rf /usr/lib/jvm/java-8-oracle/

Configure the java executables

Configuration can only be done if more than one JDK is installed.

To configure java execute the following command

$ sudo update-alternatives --config java

Example output if Java 7 and Java 8 installed
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                     Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-7-oracle/jre/bin/java   2         auto mode
  1            /usr/lib/jvm/java-7-oracle/jre/bin/java   2         manual mode
* 2            /usr/lib/jvm/java-8-oracle/jre/bin/java   1         manual mode

Similar way you can do for javac, javaws and other executables

Configure javac

$ sudo update-alternatives --config javac

Configure javaws

$ sudo update-alternatives --config javaws

Happy java coding guys :)

References

  1. http://askubuntu.com/questions/121654/how-to-set-default-java-version
  2. http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04
  3. http://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre

Please send your feedback and comments to psrdotcom@gmail.com

December 09, 2014

Manually Adding Dependency in Spring MicroSoft SQLServer JDBC Driver

Hi Friends,

Today, I’ve spent more than 40 minutes in understanding the process and setting up the SQLServer JDBC Driver in Spring manually

Pre-requisites

Maven (Download from http://maven.apache.org/download.cgi and add the maven path to environment variables)

Procedure

  1. Download the latest Microsoft JDBC driver for SQL Server from the following official link http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774
  2. I’ve selected sqljdbc jar version 4.0
  3. Navigate to the extracted folder where .jar files available in command prompt
  4. Execute the following command
  5. cmd> mvn install:install-file -DgroupId=com.microsoft.sqlserver.jdbc -DartifactId=sqljdbc -Dversion=4.0 -Dpackaging=jar -Dfile="sqljdbc4.jar"
     
  6. Now you should be able to see the downloading and moving the corresponding .jar and .pom files. Then a message “BUILD SUCCESS” will appear in command prompt.
  7. Add the following dependency to your pom.xml
<!-- Database -->
<dependency>
<groupId>com.microsoft.sqlserver.jdbc</groupId>
<agtifactId>sqljdbc</agtifactId>
<version>4.0</version>
</dependency>

    Now you run the project and enjoy the usage of SQLServer Database with Spring.

    Please send your feedback and comments to psrdotcom@gmail.com

    Blogger Labels: Dependency,MicroSoft,SQLServer,JDBC,Driver,Friends,Procedure,Download,Server,version,Navigate,folder,Execute,DgroupId,DartifactId,Dversion,Dfile,message,BUILD,Database,usage,feedback,sqljdbc,groupId,artifactId

    December 08, 2014

    Adding Company (Exchange) e-Mail account in Android Lollipop

    Hi friends,

    Today I’ll be explaining the steps involved in adding an e-mail account in Android 5/L (Lollipop)

    Procedure

    1. To add acount, you can follow any one of the following approaches
      • Click on “eMail”->Settings->”Add Account”
      • Select “Settings”->”Accounts”->”Add Account”
    2. Select “Exchange”
    3. Click “OK”
    4. Enter the e-mail address
    5. Click “Next”
    6. Enter your password details
    7. Browse the certificate if you have your company e-mail certificate
    8. Click “Next”
    9. Enter username as “domainname\userno” if it’s applicable for your company or else it will be your e-mail address itselft which is by default filled in.
      • Ex: lnties\XXXXXX
    10. Change server to your mail server
      • Ex: “mail.larsentoubro.com”
    11. Click “Next”
    12. Select the sync options
    13. Click “Finish”

    Now the sync process will start and fetch your mails.

    You can change the sync options in settings

    Happy e-mailing guys Smile

    Please send your feedback and comments to psrdotcom@gmail.com

    Blogger Labels: Company,Exchange,Mail,account,Android,Lollipop,Procedure,Click,Settings,Select,Accounts,Enter,password,Browse,certificate,XXXXXX,Change,server,options,Finish,feedback,sync

    October 31, 2014

    Change IP Address and DNS from static to DHCP and vice versa in Windows Command Line Dynamically using Batch file script

    Hi friends,

    I was frequently changing my system network from static to dynamic.

    I was fed-up with the manual changes by entering the static IP address and changing it to dynamic.

    I though of creating a batch file, which requests user to select options and proceed further.

     

    I found something on Internet, just modified it for my purpose and thought of sharing with you all.

     

    • Check your network name
      • cmd> netsh interface show interface
    • It will list all the network interfaces connected to your system
      • Select the network which you want to change the settings
    • Modify the below code with appropriate network name, IP address, subnet, gateway and DNS server

    @echo off

    set NETWORK="Local Area Connection"
    set IP=10.9.40.95
    set SUBNET=255.255.255.0
    set GATEWAY=10.9.40.47
    set DNSSERVER=192.168.178.1

    echo Choose:
    echo [S] Set Static IP
    echo [D] Set DHCP
    echo.

    :choice
    SET /P C=[S,D]?
    for %%? in (S) do if /I "%C%"=="%%?" goto S
    for %%? in (D) do if /I "%C%"=="%%?" goto D
    goto choice

    :S
    @echo off
    echo "Setting Static IP Address, Subnet Mask and DNS Server"
    netsh interface ip set address %NETWORK% static %IP% %SUBNET% %GATEWAY% 1
    netsh interface ip set dnsservers %NETWORK% static %DNSSERVER% primary
    netsh interface ip show config
    pause
    goto end

    :D
    @echo off
    echo "Resetting IP Address, Subnet Mask and DNS server For DHCP"
    netsh interface ip set address name=%NETWORK% dhcp
    netsh interface ip set dns %NETWORK% dhcp
    ipconfig /renew

    echo "New IP Address, Subnet Mast and DNS Server for %computername%:"
    netsh interface ip show config
    pause
    goto end

    :end

    Now enjoy the feature of changing IP address with 3 clicks

     

    Please send your feedback and comments to psrdotcom@gmail.com

    Blogger Labels: Change,DHCP,vice,Windows,Command,Line,Batch,script,system,user,options,Internet,purpose,Check,interface,interfaces,Select,settings,Modify,gateway,server,NETWORK,Local,Area,Connection,SUBNET,DNSSERVER,Choose,Static,Mask,Mast,feedback,netsh,goto,config

    October 16, 2014

    Convert windows drive or disk file system from FAT32 to NTFS without losing data

    Hi all,

    I had a problem with my external hard disk when copying some 25GB file.

    I had troubleshoot the problem and understand that, my hard disk file system is FAT32, which can only copy max 4GB single file size

     

    I was thinking without losing my data, how can I change the file system, so that, I copy more than 4GB sized single files

    Then I come across the following commands in Windows

    1) chkdsk : Check disk

    2) convert : Convert disk file system

     

    chkdsk command

    Syntax

    cmd> chkdsk volume_letter: [options]

    Example

    Checks for disk errors and fix it

    cmd> chkdsk I: /f

     

    convert command

    Syntax

    cmd> convert volume_letter: FS:NTFS [options]

    Example

    Convert volume from FAT to NTFS in verbose

    cmd> convert I: /FS:NTFS /V

     

    Possible Errors with solutions

    Insufficient Memory

    Reason

    Nearly 4 GB files in existing FAT32 system

    Solution

    Move the files to local drive, do chkdsk and then convert

     

    References:

    http://ss64.com/nt/chkdsk.html

    http://www.computerhope.com/convert.htm

     

    Blogger Labels: Convert,disk,system,NTFS,data,size,Windows,Check,Syntax,options,Example,Checks,errors,Possible,solutions,Insufficient,Memory,Reason,Solution,Move,References,chkdsk,volume_letter

    August 15, 2014

    Android L Preview on Nexus 7

    Hi all,

    Today I’ve finally loaded the Android L Developer Preview on my Nexus 7 Wi-Fi 32GB

     

    Its so simple to load the Android L. Here is the procedure

     

    Warning

    All the device data will be erased. Please take backup of all your data before doing this upgrade.

    Not all the applications will work since it’s just a developer preview OS version

     

    Pre-requisites

    • Android SDK with latest update
    • Android L Preview OS image
    • Make sure that, your device has more than 60 to 70 percent of battery
    • Enable USB Debugging
    • Connect the device to computer with USB cable. Make sure that, it has detected by computer

     

    If you don’t’ have the pre-requisites, please follow the below procedure

     

    Android SDK Installation & Update

    1. Download the Android SDK from this link
    2. https://developer.android.com/sdk/index.html
    3. Open SDK Manager.exe
    4. Install Tools, Android L Preview, Extras
    5. Update latest version if available

     

    Android L Preview OS Image Download

    1. Download the corresponding Android L OS image for your device from this below link

     

    Installation Process

    1. Extract the downloaded image to a folder
    2. From Android SDK folder, navigate to “platform-tools” folder, copy adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll and fastboot.exe
    3. Paste in the Android L Preview extracted folder
    4. Finally the extracted folder should look like this
      • image
    5. The highlighted files has been copied from SDK->platform-tools folder
    6. Open the command prompt and navigate to OS extracted folder
      • Tip
        • Open the folder in explorer window. Hold “Shift” and right click on mouse
        • Select “Open command Window here” option
    7. Connect the device to computer
    8. Put device into “fastboot” mode by rebooting
      • cmd> adb reboot fastboot
    9. Device gets rebooted to fastboot
    10. If device is locked, then please unlock it
      • cmd> fastboot oem unlock
    11. Now, run the “flush-all” script
      • cmd> flush-all
    12. It takes some time to install the image
    13. After completing the installation process, it asks you to press “enter/return” button to exit
    14. Press enter/return button for confirmation
    15. Device gets restarted, Android L Preview will be displayed on the device
    16. To lock the device, execute following commands
      • cmd> adb reboot fastboot
      • cmd> fastboot oem lock
    17. Like a new device, enter all the details like your Gmail account, Wi-Fi connection etc.
    18. Enjoy the features of Android L Developer Preview OS

     

    Please send your feedback and queries to psrdotcom@gmail.com
    Blogger Labels: Android,Preview,Nexus,Developer,Here,procedure,device,data,version,requisites,Make,Enable,Connect,computer,Installation,Update,Download,index,Open,Manager,Install,Tools,Extras,Image,developers,Extract,folder,From,platform,AdbWinApi,AdbWinUsbApi,Paste,explorer,Hold,Shift,Select,option,mode,script,confirmation,account,connection,Enjoy,feedback,fastboot,Gmail

    August 14, 2014

    Finding IP address to MAC and vice versa on same network (subnet) or different subnet which is reachable by ping

    Hi all,

    After long time I got a chance to write the blog.

     

    This time it is related to networking.

     

    Finding out which all the system up on the network

    Syntax

    cmd> nmap –sP < regex IP >

    Example

    cmd> nmap –sP 192.168.1.*

     

    Finding MAC address of a device which is connected in same network

    Syntax

    cmd> ping <broadcast address>

    cmd> arp –a [ <IP address> ]

     

    Example

    cmd> ping 192.168.1.255

    cmd> arp –a –> Gives all the IP address and MAC address in the same subnet network

    cmd> arp –a 192.168.1.25 –> Give the MAC of the specified IP address

     

    arp –a : Lists all the IP addresses which are recently got into network with its MAC addresses

     

    Finding MAC address of a device which is connected in same network but different subnet

    Syntax

    nbtstat –A <IP address>

    Example

    nbtstat –A 192.168.2.45

     

    Please send your comments and feedback to psrdotcom@gmail.com

    June 04, 2014

    PhoneGap/Cordova iOS App Full Screen/Hide Status Bar completly

    Hi Friends,

    When we are working with cross platform application development like PhoneGap/Cordova, we might be facing issue with status bar.

    Problem:
    Status bar comes on the application though we want to have app in a full screen.

    iOS Solution:
    • Add the following 2 keys in .plist file
      • view controller-based status bar appearance: NO
      • status bar is initially hidden : YES

    I hope this will help you solving your issue.

    Please send your feedback and comments to psrdotcom@gmail.com

    April 21, 2014

    Cell Broadcast and Push Messages Blocking

    Hi friends,

    I have re-installed my OS and done the "Reset Factory Settings"

    From that day onwards, I am continuously getting "CB Message" --> "Cell Broadcast" messages

    To get rid of this spam kind of messages, please follow the below steps

    1) Go to message settings (Open Inbox->Settings)
    2) Uncheck the "CB activation" under "Cell Broadcast (CB) settings" section

    You can block the push messages from network also, by doing the following
    1) Go to message settings (Open Inbox->Settings)
    2) Uncheck the "Push messages" under "Push message settings" section

    Hope you found the above content useful.

    Please send your feedback and comments to psrdotcom@gmail.com

    April 09, 2014

    Best Tutorials for Android Learning

    Hi all,

    The best blog which described all the possibilities to learn Android

    http://www.fromdev.com/2013/07/Android-Tutorials.html

    My personal suggestions are
    http://developer.android.com/training/index.html (Textual)
    http://www.youtube.com/watch?v=lESZqCflB0o (Video)

     Soon, I will also host my presentations on Android on my website ..

    February 01, 2014

    Change Google + (Plus) details like Date, Description, Location

    Hi Friends,

    This post related to the change of Google Plus album details like data, description, location etc.

     

    Problem

    I have got a situation like, after my album photos upload. My latest album was not in the first position in album list.

    When I just opened the album, it was showing some old date and I was not able to edit the date of the album.

    The current Google + settings once you have uploaded the album.

     

    Objective

    Update date of your Google + album

     

    Resolution Procedure

    Please click on this link to redirect to Picasa web albums

    https://picasaweb.google.com/lh/myphotos?noredirect=1

    Now you can see all your albums

    Click on the album which you want to change the album details

    Change the “Date” or any other field of your choice

    Save it

    That’s it. You are done.

    Now you can view the updated album list your Google + Albums

     

    Please write your queries and comments @ http://psrtechtips.com/contact

     

    Blogger Labels: Change,Google,Plus,Date,Description,Location,Friends,album,data,situation,Objective,Update,Procedure,Click,Save,comments,photos,albums

    January 30, 2014

    Android 4.4 KitKat Developer Options

    Hi friends,

    In Android latest OS version 4.4 (KitKat), by default the “Developer Options” is not available.

    How to enable it? That’s what the current topic is all about.

     

    Objective

    Enable “Developer Options” in Android 4.4 (KitKat)

     

    Procedure

    1. Go to “Settings”
    2. Click on “About Phone/Tablet” option
    3. Click 3 times on “Build number” option
    4. For each click it will show you the message like “You are ‘n’ click away to become a developer”
    5. It will enable the “Developer Options” and you can view it by going back to “Settings” main screen

     

    Please send your feedback and queries at http://psrtechtips.com/contact

    Blogger Labels: Android,KitKat,Developer,Options,version,topic,Objective,Enable,Procedure,Settings,Click,About,Tablet,option,Build,message,feedback

    January 14, 2014

    Sony Xperia L Jellybean 4.2.2 Update Speaker Volume and Mobile Internet Data Connectivity Problem and Solutions

    Hi all,

    I have updated my sister’s phone from Jellybean 4.1.2 to Jellybean 4.2.2.

    She found two problems,

    Problems

    1) Internet Mobile Data is not working

    2) Speaker Volume is very low

    Solutions

    1) Install “Internet Settings” from Settings->Xperia option. It will installs and activates your mobile data

    2) After update manually Switch off and Switch On the device

     

    Simple but vital solutions for any Sony customer

     

    Please feel free to send your comments and feedbacks to psrdotcom@gmail.com

    Blogger Labels: Sony,Xperia,Jellybean,Update,Speaker,Volume,Mobile,Internet,Data,Problem,problems,Install,option,Switch off,Switch On,Simple,customer,comments,Solutions

    January 13, 2014

    Windows 8.1 Pro Upgrade Keyboard Layout, Keys Mismatch Problem Resolution

    Hi all,

    I have upgraded my sister’s laptop from Windows 8 to Windows 8.1

    I know that, it takes lot of time to download and install. After the whole night download and installation is completed.

    But she has come up with an issue saying that, keyboard keys are not displaying correct values.

    Problem

    Keyboard Layout Adjustment

    Resolution

    • I have understood that it’s a layout problem.
    • Default layout is English (UK). I have changed that to English (India).
    • And downloaded the English (US) language pack also.
    • For testing your keyboard layout in the live view, you can open “On-Screen Keyboard”
    • When you change the layout, the “On-Screen Keyboard” layout gets changed automatically.
    • By this way, we can see our keyboard live layout.

    I hope someone who think that, it’s a problem can resolve the issue using the above procedure.

     

    For more queries and comments, please send mail to psrdotcom@gmail.com

    Blogger Labels: Upgrade,Keyboard,Layout,Mismatch,Problem,Resolution,laptop,installation,Adjustment,Default,English,India,language,procedure,comments,download

    January 08, 2014

    Solution to get rid of Vodafone Live Flash (Pop Up) Messages

    Hi all,

    I have recently purchased the Vodafone SIM.

    After a month of usage and paying my bill, I was getting some pop-up message, asking for confirmation to receive some live updates from various categories.

    The message also says that, it will cost some 10 rupees. I know that, its simply waste information.

    But per day, I was getting more than 25 messages, which made me think eager to stop this irritating messages.

     

    I searched in Google and found the following information.

    1. Go to “Vodafone Services”
    2. Click on “FLASH!!”
    3. Click on “Deactivate”
    4. It should show a pop-up message “FLASH OFF”

     

    If any further message comes just ignore/cancel it

    I think, it worked for me. Let me see for one more day. If still the problem exists, then I will update this blog.

     

    I hope, if anyone facing this issue, they can get rid with this solution.

     

    Please send your comments and feedback to psrdotcom@gmail.com

    Blogger Labels: Solution,Live,Flash,Messages,usage,message,confirmation,cost,Google,Services,Click,Deactivate,comments,feedback,categories

    Featured Post

    Java Introdcution

    Please send your review and feedback to psrdotcom@gmail.com