mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-03 20:01:07 -05:00
Delete imagepicker activity
This commit is contained in:
parent
2cb6742dbc
commit
3b092f7fb6
@ -83,18 +83,6 @@
|
|||||||
<!-- extract android style -->
|
<!-- extract android style -->
|
||||||
</activity>
|
</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">
|
<receiver android:name=".BootCompletedReceiver" android:enabled="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||||
@ -220,4 +208,6 @@
|
|||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||||
<!-- Added by Angesoc: used to pick images from gallery or take it from camera -->
|
<!-- 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.WRITE_EXTERNAL_STORAGE"/>
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
@ -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");
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user