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="gen"/>
|
||||
<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"/>
|
||||
</classpath>
|
||||
|
||||
@@ -12,15 +12,15 @@
|
||||
-keep public class * extends android.content.ContentProvider
|
||||
-keep public class com.android.vending.licensing.ILicensingService
|
||||
|
||||
-keepclasseswithmembernames class * {
|
||||
--keepclasseswithmembers class * {
|
||||
native <methods>;
|
||||
}
|
||||
|
||||
-keepclasseswithmembernames class * {
|
||||
--keepclasseswithmembers class * {
|
||||
public <init>(android.content.Context, android.util.AttributeSet);
|
||||
}
|
||||
|
||||
-keepclasseswithmembernames class * {
|
||||
--keepclasseswithmembers class * {
|
||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
|
||||
android.library=true
|
||||
# Project target.
|
||||
target=android-14
|
||||
target=android-15
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
android:orientation="vertical"
|
||||
android:background="#ffffff">
|
||||
|
||||
<!-- title -->
|
||||
<TextView
|
||||
android:text="title"
|
||||
android:id="@+id/exception_title"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -16,8 +16,8 @@
|
||||
android:textColor="#99CC00"
|
||||
/>
|
||||
|
||||
<!-- body -->
|
||||
<TextView
|
||||
android:text="body"
|
||||
android:id="@+id/exception_text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.json.JSONObject;
|
||||
|
||||
import android.os.Parcel;
|
||||
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
|
||||
@@ -35,7 +34,6 @@ import android.util.Log;
|
||||
*/
|
||||
public class Report implements Parcelable{
|
||||
|
||||
private static final String TAG = "Report";
|
||||
private final String mUrl;
|
||||
private ArrayList<ReportItem> mReport;
|
||||
|
||||
@@ -65,7 +63,7 @@ public class Report implements Parcelable{
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public Report(String url) {
|
||||
Log.d(TAG, url);
|
||||
// Log.d(TAG, url);
|
||||
this.mUrl = url;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ public class ReportPostingService extends Service {
|
||||
private static final String TAG = "ReportPostingService";
|
||||
private int mStartId;
|
||||
private Report mReport;
|
||||
private boolean isStarted;
|
||||
|
||||
/**
|
||||
* Extracts the report object from the intent
|
||||
@@ -113,6 +114,8 @@ public class ReportPostingService extends Service {
|
||||
* @author ricky barrette
|
||||
*/
|
||||
private void postReport(){
|
||||
if(!isStarted){
|
||||
isStarted = true;
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run(){
|
||||
@@ -122,9 +125,11 @@ public class ReportPostingService extends Service {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} finally {
|
||||
ReportPostingService.this.stopSelf(mStartId);
|
||||
}
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user