Android Question MultiPhoto picker

DonManfred

Expert
Licensed User
Longtime User
How do you declare does not work? Does you Computer explode? Does you car no longer works?

Hard to guess anything from the info you provided.

Note that the example is from 2017!

I edited the example, updated Targetsdk to 29, added runtimepermissions and ran the project.
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
sending message to waiting queue (activity_permissionresult)
running waiting messages (2)
** Activity (main) Resume **
MPP_onPhotoPicked([/storage/emulated/0/DCIM/Screenshots/Screenshot_20210107-082611_Bixby Voice.jpg, /storage/emulated/0/DCIM/Screenshots/Screenshot_20210103-182759_Nova Launcher.jpg, /storage/emulated/0/DCIM/Screenshots/Screenshot_20201227-095733_IPTV Smarters Pro.jpg, /storage/emulated/0/DCIM/Screenshots/Screenshot_20201225-113727_WhatsApp.jpg])
Photo = /storage/emulated/0/DCIM/Screenshots/Screenshot_20210107-082611_Bixby Voice.jpg
Photo = /storage/emulated/0/DCIM/Screenshots/Screenshot_20210103-182759_Nova Launcher.jpg
Photo = /storage/emulated/0/DCIM/Screenshots/Screenshot_20201227-095733_IPTV Smarters Pro.jpg
Photo = /storage/emulated/0/DCIM/Screenshots/Screenshot_20201225-113727_WhatsApp.jpg

Note that i used my Note10 Device running Android 11.

IT WORKS!
 
Last edited:
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
Relax ! I added screenshot. I thought maybe there is new alternative.

Could you help me to run it.

Samsung S10+
 

Attachments

  • Screen Shot 2021-02-16 at 15.24.34.png
    Screen Shot 2021-02-16 at 15.24.34.png
    62 KB · Views: 221
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
I have another error after set TargetSDK
 

Attachments

  • Screen Shot 2021-02-16 at 15.34.50.png
    Screen Shot 2021-02-16 at 15.34.50.png
    43.5 KB · Views: 211
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
The library depends on AppCompat. So your app must use AppCompat and a AppCompat Theme.
I'm trying with example project. I didn't chage anything.

AppCompat 4.0 Library Added
B4X:
'This code will be applied to the manifest file during compilation.


'You do not need to modify it in most cases.


'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136


AddManifestText(


<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/>


<supports-screens android:largeScreens="true" 


    android:normalScreens="true" 


    android:smallScreens="true" 


    android:anyDensity="true"/>)


SetApplicationAttribute(android:icon, "@drawable/icon")


SetApplicationAttribute(android:label, "$LABEL$")


'End of default text.


SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")


AddApplicationText(<activity android:name="com.nileshp.multiphotopicker.photopicker.activity.PickImageActivity"/>)


AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) ' Allows an application to write to external storage.


AddPermission(android.permission.INTERNET) ' Allows applications to open network sockets.

what else i should do?
 

Attachments

  • Screen Shot 2021-02-16 at 16.47.59.png
    Screen Shot 2021-02-16 at 16.47.59.png
    20.4 KB · Views: 206
Upvote 0
Top