Tag Archives: android

Direct Admin API

The last few weeks I have been working with the Direct Admin API for a new android application. Badly enough the direct admin API is just one large pain to work with, there are several issues with it, and they all cause a general pain really. Read more »

Apple and the iPad

I have never been a fan of Apple products, and due to that I never really used a apple product (Ok, there might be a exception there, as I used for some time a ipod for music, but I still dont see that really as using it :P). Untill 2 weeks ago, from some client I got for the work I did a iPad (Instead of normal money :P) as thanks. Now I used it for 2 weeks or so I need to see I actually like it. Since last year I have been a Android fan, however Android has its problems, mostly due to the different companies using and mostly modifing, Android. On nearly every mobile phone or tablet the Android experience is different, the UI is different, and you have no idea if a App that is written for a specific Android version actually works on that device. With this iPad, I havent see yet any of the problems caused by the many Android devices that apps have. The apps just works (Ok, they still crash sometimes, but android apps do the same).
I need to say, iam surely impressed by the iPad with it current state when I compare it to Android. I still would not buy it myself, but it is not as bad at all as I had thought. My main concerns still are the required use of iTunes, what is not working at Linux at all, and thats my main OS, the kinda closeness of Apple, and the requirement to use a Apple thing to write apps. But I dunno, I might change opinions and move more to Apple if Android does not improvide.

Android and JSON

This afternoon I needed to create a JSON string in Android. Trying to search this at google I found nearly no results, except for reading/parseing a JSON string. I didnt need that (yet), I just needed to serialize/create a JSON string. At the end I came up with the next class to generate a basic JSON string, and to use it to post to a website.

The class includes a method that returns a HttpEntity, that can be directly used to send to a website via HttpPost.
Read more »

Fun things you can do with android

Now I bought last week a new phone, with android  2.1 iam kinda having fun with it. As a school project our project is currently to program for android (Whats not that difficult, it basicly is java :))

after playing a bit around with the SDK for android, I discovered a function that you can use to make a screenshot via the computer at your phone. (If you dont know how, its pretty easy. But I will post a bit more explained how later as seperate post).

Now the more weird thing, after some minutes playing around with this function, the phone was gone into sleep modes. So I expect if the phone is asleep, the screen is just black when I make a screenshot. However, it isnt, see the attached screenshot (Iam afraid you will need to trust me that thats the actual screen being displayed, I know :P).