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
private static final int MENU_COPY_FILES = 99; | |
@Override | |
public boolean onCreateOptionsMenu(Menu menu) { | |
getMenuInflater().inflate(R.menu.activity_kid_feed, menu); | |
if (BuildConfig.DEBUG) { | |
menu.add(Menu.NONE, MENU_COPY_FILES, Menu.NONE, "Copy App Files to sdcard"); | |
} | |
return 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
package com.tringtringlabs.mykidstory.components; | |
/** | |
* @author gopinath | |
* A wrapper around the regular Android logger which will disable debug logs in production automatically. | |
*/ | |
import android.util.Log; | |
import com.tringtringlabs.mykidstory.App; | |
import com.tringtringlabs.mykidstory.BuildConfig; |
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 com.tringtringlabs.experiments; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import android.app.Activity; |
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 static void fbShareThisAppForAndroidUsers(final Facebook mFacebook, final Activity mActivity) { | |
AsyncTask<Object, Object, Object> asyncTask = new AsyncTask<Object, Object, Object>() { | |
private WeakReference<Activity> weakActivity; | |
private Facebook facebook; | |
@Override | |
protected Object doInBackground(Object... params) { | |
try { | |
facebook = mFacebook; |
NewerOlder