Skip to content

Instantly share code, notes, and snippets.

View rameshvoltella's full-sized avatar
😉
Will have small delay in response as am working on a main module @_work

Ramesh M Nair rameshvoltella

😉
Will have small delay in response as am working on a main module @_work
View GitHub Profile
@rameshvoltella
rameshvoltella / AsyncHttp.java
Last active August 29, 2015 14:04
Working of interface for beginners Android
public class AsyncHttp extends AsyncTask<String, String, String> {
CallbackToActivity mCallback;//Interface class for callback
public AsyncHttp(CallbackToActivity mCallback) {
this.mCallback = mCallback;
}
@rameshvoltella
rameshvoltella / LocalBroadcastManager ActivityA.java
Last active August 29, 2015 14:04
LocalBroadcastManager  which used to update the one activity or fragment data from another one,Example if we have two activity A and B, from activity A navgate to activity B and if i do some change in activty b and if those changes should reflect on activity A the we can use the following Methord.the Advantage is that we can do this from any cla…
//ActivityA.java
@Override
public void onCreate(Bundle savedInstanceState) {
// Register to receive messages.
.
LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver,
@rameshvoltella
rameshvoltella / Adding Dynamic Marker in googlemap from web Exapleclass.java
Last active August 29, 2015 14:04
Add dynamic Marker in google map from web using Lazyloading
//Use Lazyloading libarary by Fedor Vlasov from here https://github.com/thest1/LazyList
ImageLoader mImageLoader=new ImageLoader();//imagloader class from the libraray thest1/LazyList
SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
GoogleMap googleMap = supportMapFragment.getMap();
googleMap.setMyLocationEnabled(true);