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
java.lang.RuntimeException: Unable to get provider com.cyrilmottier.android.citybikes.provider.CityBikesProvider: java.lang.ClassNotFoundException: com.cyrilmottier.android.citybikes.provider.CityBikesProvider | |
at android.app.ActivityThread.installProvider(ActivityThread.java:4780) | |
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4532) | |
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4486) | |
at android.app.ActivityThread.access$1300(ActivityThread.java:139) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306) | |
at android.os.Handler.dispatchMessage(Handler.java:99) | |
at android.os.Looper.loop(Looper.java:156) | |
at android.app.ActivityThread.main(ActivityThread.java:4977) | |
at java.lang.reflect.Method.invokeNative(Native Method) |
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.cyrilmottier.android.tests; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* @author Cyril Mottier | |
*/ | |
public class ViewAdditions { |
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 OnPageChangeListener mOnPageChangeListener = new OnPageChangeListener() { | |
@Override | |
public void onPageSelected(int position) { | |
// Do whatever you wan't to do. It's up to you ... not me :) | |
} | |
@Override | |
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { | |
// Do whatever you wan't to do. It's up to you ... not me :) | |
} |
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
java.lang.NoClassDefFoundError: android.security.MessageDigest | |
at com.google.android.maps.KeyHelper.getSignatureFingerprint(KeyHelper.java:60) | |
at com.google.android.maps.MapActivity.createMap(MapActivity.java:552) | |
at com.google.android.maps.MapActivity.onCreate(MapActivity.java:422) | |
at com.cyrilmottier.android.polarissample.MainActivity.onCreate(MainActivity.java:92) | |
at android.app.Activity.performCreate(Activity.java:4492) | |
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) | |
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) | |
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) | |
at android.app.ActivityThread.access$600(ActivityThread.java:123) |
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.cyrilmottier.test; | |
public class ClassA { | |
public ClassA() { | |
System.out.println("ClassA()"); | |
method(); | |
} | |
public void method() { |
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.cyrilmottier.android.avelov.database; | |
import android.database.Cursor; | |
import android.database.CursorWrapper; | |
import android.os.Bundle; | |
/** | |
* A Cursor that completely re-writes the actual Cursor capabilities related to extras. It allows clients to use the setExtras(Bundle) (this | |
* method is actually hidden in the Android framework). | |
* |
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
/** | |
* This class encapsulates some awful hacks. | |
* | |
* Before JB-MR2 (API 18) it was not possible to change the home-as-up indicator glyph | |
* in an action bar without some really gross hacks. Since the MR2 SDK is not published as of | |
* this writing, the new API is accessed via reflection here if available. | |
*/ | |
class ActionBarDrawerToggleHoneycomb { | |
private static final String TAG = "ActionBarDrawerToggleHoneycomb"; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" | |
android:src="@drawable/rainbow_stripes_pattern" | |
android:tileMode="repeat" /> |
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
@ColorRes | |
private val RAINBOW_COLORS = intArrayOf( | |
R.color.pink, | |
R.color.orange, | |
R.color.yellow, | |
R.color.green, | |
R.color.emerald_green, | |
R.color.azur_blue, | |
R.color.blue, | |
R.color.cerulean_blue, |
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
val colorCount = RAINBOW_COLORS.size | |
val colors = IntArray(colorCount * 2) | |
val stops = FloatArray(colorCount * 2) | |
for (i in 0 until colorCount) { | |
colors[i * 2] = ContextCompat.getColor(context, RAINBOW_COLORS[i]) | |
colors[i * 2 + 1] = colors[i * 2] | |
stops[i * 2] = i / colorCount.toFloat() | |
stops[i * 2 + 1] = (i + 1) / colorCount.toFloat() | |
} |
OlderNewer