Android's Camera Preview

This is a note to self post. Today I’ve been figuring out to have my own custom Camera Activity. A newbie mistake made the Activity to block the UI when initializing. Here’s the problem and the fix. I started camera.startPreview() at surfaceCreated(SurfaceHolder holder). When I moved to surfaceChanged(SurfaceHolder holder, int format, int width, int height), everything turns out as expected. Here’s the full class with an explanation below. To made matters worse, I called camera.startPreview() both when on both methods. The explanation on SurfaceHolder.Callback’s documentation was crystal clear. ...

April 13, 2015 · Batista Harahap

Root Imo Discovery II

I just got this China made phone today. My first time having one and I must say I am very impressed with the performance. Not just on paper, it’s a powerful 1.3 GHz quad core phone indeed. First and foremost, root access is mandatory to hack this phone further. It’s a newer phone being released just last month on February 2014. Resources are limited at the moment. Rooting As it turns out, it’s dead simple. Some time ago I read about Framaroot. It’s a one click root for most devices. Download from the link and install it to your phone. ...

March 26, 2014 · Batista Harahap

Monitoring Android with Flask

This blog post is a mirror and a more detailed representation of the materials I’m talking about at Kopi Darat Python Indonesia - December 2013. Slides can only say so much, here is where the intimacy starts. Warning Any and all of the information including source code available here are for educational purposes. Please use them responsibly. That being said, all codes are basic implementations only. Please get your hands dirty. ...

December 27, 2013 · Batista Harahap

Cheap Ideas are Cheapest to Create

I had 2 lunches today. The second lunch was reinvigorating. The venue was at Hillside Canteen Kompas Gramedia. Cheeky name ain’t it for a well known amazing transit hotel near TB Simatupang. I guess all the creative energy was spent wisely. As always, when you talk and talk, you forget which a leads to b and c and so on and so forth. Basically the talk was about Durex “Fundawear”. If you don’t know about it, get to know, takes flirting to a new level. ...

July 30, 2013 · Batista Harahap

Stock Quotes for Android

Just done a new Android application called Stock Quotes. It’s a simple app that doesn’t get in your way and get reminders (notifications) of current stock prices. It is built with the new Android Studio and the development experience was pleasant to say the least. This blog post is also a continuation of my previous post here. Since that particular post, 6 days have passed and the app I was talking about is done for v1.0.0. ...

July 29, 2013 · Batista Harahap

Large Storage VPS for Android Mirror

Been trying to build my own Android build server only to find insufficient resource to do so like here. After some digging around, I found the perfect deal for this to happen. I found Reliable Hosting Services while reading through some blog posts here. The specs I went for is below: 2 CPU Cores 1 GB RAM 200 GB Disk 1000 GB Bandwidth Price: US$ 5/month Got it for cheap using a coupon code available at the blog post link I posted above. ...

July 29, 2013 · Batista Harahap

Fetching Android CyanogenMod sources on a 512 MB VM

Last night, I synced CyanogenMod’s Android source code into my laptop. It took ~12 hours to complete. The Internet connection I have is 6 Mbps and to download ~9 GB of source code shouldn’t take that long. So I created a 512 MB VM on my Digital Ocean account. I opted for the US$ 5/month VM which is a 1 Core, 512 MB RAM and 20 GB SSD. The VM DOES NOT have any swap space. ...

July 28, 2013 · Batista Harahap

Rooting and Installing Custom ROM on S-ON HTC Sensation

At the moment, I’m doing some weekend project coding in Android and since a Galaxy Tab does not qualify as a phone, I switched gadget. An iPhone for an HTC Sensation with my uncle. One thing I quickly miss is iPhone’s Retina Display, however the performance of the Sensation is sensational compared to my iPhone. Was happy until the battery keeps on dying out too soon. I figured HTC Sense played a big part, so I went hunting to get a Sense-less ROM. ...

July 8, 2012 · Batista Harahap

Android Ice Cream Sandwich on Galaxy Tab 7

After a long break, I thought I wanna write about Android. This time it’s Ice Cream Sandwich on a Galaxy Tab P1000. As always, for smartphone hacks, everyone should first go to XDA-Developers.com and have a look if one of your gadgets has sub-forums. There’s a specific thread for Galaxy Tab 7 First generation and ICS love is there. This blog post is a confirmation that ICS works beautifully and incredibly fast and snappy on a Galaxy Tab P1000. It is as if you are having a multi-core Android device. Have look at [ROM][ICS] AOKP (Android Open Kang Project) for P1000/L/N here. Follow the installation routines and you’re good to go. ...

March 15, 2012 · Batista Harahap

Augmented Reality Browser in 10 minutes with Wikitude API

This blog post is a simple tutorial to demonstrate how easy it is to set up a full fledge Augmented Reality browser with Wikitude API. It will only take 10 minutes of your time in its most simplest form, ready to be customized with your own needs. It should be easy enough to let you innovate on your own. For this to happen, I assume you already have these items ready with your setup: ...

February 19, 2012 · Batista Harahap