This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ActivityA.java | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
// Register to receive messages. | |
. | |
LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AsyncHttp extends AsyncTask<String, String, String> { | |
CallbackToActivity mCallback;//Interface class for callback | |
public AsyncHttp(CallbackToActivity mCallback) { | |
this.mCallback = mCallback; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoClassDefFoundError at Google Play Services V2 library i have answerd this in stackoverflow plz check the link below | |
http://stackoverflow.com/questions/13691028/noclassdeffounderror-at-google-play-services-v2-library/14686856#14686856 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.media.MediaPlayer; | |
import android.media.MediaPlayer.OnCompletionListener; | |
import android.media.MediaPlayer.OnErrorListener; | |
import android.media.MediaPlayer.OnPreparedListener; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewGroup.LayoutParams; | |
import android.webkit.WebChromeClient; | |
import android.widget.FrameLayout; | |
import android.widget.VideoView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package course.examples.Notification.StatusBarWithCustomView; | |
import android.app.Activity; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ApiModule { | |
private TwitterApi mApi; | |
public void init(String token, String tokenSecret) { | |
OAuthConsumer consumer = new DefaultOAuthConsumer( | |
Config.TWEET_API_KEY, | |
Config.TWEET_API_SECRET); | |
consumer.setTokenWithSecret(token, tokenSecret); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DrawableBitmapResourceDecoder implements ResourceDecoder<Drawable, Bitmap> { | |
private final BitmapPool pool; | |
public DrawableBitmapResourceDecoder(Context context) { | |
this(Glide.get(context).getBitmapPool()); | |
} | |
public DrawableBitmapResourceDecoder(BitmapPool pool) { | |
this.pool = pool; | |
} | |
@Override public Resource<Bitmap> decode(Drawable drawable, int width, int height) throws IOException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BitmapBitmapResourceDecoder implements ResourceDecoder<Bitmap, Bitmap> { | |
private final BitmapPool pool; | |
public BitmapBitmapResourceDecoder(Context context) { | |
this(Glide.get(context).getBitmapPool()); | |
} | |
public BitmapBitmapResourceDecoder(BitmapPool pool) { | |
this.pool = pool; | |
} | |
@Override public Resource<Bitmap> decode(Bitmap source, int width, int height) throws IOException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2008 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer