Alarm clock

298 views
Skip to first unread message

Mojmír Vinkler

unread,
Aug 9, 2013, 2:30:08 PM8/9/13
to kivy-...@googlegroups.com
I plan to write an alarm clock application and would really like doing it in Kivy (I want to avoid Java at all costs...). However, I would need to use native classes like AlarmManager, default sounds, vibrations and so on. Is it be possible to do all of these in pyjnius? Is it even worth it? I am also worried about the loading times.

One more thing - how do you debug directly on android? As for now, I always package it and deploy it on emulator which can take from 30 to 60 seconds. Assuming how many mistakes I make, this takes a very long time.


Ben Rousch

unread,
Aug 9, 2013, 2:40:35 PM8/9/13
to kivy-...@googlegroups.com
The ideal way to work on it would be to add the features you need to
plyer (https://github.com/kivy/plyer), and then you can test much of
your logic on the desktop by using the abstracted hardware API.

You can test some of the Android/pyjnius stuff by compiling a Kivy
Remote Shell (https://github.com/kivy/kivy-remote-shell) that contains
the Android permissions and recipes you need.

You could also code directly on the device by installing your APK,
then ripping out the compiled files in /sdcard/com.yourapp/ and
replacing then with the source code. You will then have to transfer
the working source back to your main computer for re-compiling when
you are satisfied.
> --
> You received this message because you are subscribed to the Google Groups
> "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kivy-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Ben Rousch
bro...@gmail.com
http://clusterbleep.net/
Reply all
Reply to author
Forward
0 new messages