We are improving our service

Android Ripple Effect Truth


Basically There are 2 type of ripple effect available in android

 1. Bounded ripple effect
 2. Unbounded ripple effect

1. Bounded Ripple effect, once user click on view then the effect will happen inside the view's bounds.
To Archive this effect use following background property of view.

android:background=”?selectableItemBackground” 
where ?attr/ references to attributes. Attributes are values specified in your apps theme. for more Referencing style attributes.

2. Unbounded Ripple effect, once user click on view then the effect will extends the view's bounds or outside the view's bound.
To Archive this effect use following background property of view.

android:background=”?selectableItemBackgroundBorderless”

Unfortunately,these ripples are always grey in color.
To tweak these based on your theme, go to your parent theme and change the colorControlHighlight.
In your app’s main theme:

<item name="colorControlHighlight">#1bff3a</item>

This value will change the color of the default ripple.
Note: On devices below 21, the ripple will turn into normal selectors with the same color you have set.

How do I install Google Play Services in Genymotion?

Again in a very simple and open way,
I am explaining the how will we install google play service in Genymotion.
if you guyz are not aware about genymotion then visit this link and know more about this.

Lets Start-

  • Visit opengapps.org
  • Select x86 as platform
  • Choose the Android version corresponding to your virtual device
  • Select nano as variant
  • Download the zip file
  • Drag & Drop the zip installer in new Genymotion virtual device (2.7.2 and above only)
  • Follow the pop-up instructions
That's it. :)

                                                                                                                                                                                                       Source : genymotion.com

Facebook integration android

Here are basic steps to integrate Facebook into your android application.

Prerequisite:
add compile time dependency

compile 'in.hubdestro:fbmanager:1.0'
if any error occur add this under repository

repositories {
    jcenter()
    maven {
        url 'https://dl.bintray.com/hubdestro/Hubdestro-Labs'    }
}

Step 1:
create instance of FacebookManager class
and do this  FacebokManager manager = FacebookManager.getInstance();
manager.initialiseSdk(this);
manager.setPermission("public_profile","email");

before setContentView() method

Step 2 :
now onActivityResult(reqCode, resCode, data) {
manager.getCallBackManger().onActivityResult(reqCode,resCode, data);
}

Retrieve data :
done you will get data into callback, implement SocialCallback in your class. override getFbUserDetail() method
you will get user class object here.retrieve data from user object


for any issue with that, please comment




Enable Multidex Feature in Android Studio


Android application (APK) files contain executable bytecode files in the form of Dalvik Executable (DEX) files, which contain the compiled code used to run your app. The Dalvik Executable specification limits the total number of methods 

that can be referenced within a single DEX file to 65,536 - including Android framework methods, library methods, and methods in your own code. 
In the context of computer science, the term Kilo/K, denotes 1024 (or 2^10). Because 65,536 is equal to 64 X 1024, this limit is referred to as the '64K reference(methods) limit'.

When your application and the libraries it references(methods) reach a certain size, you encounter build errors that indicate your app has reached a limit of the Android app build architecture.

In That case we go for Multidex Features. Multidex support prior to Android 5.0. Note that 
if you are using instant run, then after enabling multidex feature you can not use instant run feature below API level 20.

Configuring Your App for Multidex with Gradle.
  • Change your Gradle build configuration to enable multidex


android {
    compileSdkVersion 21
    buildToolsVersion "21.1.0"

    defaultConfig {
        ...
        minSdkVersion 14
        targetSdkVersion 21
        ...

        // Enabling multidex support.
        multiDexEnabled true
    }
    ...
}

dependencies {
  compile 'com.android.support:multidex:1.0.0'
}
  • Modify your manifest.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.multidex.myapplication">
    <application
        ...
        android:name="android.support.multidex.MultiDexApplication">
        ...
    </application>
</manifest>

we have more on that, we will post all content related to this.
Thank you Connect with Admin here for more Ankit Demonstrate :)

Git Tutorial

Git is a tool or a software, which is available for windows,Linux and Mac for version control of your project, project can be of any type (Android project, java project, C++ project, Web project).

lets understand what is VCS (Version Control System)-



source : vogella.com
so on the bases of file modification or addition of new file, version will be decided.


-----------------keep visiting , more coming soon


Library Asistent Ver2.01 - Maintain your library record

This software will help you to maintain your library record. Easy to use and no installation required. Developed for MCA UPTU Student(According to syllabus).
this software provided by hubdestro lab's and devloped by Ankit demonstrate.




You can check status of due book and there date.

Download link-

File Size- less than 1MB

                                  Any Query Pls Post Comment!!