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

    Featured Post

    Java Introdcution

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