Nalle

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • in reply to: Calculus #16006

    Nalle
    Participant

    Version 3.3.0 beta of Calculus available. https://play.google.com/store/apps/details?id=com.poly.calculus

    Now the graphs can be zoomed in. Also some small bug fixes and improvements.

    in reply to: Help with Android Permissions #15688

    Nalle
    Participant

    I opened an issue on Github on the permissions. I attached the permissions.monkey2 as such I altered it.

    in reply to: Help with Android Permissions #15686

    Nalle
    Participant

    I made some changes to \modules\std\permissions.monkey2 and now asking permission at run-time works like a charm…

    in reply to: Android: How to save to Pictures folder #15674

    Nalle
    Participant

    I found this old thread: http://monkeycoder.co.nz/forums/topic/android-permissions/

    The permissions can be asked simply in nice Monkey2 code. 🙂

    Though, I had at first problem with the following line:

    RequestPermissions(permissions,Lambda( results:Int[] )

    Error : Can’t find overload for ‘RequestPermissions’ with argument types (monkey.types.String[],Void(monkey.types.Int[]))

    If it is changed to: RequestPermissions( permissions,Lambda( results:ResultType[] ) it can be compiled.

    in reply to: Android: How to save to Pictures folder #15672

    Nalle
    Participant

    I made a new code, this little code (needs some improvement) seems to work.

    It prompts the user (system feature) if the app may write to external storage, after permission, when the permission is granted, the picture is saved to Pictures folder!

    We should add proper code to Monkey2 modules to get more Android features like Camera.

    in reply to: Android: How to save to Pictures folder #15671

    Nalle
    Participant

    From Android version 6 (API >= 23) one must ask at run-time permission for example to Pictures folder.

    This was my first try to do Android coding inside the Android Studio and I came up with this not working skeleton, that is based on Google’s example code:

    Edit: Also this in addition:

     

    Has anyone a working solution?

    Working solution should ask the user, if the user agrees to app’s writing to external storage.

    edit: Link to original code: https://developer.android.com/training/permissions/requesting#java

    in reply to: Android: How to save to Pictures folder #15644

    Nalle
    Participant

    As default there is in the Android Manifest this permission: WRITE_EXTERNAL_STORAGE

    I also thought, that could it be permissions issue, because ..Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES ) is the correct way to get the Pictures folder.

    in reply to: Android: How to save to Pictures folder #15639

    Nalle
    Participant

    With my new Samsung Galaxy A6+ saving to Pictures folder doesn’t work. I checked SavePixmap state from the debugger, it was false and nothing was saved. Has anyone else tried this?

    in reply to: Problems with Admob #15636

    Nalle
    Participant

    With version 16.0.0 the ads are working perfectly. I thought that 17.0.0 was oldest available after 17.1.1. Anyway 15.0.1 that I’ve used earlier isn’t available anymore. Thanks!

    We should get ready for the time, when ads library that’s available is 17.0.0 or later.

    But your reply saved my day! Thanks again.

    Nice to see that Monkey 2 community is alive. 🙂

    in reply to: Problems with Admob #15634

    Nalle
    Participant

    I have added RelativeLayout to my Android project (layout.xml) just like the instructions say in Google’s Admob page:

    Also metadata to Android manifest file:

    Still not working. Though I’m not sure about that RelativeLayout in Monkey 2 projects…

    Is there anyone here who has working ad code with “com.google.android.gms:play-services-ads:17.1.1”?

    in reply to: Problems with Admob #15616

    Nalle
    Participant

    Anyone? No-one?

    in reply to: Calculus #15544

    Nalle
    Participant

    Calculus is now at version 2.9.9.

    Now the original graph view gives same output, if scale factor = 1. Also possibility to save black and white graphs added.

    In order to access the graphs with computer, one must copy or move the graph files seen in the Pictures folder. For example one could create Graphs folder to Pictures folder and move the graphs there.

    in reply to: Calculus #15540

    Nalle
    Participant

    Thanks! 🙂

    in reply to: Calculus #15538

    Nalle
    Participant

    Calculus is now at version 2.9.7. Two graph views. The original has been a little improved, the second tries to fit any curve(s) to the screen. The calculation precision is the limit.

    Link to Play Store.

    in reply to: Calculus #15372

    Nalle
    Participant

    I try to implement that to the next version — very good idea, the user sees better what’s he/she is doing.

Viewing 15 posts - 1 through 15 (of 27 total)