kvdroid / Kvdroid

Some Pyjnius tools for Kivy-Android developments.
MIT License
101 stars 24 forks source link

Creating A Demo #25

Closed kengoon closed 2 years ago

kengoon commented 2 years ago

demo supports:

kengoon commented 2 years ago

@yunus-ceyhan please test the apk, download it from here https://mega.nz/file/CUQnhAJZ#TpHr4MYmcO9EMo-3XTZLcJjVDbCe237sRfoi5g2vDt8

PS: set_wallpaper malfunctions, you might want to use logcat to see the error

yunus-ceyhan commented 2 years ago

@yunus-ceyhan please test the apk, download it from here https://mega.nz/file/CUQnhAJZ#TpHr4MYmcO9EMo-3XTZLcJjVDbCe237sRfoi5g2vDt8

PS: set_wallpaper malfunctions, you might want to use logcat to see the error

Unfortunatelly my device rejected to install it, says that's a trojan virus . I'm always installing debugded apks, haven't seen such a warning before. What might you have used in the application that could cause this error?

@kengoon

kengoon commented 2 years ago

@yunus-ceyhan I include all the permission, I guess that is the reason

yunus-ceyhan commented 2 years ago

Then you may need to request for only required permission.

kengoon commented 2 years ago

Yea, I would do that

kengoon commented 2 years ago

@yunus-ceyhan here https://mega.nz/file/CYRi3RyI#AvQovSNhyWNL4cd1bVrJTxgMCZq94bl8xHA05lINF0U is the new apk with only the required permission

yunus-ceyhan commented 2 years ago

@kengoon

set_wallpper crash because it needs SET_WALLPAPER permission. must have permission android.permission.SET_WALLPAPER java.lang.SecurityException

launch_app externally is not working either. I guess that's your addaption, so what's difference between launch internally and externally?

platform/build-armeabi-v7a/build/python-installs/kvdroid/armeabi-v7a/kvdroid/tools/__init__.py", line 219, in launch_app_externally
01-05 22:59:38.950 26711 26734 I python  :    File "jnius/jnius_export_class.pxi", line 1145, in jnius.jnius.JavaMultipleMethod.__call__
01-05 22:59:38.951 26711 26734 I python  :    File "jnius/jnius_export_class.pxi", line 857, in jnius.jnius.JavaMethod.__call__
01-05 22:59:38.951 26711 26734 I python  :    File "jnius/jnius_export_class.pxi", line 954, in jnius.jnius.JavaMethod.call_method
01-05 22:59:38.951 26711 26734 I python  :    File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
01-05 22:59:38.952 26711 26734 I python  :  jnius.jnius.JavaException: JVM exception occurred: Attempt to invoke virtual method 'boolean android.content.Intent.migrateExtraStreamToClipData()' on a null object reference java.lang.NullPointerException
01-05 22:59:38.952 26711 26734 I python  : Python for android ended.
kengoon commented 2 years ago

@yunus-ceyhan via the launch_exernally and launch_internally i didn't launch a specifc activity, i only launched the Main app itself. I will fix that

via set wallpapaer, i will set that too

kengoon commented 2 years ago

@yunus-ceyhan I might delay on this PR for a while. I am experimenting on new features which might be included on the demo

yunus-ceyhan commented 2 years ago

@yunus-ceyhan I might delay on this PR for a while. I am experimenting on new features which might be included on the demo

No worries, we don't have a time limit.

kengoon commented 2 years ago

@yunus-ceyhan test this https://mega.nz/file/OYwS2SZb#oCpE4rDpJpUpmTIylxR91n5LtNY3dBh6DWRr8aPgZy8 out, if it looks good, then I think this PR should be merged

yunus-ceyhan commented 2 years ago

@yunus-ceyhan test this https://mega.nz/file/OYwS2SZb#oCpE4rDpJpUpmTIylxR91n5LtNY3dBh6DWRr8aPgZy8 out, if it looks good, then I think this PR should be merged

Send notification is not working on Android 12. App crashes immediately while trying to create. Here are the logs.

03-13 10:52:36.943  1195  1343 I python  :  jnius.jnius.JavaException: JVM exception occurred: org.android.kvdroid: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
03-13 10:52:36.943  1195  1343 I python  :  Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles. java.lang.IllegalArgumentException
03-13 10:52:36.943  1195  1343 I python  : Python for android ended.`
kengoon commented 2 years ago

@yunus-ceyhan test this https://mega.nz/file/OYwS2SZb#oCpE4rDpJpUpmTIylxR91n5LtNY3dBh6DWRr8aPgZy8 out, if it looks good, then I think this PR should be merged

Send notification is not working on Android 12. App crashes immediately while trying to create. Here are the logs.

03-13 10:52:36.943  1195  1343 I python  :  jnius.jnius.JavaException: JVM exception occurred: org.android.kvdroid: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
03-13 10:52:36.943  1195  1343 I python  :  Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles. java.lang.IllegalArgumentException
03-13 10:52:36.943  1195  1343 I python  : Python for android ended.`

I will see to that immediately

kengoon commented 2 years ago

@yunus-ceyhan check this https://mega.nz/file/DEAnySAa#EuwD4VEfaidYosQA0IjSqOWwzo72chwUGAT3cK96sRM

yunus-ceyhan commented 2 years ago

Making notification is not working on Android 12, the app crashes immediately, I'll look into logcat to find out why. Pazar, 13 Mart 2022, 00:22ÖÖ +03:00 gönderen: Akubue-Izundu Kenechukwu @.*** :

@.*** test this https://mega.nz/file/OYwS2SZb#oCpE4rDpJpUpmTIylxR91n5LtNY3dBh6DWRr8aPgZy8 out, if it looks good, then I think this PR should be merged

— Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you were mentioned. Message ID: @ github . com>

kengoon commented 2 years ago

@yunus-ceyhan I thought this has already been fixed on the last commit relating to this PR

yunus-ceyhan commented 2 years ago

What the hell is going on. I didn't write that message, how could it be possible? I need to change my password immediately..

yunus-ceyhan commented 2 years ago

I'm 100 percent sure I didn't post anything on GitHub 4 days ago and I still couldn't get how that happened.

kengoon commented 2 years ago

Alright