Showing posts with label SL4A. Show all posts
Showing posts with label SL4A. Show all posts

9/22/2013

Mark Unread Sms As Read Thoroughly via Tasker

For quite some time, I use a task to mark unread sms as read programmatically via Tasker. But these method worked not so effectively.

Firstly, I adopt the database-process-directly way. With a specific SQL syntax, I can mark all unread sms as read. Like this:

Run Shell [ Command: sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "update sms set read=1 where read=0" Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]

Yes, it mark the unread sms as read. But it can’t refresh the unread count in “Messaging” app. And it can’t clear the unread notification in notification bar.


Then I tried the “SL4A+Python” method(refer here). Yes, it can mark unread sms as read and reset the unread count in “Messaging App”. But it can’t clear the unread notification too.


With the “SL4A+Python” method, we made a step forward. But it’s not very perfect. As for notification problem, I had looked up some information. It’s not allowed to clear notification of other app programmatically in android. The notification can be cleared by the tapping of user or by the app itself. We will be taken to the main window of app when we tapped the specific notification normally. And it seems not to be a friendly way. So we can consider about the other way. But app will not clear its notification at our sweet will. I’ve been stuck here for a long time.

Until recently, the principle behind "Launch Camera App" inspired me to try to do something similar about the package of "Messaging" app.



I tried it and it proves me right on MIUI 3.9.6. Now I can mark unread sms as read thoroughly via Tasker! Here is the flowchart:


More: Clear An App's Notification

9/05/2013

Tools or Language To Develop Applications On Android

Many people want to develop apps on Android for certain reason. There are some tools at their choice. Here is a part of list.

Java

As everyone knows, a lot of apps are developed by using Java language. You can find numerous resource about it.


App Inventor

A visual development environment for developing simple application on Android. It is published at about 2010. At about 2011, Google distribute the project to MIT. So it's a online product of MIT now. You can find it here.


Tasker AppFactory

Through the awesome app - Tasker, you can make some powerful creations. Then you can package and export your creation as an app. You can get it from Google Play.


SL4A

Scripting Layer for Android (SL4A) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to get things done.
Visit SL4A homepage>>


Kivy + Python

Kivy - Open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps.
Visit Kivy homepage>>

A brief experience of Kivy + Paython on Android, here you go.