Friday, December 2, 2016

Adding a GIF to an ImageView

  No comments
10:54 PM



Easiest way to add an GIF (Graphics Interchange Format) images to a ImageView is using the Android GIF Drawable Library. You do not have to implement a custom view. Using this library is more efficient than using WebView or Movie classes.

1. First add the dependency to build.gradle if you are using Android Studio
dependencies {
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.3'
}

or Maven dependency
<dependency>
    <groupid>pl.droidsonroids.gif</groupid>
    <artifactid>android-gif-drawable</artifactid>
    <version>1.0.6</version>
</dependency>

2. Build the project (the dependency will be downloaded)
3. Place your GIF file in the drawable resource folder
4. Then add your gifview in a layout file
    <pl.droidsonroids.gif.GifTextView
       android:id="@+id/gifview"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:background="@drawable/gif_file"/>

More details

mvnrepository
github
stackoverflow

glide is another library similar to android-gif-drawable

Read More

Monday, November 28, 2016

Xposed Framework

  No comments
6:51 PM



Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. It is easy to do and undo modifications. Xposed framework can be installed in different android versions and custom roms also (specially in CyanongenMod).

To install a custom framework in android first thing needed is the root access.

There are two ways of installing Xposed.
  1. Install Xposed Installer app and install the Xposed framework through it
  2. Flash Xposed Framework zip from a coustom recovery

1. Installing through the android app
  • Download the apk from here
  • apk for Lollipop/Marshmallow download apk from here
  • Install the apk
  • Install the framework through the app
  • reboot

2. Flashing the zip file
  • zip is only available for android sdk versions 21, 22, 23 (Lollipop/Marshmallow)
  • Download the latest zip from here
  • Install the zip via a custom recovery (CWM or TWRP)




Read More

Saturday, November 19, 2016

Unable to run mksdcard SDK tool

  1 comment
10:26 AM



If you are running 64bit linux OS android studio require some 32bit libraries, for ubuntu, kali, and Debian run


sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

For Fedora


sudo yum install compat-libstdc++-296.i686 compat-libstdc++-33.i686 ncurses-libs.i686 compat-libstdc++-33.x86_64


Read More

Friday, November 18, 2016

Android Studio

  No comments
10:51 PM


Android Studio is the official development tool for android other than eclipse.
You can download Android studio IDE and android software development toolkit (SDK) from below link

For Windows the IDE and the SDK is available together as a bundle. For Mac and Linux you can download the IDE and while installing you can download and install the latest SDK through the installation wizard. Or you can set up the path for SDK where you have download and extracted.


Android Studio requirements
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 1280 x 800 minimum screen resolution
  • 2 GB of available disk space minimum, 4 GB Recommended



 

Read More

About The Site

  No comments
11:28 AM

This site is about Android Development.

With
  • Tutorials
  • Code help
  • Troubleshooting
  • News

Read More