1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Intent Camera & FTP

Discussion in 'Android Questions' started by dgmegias, Sep 13, 2019 at 12:01 PM.

  1. dgmegias

    dgmegias Member Licensed User

    2 years ago I made this app and it worked perfectly for me, recently I can recover it and when I run it again it always tells me that I can't upload the photo, as if I didn't do it.

    I leave the whole project in case someone could help me and tell me why the image capture method does not take any pictures and how to solve it.

    I have been able to confirm that now he does not take the photos ..... and when I change the sdk in the manifest, the camera always indicates not available.

    I am using version b4a v6.50

    Samsun S7 Android version 8.0.0 mobile device

    Thank you

    P.S. The ftp server is reviewed, from the same mobile device I can send a file or download it
     

    Attached Files:

  2. JohnC

    JohnC Well-Known Member Licensed User

  3. DonManfred

    DonManfred Expert Licensed User

    Your app will probably not run correctly on Android 8 and higher using this old version.

    - You should update to B4A 9.5
    - You should implement FileProvider in your App
    - You should update your app to support targetSdk 26 or higher.

    android.jar / targetSdkVersion / minSdkVersion
     
  4. dgmegias

    dgmegias Member Licensed User

    JhonC, i dont use camera code.

    thanks por the answers,
    how implement fileprovider on this app ?
     
  5. DonManfred

    DonManfred Expert Licensed User

    Follow - and read - the thread i posted. It is all linked there.
     
  6. JohnC

    JohnC Well-Known Member Licensed User

    The above bold statements seem like your were using camera code and having problems with it :confused:
     
    dgmegias likes this.
  7. DonManfred

    DonManfred Expert Licensed User

    i thought the same
     
  8. dgmegias

    dgmegias Member Licensed User

    ok, sorry, how update this library ?

    I add the camera2 library to the project and update the manifest

    warning Library camera2 is not used (warning #32)


    (FileUriExposedException) android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/b4a.example/files/tempimage.jpg exposed beyond app through ClipData.Item.getUri()
     
  9. dgmegias

    dgmegias Member Licensed User

    I'm getting a mess ..... I thank you for the help to both of you, please could you include the modifications in the project to be able to see it and understand what should be done? It has been a long time since I played any code and seeing it would help me

    and thanks for help me at friday
     
  10. DonManfred

    DonManfred Expert Licensed User

    No. You´ll find examples on how to do it for any needed change in the link i posted above.
    Do not expect others do your work.
     
    dgmegias likes this.
  11. dgmegias

    dgmegias Member Licensed User

    It is understood
    Thank you for your guidance and greetings to both.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice