Fixed various lint issues
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -3,10 +3,19 @@
|
|||||||
package="com.TwentyCodes.android.exception"
|
package="com.TwentyCodes.android.exception"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0" >
|
android:versionName="1.0" >
|
||||||
<uses-sdk android:minSdkVersion="14" />
|
|
||||||
|
<uses-sdk android:minSdkVersion="1" />
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
|
||||||
<application>
|
<application>
|
||||||
|
<activity
|
||||||
|
android:name="ExceptionReportActivity"
|
||||||
|
android:configChanges="keyboard|keyboardHidden|orientation" >
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
<service android:name="ReportPostingService" >
|
||||||
|
</service>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
@@ -1,32 +1,30 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="#ffffff">
|
android:background="#ffffff"
|
||||||
|
tools:ignore="Overdraw" >
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/send"
|
android:id="@+id/send"
|
||||||
android:text="@string/send"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
/>
|
android:text="@string/send" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
|
android:id="@+id/description"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/description"
|
|
||||||
android:id="@+id/description"
|
|
||||||
android:layout_below="@id/send"
|
android:layout_below="@id/send"
|
||||||
android:freezesText="true"
|
android:freezesText="true"
|
||||||
/>
|
android:hint="@string/description" />
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:layout_below="@id/description"
|
|
||||||
android:id="@android:id/list"
|
android:id="@android:id/list"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
/>
|
android:layout_below="@id/description" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
@@ -10,6 +10,7 @@ import java.io.IOException;
|
|||||||
|
|
||||||
import org.apache.http.client.ClientProtocolException;
|
import org.apache.http.client.ClientProtocolException;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Notification;
|
import android.app.Notification;
|
||||||
import android.app.Notification.Builder;
|
import android.app.Notification.Builder;
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
@@ -46,6 +47,7 @@ public class ReportPostingService extends Service {
|
|||||||
* @param isOngoing
|
* @param isOngoing
|
||||||
* @author ricky barrette
|
* @author ricky barrette
|
||||||
*/
|
*/
|
||||||
|
@SuppressLint("NewApi")
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
private void fireNotification(String title, String contentText, String ticker, int icon, Intent intent, boolean isOngoing) {
|
private void fireNotification(String title, String contentText, String ticker, int icon, Intent intent, boolean isOngoing) {
|
||||||
PendingIntent pendingIntent = null;
|
PendingIntent pendingIntent = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user