To describe it more clearly I will use a list, if for you this isn't clear I will retry to explain:
1) How to intercept the notification into Android: To intercept every notification we need to use an AccessibilityService (this is an example code that I've found<http://stackoverflow.com/questions/9367196/detect-a-new-android-notification/9632076#9632076>), but it has the inconvenient that the user must enable manually the permissions for the app to work (and also the app will never be pubblished on the Play Store for security reason); it is also possible to do something less powerful, but also without the workaround for the permission, using some BroadcastReceiver<http://developer.android.com/reference/android/content/BroadcastReceiver.html>: it can be used to intercept a specific event (eg, a new SMS, or low battery), so in the end it will be useful for our integration 2) How to intercept the notification into the KDE Workspace: Well, if I am correct, we simpy need to get them from Dbus, in Python for example it is possibile to use the dbus class; in C++ probably it exists a similar class, so it will be possible to do the same, but I think that you or any other KDE developers know this things better than me Close 3) Sharing the notifications: Probably this is the most important thing, to do it over the web we need to create a packet with the notification itself and other information, and to send/receiving them I've thinked to use some socket, so we need to decide the port for this socket. 4) Showing the notification: After we have received the notification, we obviously need to show it: on Android we can do it using a NotificationManager<http://developer.android.com/reference/android/app/NotificationManager.html>, and on KDE we can do it simpy generating a Knotify event For now this is what I have thinked, if you have other ideas or suggestion please write them, I will try to reply Best Regards, Alberto Pastrolin 2013/4/24 Àlex Fiestas <[email protected]> > On Wed, Apr 24, 2013 at 11:08 AM, Alberto Pastrolin < > [email protected]> wrote: > >> well, I've thinked to pair the devices using an app on Android and >> something else on KDE (maybe a program to configure it, or simply adding >> the integration into the system settings); an application IMHO is the best >> solution because in this way we can pair the device over the web, and not >> only with a cable, and in this way we can integrate them even when the >> devices aren't in the same position (ie, you can check the notifications of >> KDE from your smartphone when you aren't at home); a more concrete example >> that you can also try is an app called Airdroid, I've thinked at something >> similar to pair the devices. >> The notifications can be shown on Android into the statusbar (or using >> some toast, but I think that the statusbar notifications are a more elegant >> solution), so the user can see them immediately, without opening an app to >> check them (also the newest version of the Android API give us the >> possibility to interact with this notifications); into KDE, as I have >> already proposed, we can use Knotify to show the notifications that come >> from Android, but I think that with this solution we can't do things more >> advanced (I've started to look better the documentation, but for what I've >> seen it isn't possible to, for example, reply to an SMS from Knotify). >> With this solution I think that is possibile to share only the >> notifications and (with some more work) the classic thing that Android >> permit to share (so photos, link, etcetera), if we want something more >> advanced (like manipulating the file system) we need something more complex >> on both side. >> > > It sounds good enough, now can you do the same description but this time > explaining how you are planning to integratethis technically? > > >> Also can i ask you a thing? Now it is possible for the students to send >> our proposal, but I've thinked that it wouldn't be correct to send this >> proposal if it doesn't soddisfy you: so for you is ok if I send it? >> > Since we are having a lot of proposals for this GSoC I recommend you > submit it first, and then we continue the discussion there. > > Cheers, > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > >
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
