March 8, 2013

A More Programmable Phone

Filed under: Main — Tags: — admin @ 12:01 am

Smartphones and tablets are really the next generation of computer. While it took them less time to find their niche than the microcomputers and PCs of the early 1980s, a step in that evolution is missing. That’s the ability to program your mobile device.

I’m not addressing the issue of customization. The mobile operating system developers have tossed the consumers a few bones on the level of customization.

You can change the device’s background. Yawn.

If the device is really nice, then you can change the lock screen background as well. Goody!

And you can wiggle around icons, play with widgets, and set custom sounds. But none of that approaches the level of customization I desire.

I want to program my device. I want to get inside and open up some routines and add my own customization. I’m sure others would as well, but the developers don’t offer any tools that do so outside of the standard SDK.

Look: I want to do tricks, not write apps. Something along the lines of a shell scripting language would be ideal, especially something that could tap into the power of Linux that lurks below every Android device’s surface.

For example, I would like to program my phone so that it doesn’t ring or make a sound other than the alarm clock from between 11:00 PM and 7:00 AM. I know that there are apps to do such things, but I want more. I want to say something like this pseudo code:

while ( current_time > 23:00 AND current_time < 7:00 )
{
    set volume = 0;
    exception ( incomming_call(GROUP_FAMILY) );
    exception ( incomming_call(GROUP_EMERGENCY) );
}

Sure, that type of thing could be coded in an app, but programming code is really the best way to truly customize any computer-like device. It should be part of the OS, and not hidden.

Some Android phones offer the ability to block certain users. How about assigning users scripts instead. So if Darryl phones me, I could have the following script run:

use GLOBAL NUM_DARRYL_CALLS;
NUM_DARRYL_CALLS++;
if ( NUM_DARRYL_CALLS < 3 )
{
    ignore;
}
else
{
    send_text_message(USER_DARRYL.MOBILE,"I'll phone you back in a minute");
    set_reminder("Phone Darryl");
    NUM_DARRYL_CALLS = 0;
}

I think you get my idea. Not only would the scripting language be fun, it could have many useful purposes. Hackers -- the enthusiast kind -- would go nuts.

Now I haven't really checked to see whether anything smilar to my idea already exists. I know that Motorola offers Smart Actions for some of their devices.

That isn't good enough!

I'm lusting for a scripting language. If you know of one, let me know. I think it would be a blast.

4 Comments

  1. Ive been interested in the idea of programming on a mobile device for a long time and have suggested it to others, and you are the only person Ive found who likes the idea. There are a bunch of compilers that run on Android, I think Ruby and Pascal are the two best implemented. I dont know if the Android SDK has been implemented on the Android platform itself, but if it has, then that would open up a lot of possibilities for scripting. I noticed on Amazon there is a book on Python programming for Android, I think the Python compiler that runs on Android is pretty limited though.

    Personally I have been learning iOS programming. Dan, I would think you would be interested in dev’ing iPhone apps as Obj-C is very close to C. Checking the app store I havent found any compilers that run on iOS.

    Comment by BradC — March 8, 2013 @ 2:51 pm

  2. I don’t think any Android development takes place on Android itself. You can download the SDK from Google. In fact, I used the SDK when I write my books to check out “pure” Android. Unlike iOS, Android uses Java as it’s development language. That was another hurdle for me. I think I wrote two Android programs, both of them just demos. I don’t even remember whether I transferred them from the PC to a phone.

    Comment by admin — March 8, 2013 @ 3:16 pm

  3. Doing a quick google I found this, it is possible to make Android apps on Android:
    http://www.techrepublic.com/blog/australia/programming-for-android-on-android/854

    I hope youve got vim installed on your device also.

    Comment by BradC — March 8, 2013 @ 3:56 pm

  4. That’s nutty!

    I use vim as my quick editor, but I don’t have it installed on any mobile device.

    Comment by admin — March 8, 2013 @ 4:00 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.


Powered by WordPress