Wednesday, September 24, 2014

android layout tricks

Merging a image with map

<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android=""


        android:src="@drawable/star" />


Actionbar theming

Sunday, September 21, 2014

All about signing the apk and its effect in google play

  1. Generate a private key using keytool. For example:
    $ keytool -genkey -v -keystore my-release-key.keystore-alias alias_name -keyalg RSA -keysize 2048 -validity 10000
    This example prompts you for passwords for the keystore and key, and to provide the Distinguished Name fields for your key. It then generates the keystore as a file called my-release-key.keystore. The keystore contains a single key, valid for 10000 days. The alias is a name that you will use later when signing your app.
  2. Compile your app in release mode to obtain an unsigned APK.
  3. Stand on google_play_services first then run below commands
    android update lib-project --path .
    ant clean
    ant release

    stand on your project root folder
    android update lib-project --path .
    ant clean
    ant release

    make sure your project file is updated with
  4. Sign your app with your private key using jarsigner:
  5. $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1-keystore my-release-key.keystore my_application.apk alias_name
    This example prompts you for passwords for the keystore and key. It then modifies the APK in-place to sign it. Note that you can sign an APK multiple times with different keys.
  6. Verify that your APK is signed. For example:
    $ jarsigner -verify -verbose -certs my_application.apk
  7. Align the final APK package using zipalign.
    $ zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk
    zipalign ensures that all uncompressed data starts with a particular byte alignment relative to the start of the file, which reduces the amount of RAM consumed by an app
  8. How to check your details in the keystore 
  9. keytool -list -keystore .keystore
  10. keytool -list -keystore .keystore -alias foo
    1. List all info ::
    keytool -list -v -keystore android-release-key.keystore
How to find that debug SHA1 ley to be used by Android MAP key

keytool -list -v -keystore C:\Users\<username>\.android\debug.keystore
password : android

keytool -exportcert -alias androiddebugkey -keystore C:\Users\ssaho3\.android\debug.keystore -list -v

Friday, September 19, 2014

websites building references
Ready made themes


Web Color theme and pallet choosers

Logo : 250/100 px

For android

Theming a searchview's autocomplete is tricky as it looks black !! from Theme.Holo.Light.DarkActionBar
This is what you need to do

<!-- this style is only referenced in a Light.DarkActionBar based theme -->
    <style name="Theme.Zpulse.Widget" parent="@android:style/Theme.Holo">
        <item name="android:popupMenuStyle">@style/PopupMenu.Zpulse</item>
        <item name="android:dropDownListViewStyle">@style/DropDownListView.Zpulse</item>
        <item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewAppTheme</item>

 <style name="AutoCompleteTextViewAppTheme" parent="android:Widget.Holo.Light.AutoCompleteTextView">
      <item name="android:dropDownSelector">@drawable/apptheme_list_selector_holo_light</item>
   <item name="android:background">@drawable/apptheme_edit_text_holo_light</item>

On launch date, you can also consider submitting your press release to sites like PRWeb  There’s no shortage of Press Release submission websites but definitely go for quality, not quantity.


Saturday, September 6, 2014

Integrating php-mailgun for auth user

Follow :

Install curl php as below
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
restrat the apache server.
sudo service apache2 restart

Github Most frequent command

git push origin master
git tag -a v1.4 -m 'my version 1.4'
git push origin --tags

Go back to last version
git reset --hard HEAD