Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added basic bugsense

  • Loading branch information...
commit 073b272c96744ebb8cde98cde522fe5fd07cbe8b 1 parent a527b70
@ouchadam ouchadam authored
View
5 demo/pom.xml
@@ -26,6 +26,11 @@
<artifactId>imageloader-core</artifactId>
<version>1.5.7-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>com.bugsense</groupId>
+ <artifactId>bugsense-trace</artifactId>
+ <version>1.9</version>
+ </dependency>
</dependencies>
<build>
View
7 demo/src/com/novoda/imageloader/demo/DemoApplication.java
@@ -1,18 +1,16 @@
package com.novoda.imageloader.demo;
-import java.io.File;
-
import android.app.Application;
-
import com.novoda.imageloader.core.ImageManager;
import com.novoda.imageloader.core.LoaderSettings;
import com.novoda.imageloader.core.LoaderSettings.SettingsBuilder;
import com.novoda.imageloader.core.cache.LruBitmapCache;
+
public class DemoApplication extends Application {
/**
- * It is possible to keep a static reference across the
+ * It is possible to keep a static reference across the
* application of the image loader.
*/
private static ImageManager imageManager;
@@ -20,7 +18,6 @@
@Override
public void onCreate() {
super.onCreate();
-
normalImageManagerSettings();
}
View
10 demo/src/com/novoda/imageloader/demo/activity/Demos.java
@@ -8,6 +8,7 @@
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
+import com.bugsense.trace.BugSenseHandler;
import com.novoda.imageloader.demo.R;
/**
@@ -15,15 +16,24 @@
*/
public class Demos extends Activity implements OnItemClickListener {
+ private static final String API_KEY = "api key";
+
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ BugSenseHandler.initAndStartSession(this, API_KEY);
setContentView(R.layout.demos);
ListView entries = (ListView) findViewById(R.id.demo_list);
entries.setOnItemClickListener(this);
}
@Override
+ protected void onDestroy() {
+ super.onDestroy();
+ BugSenseHandler.closeSession(this);
+ }
+
+ @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
switch (position) {
case 0:
View
4 pom.xml
@@ -23,7 +23,6 @@
<android.maven.plugin.version>3.2.0</android.maven.plugin.version>
</properties>
-<!--
<repositories>
<repository>
<id>public-mvn-repo-releases</id>
@@ -31,7 +30,6 @@
</repository>
</repositories>
-
<distributionManagement>
<repository>
<id>local-public-mvn-repo</id>
@@ -40,8 +38,6 @@
</repository>
</distributionManagement>
--->
-
<scm>
<url>http://github.com/novoda/ImageLoader/tree/${scm.branch}</url>
<connection>scm:git:git://github.com/novoda/ImageLoader.git</connection>
Please sign in to comment.
Something went wrong with that request. Please try again.