Delete imagepicker activity

This commit is contained in:
Angela Mazzurco 2017-07-11 17:34:06 +02:00
parent 2cb6742dbc
commit 3b092f7fb6
2 changed files with 2 additions and 35 deletions

View File

@ -83,18 +83,6 @@
<!-- extract android style -->
</activity>
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation"
android:name="org.retroshare.android.qml_app.RetroshareImagePicker"
android:label="QtAndroidImagePicker"
android:screenOrientation="unspecified"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver android:name=".BootCompletedReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
@ -220,4 +208,6 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<!-- Added by Angesoc: used to pick images from gallery or take it from camera -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
</manifest>

View File

@ -1,23 +0,0 @@
package org.retroshare.android.qml_app;
/**
* Created by Angesoc on 10/07/17.
*/
import org.qtproject.qt5.android.bindings.QtActivity;
import android.content.Intent;
import android.provider.MediaStore;
import android.util.Log;
public class RetroshareImagePicker extends QtActivity{
public static Intent imagePickerIntent() {
Log.i("RetroshareImagePicker", "imagePickerIntent()");
Intent intent = new Intent( Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI );
intent.setType("image/*");
return Intent.createChooser(intent, "Select Image");
}
}