Browse Source

change minimal requirement to android 4.0

pull/860/head
orignal 8 years ago
parent
commit
14b3eefbaf
  1. 2
      android/AndroidManifest.xml
  2. 1
      android/libs/.gitignore
  3. BIN
      android/libs/android-support-v4.jar
  4. 5
      android/src/org/purplei2p/i2pd/ForegroundService.java

2
android/AndroidManifest.xml

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
package="org.purplei2p.i2pd"
android:versionCode="1"
android:versionName="2.13.0">
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="24"/>
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="24"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

1
android/libs/.gitignore vendored

@ -1 +0,0 @@ @@ -1 +0,0 @@
armeabi-v7a

BIN
android/libs/android-support-v4.jar

Binary file not shown.

5
android/src/org/purplei2p/i2pd/ForegroundService.java

@ -6,7 +6,6 @@ import android.app.Service; @@ -6,7 +6,6 @@ import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
public class ForegroundService extends Service {
@ -72,7 +71,7 @@ public class ForegroundService extends Service { @@ -72,7 +71,7 @@ public class ForegroundService extends Service {
new Intent(this, I2PD.class), 0);
// Set the info for the views that show in the notification panel.
Notification notification = new NotificationCompat.Builder(this)
Notification notification = new Notification.Builder(this)
.setSmallIcon(R.drawable.itoopie_notification_icon) // the status icon
.setTicker(text) // the status text
.setWhen(System.currentTimeMillis()) // the time stamp
@ -85,4 +84,4 @@ public class ForegroundService extends Service { @@ -85,4 +84,4 @@ public class ForegroundService extends Service {
//mNM.notify(NOTIFICATION, notification);
startForeground(NOTIFICATION, notification);
}
}
}

Loading…
Cancel
Save