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