Posts

ListView Over GoogleMapView

Image
 Hi, Here I show you how to set listview over google mapview in android So just start with a new project Add the dependency for google play service on your app.gradle compile ' com . google . android . gms : play - services - maps: 10.2 . 0 ' And also add below line in to the project.gradle file classpath ' com . google . gms : google - services: 3.0 . 0 ' Add the map key on your AndroidManifest.xml file <meta-data android:name= "com.google.android.geo.API_KEY" android:value= "XXEEzaSyArhRHi0c1MQqStWN-x0E8otZonMahbLqM" /> Here is a xml layout for this one <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:layout_width

API calling using AsyncHttpClient

Today we work on AsyncHttpClient for parsing the data from an API What is AsyncHttpClient? The AsyncHttpClient can be used to make asynchronous GET, POST, PUT and DELETE HTTP requests in your Android applications. Requests can be made with additional parameters by passing a RequestParams instance, and responses can be handled by passing an anonymously overridden ResponseHandlerInterface instance.  Here I write an empty class which will hold the model object as per model class.  Model class is just a getter setter class. public class DataModel implements Serializable { }   Lets create an interface which will hold the parsing data public interface NotifyTasKDone { void onTaskDone ( DataModel in ); }     Add the following line on your gradle file dependencies {       compile 'com.loopj.android:android-async-http:1.4.9'  }     Lets create a class for taskhandler with name NetworkHandler   Here I use a gson library for parsing json data

Crypto JS Encryption & Decryption in Android

Hi, today I explain how to do encryption in android using java script. Create sample.html file on the assets folder and add the following html code on it. <html> <head> <script language="javascript" src="aes.js"> </script> </head> <body> </body> </html>  Here I add a javascript file , in this file there is a code for encryption and decryption    Create a javascript file from the below code and save it on our assets folder with .js extension and access this one on our activity class.   /* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var CryptoJS=CryptoJS||function(u,p){var d={},l=d.lib={},s=function(){},t=l.Base={extend:function(a){s.prototype=this;var c=new s;a&&c.mixIn(a);c.hasOwnProperty("init")||(c.init=function(){c.$super.init.apply(this,argumen