Updated build paths to be ADt 17 compliant and fixed lint errors
Change-Id: I8b89e983d71bed87c70cf5e977c8a3445fbd51d6 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -3,5 +3,6 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="gen"/>
|
<classpathentry kind="src" path="gen"/>
|
||||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||||
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||||
<classpathentry kind="output" path="bin/classes"/>
|
<classpathentry kind="output" path="bin/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
@@ -12,15 +12,15 @@
|
|||||||
-keep public class * extends android.content.ContentProvider
|
-keep public class * extends android.content.ContentProvider
|
||||||
-keep public class com.android.vending.licensing.ILicensingService
|
-keep public class com.android.vending.licensing.ILicensingService
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
--keepclasseswithmembers class * {
|
||||||
native <methods>;
|
native <methods>;
|
||||||
}
|
}
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
--keepclasseswithmembers class * {
|
||||||
public <init>(android.content.Context, android.util.AttributeSet);
|
public <init>(android.content.Context, android.util.AttributeSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
--keepclasseswithmembers class * {
|
||||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
android.library=true
|
android.library=true
|
||||||
# Project target.
|
# Project target.
|
||||||
target=android-14
|
target=android-15
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:background="#ffffff">
|
android:background="#ffffff">
|
||||||
|
|
||||||
|
<!-- title -->
|
||||||
<TextView
|
<TextView
|
||||||
android:text="title"
|
|
||||||
android:id="@+id/exception_title"
|
android:id="@+id/exception_title"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
android:textColor="#99CC00"
|
android:textColor="#99CC00"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- body -->
|
||||||
<TextView
|
<TextView
|
||||||
android:text="body"
|
|
||||||
android:id="@+id/exception_text"
|
android:id="@+id/exception_text"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import org.json.JSONObject;
|
|||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class will be used to generate a report, and insert it into our exception report database
|
* This class will be used to generate a report, and insert it into our exception report database
|
||||||
@@ -35,7 +34,6 @@ import android.util.Log;
|
|||||||
*/
|
*/
|
||||||
public class Report implements Parcelable{
|
public class Report implements Parcelable{
|
||||||
|
|
||||||
private static final String TAG = "Report";
|
|
||||||
private final String mUrl;
|
private final String mUrl;
|
||||||
private ArrayList<ReportItem> mReport;
|
private ArrayList<ReportItem> mReport;
|
||||||
|
|
||||||
@@ -65,7 +63,7 @@ public class Report implements Parcelable{
|
|||||||
* @author ricky barrette
|
* @author ricky barrette
|
||||||
*/
|
*/
|
||||||
public Report(String url) {
|
public Report(String url) {
|
||||||
Log.d(TAG, url);
|
// Log.d(TAG, url);
|
||||||
this.mUrl = url;
|
this.mUrl = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class ReportPostingService extends Service {
|
|||||||
private static final String TAG = "ReportPostingService";
|
private static final String TAG = "ReportPostingService";
|
||||||
private int mStartId;
|
private int mStartId;
|
||||||
private Report mReport;
|
private Report mReport;
|
||||||
|
private boolean isStarted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extracts the report object from the intent
|
* Extracts the report object from the intent
|
||||||
@@ -113,6 +114,8 @@ public class ReportPostingService extends Service {
|
|||||||
* @author ricky barrette
|
* @author ricky barrette
|
||||||
*/
|
*/
|
||||||
private void postReport(){
|
private void postReport(){
|
||||||
|
if(!isStarted){
|
||||||
|
isStarted = true;
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run(){
|
public void run(){
|
||||||
@@ -122,9 +125,11 @@ public class ReportPostingService extends Service {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
} finally {
|
||||||
ReportPostingService.this.stopSelf(mStartId);
|
ReportPostingService.this.stopSelf(mStartId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}).start();
|
}).start();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user