Monday, August 30, 2010

AppEngine Tricks

So I'm working on quite a few Google AppEngine apps and recently, I need to delete all the data in the datastore. I've searched around the interwebs and most of the solution is by using the remote api that uses python. But I don't want to mess around with python so what I did is modify the request parameters from the Datastore viewer so that it displays 200 records at one time which then you can delete using the Delete button below.

Here's the sample URL:

https://appengine.google.com/datastore/explorer?app_id=YOURAPPID&namespace=&kind=Item&limit=200&offset=0&query=SELECT%20*%20FROM%20Item&viewby=kind

Friday, August 27, 2010

Life Stories for iPhone

I just started playing around with Objective-C for the Life Stories version in iOS 4.Then as usual, for newbies, I encountered a problem when displaying adView.

Basically the problem is that when your view changed, like you hit the back button or change to another view, while your adview is still loading, the call to - (void)bannerViewDidLoadAd:(ADBannerView *)banner and - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error which ever is called will fail. Searching around the net, I found this StackOverFlow question and the solution helped me to fix my problem.

http://stackoverflow.com/questions/3359714/wierd-iad-error-causing-crash

So the solution is just to just remove the delegate of the adView and null its reference on the - (void)dealloc method.

adView.delegate = nil;
adView = nil;

Tuesday, August 24, 2010

SeekBar Preference

I just would like to share the code that I've posted in the Google Devs mailing list when someone asked about the SeekBar Preference.
public class SeekBarPreference extends DialogPreference{

private Context context;
private SeekBar volumeLevel;

public SeekBarPreference(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = context;
}

protected void onPrepareDialogBuilder(Builder builder) {

LinearLayout layout = new LinearLayout(context);
layout.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));
layout.setMinimumWidth(400);
layout.setPadding(20, 20, 20, 20);

volumeLevel = new SeekBar(context);
volumeLevel.setMax(32);
volumeLevel.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
volumeLevel.setProgress(Integer.parseInt(getSharedPreferences().getString(getKey(),"32")));

layout.addView(volumeLevel);


builder.setView(layout);

super.onPrepareDialogBuilder(builder);
}

protected void onDialogClosed(boolean positiveResult) {
if(positiveResult){
persistString(volumeLevel.getProgress()+"");
}
}

}


This allows you to popup a seekbar that you can use to adjust some properties like volume, difficulty and other things where a slider would be useful. Then you use it like:


alarmVolume = new SeekBarPreference(this, null);
alarmVolume.setTitle("Volume");
alarmVolume.setSummary("Modify the volume of the alarm");
alarmVolume.setKey(PREF_ALARM_VOLUME);


and then can be added to a PreferenceScreen or PreferenceCategory




Monday, August 23, 2010

Android and OpenCV

From now on, I will try to post some tutorials on using OpenCV and Android. I'm planning to build a camera software that can do basic effects such as softening, increasing contrast, b/w effects, sepia and other stuff just by using opencv functions.

Hope to get some time to write my very first tutorial.

TimingLogger | Android Developers

TimingLogger | Android Developers

This is a very useful utility for timing parts of your code. I think this will be handy specially in my day job where I need to call lots of cpu intensive computations and I need to make sure they are optimized.

I will post a sample code and project later.

Saturday, August 21, 2010

Android Applications, Games and Wallpapers

Android Applications, Games and Wallpapers

Just trying out the Blog This! Chrome extension. Anyway this site contains most of the Android applications available in the Android Market. The site provides two ways to find applications either by category or typing the name or author of the application on the search box.

Give it a try and discover more Android apps.

Saturday, November 7, 2009

Complete List of ADC 2 Top 200 entries

Arcade:

  • 4 Player Reactor (ADC)
  • Atmosphere: Trainer
  • Atomic Blaster
  • Bazooka Rabbit Demo For ADC
  • FRG
  • GangWars
  • Graviturn 1.0
  • Head To Head Racing
  • JumpyBall 3D
  • Light Racer 3D Trial
  • Moto X Mayhem
  • PhotoShoot – The Duel (ADC)
  • ProjectINF ADC
  • Radiant
  • Runes MMORPG – Alpha release
  • Space STG – Galactic Wars
  • Speed Forge 3D
  • Spheremare
  • Stroids – ADC2
  • Subzero Challenge

Casual

  • Blink
  • Blockx 3D Pro (ADC2)
  • Comeks Microphone Hero
  • Decades
  • Flick It!
  • Jelix
  • KUMPA
  • Lucid ADC2
  • Mazeness
  • mPuzzle
  • N. American Conquest (ADC)
  • Nintaii
  • Pobs
  • Pocoro
  • Seek ’n Spell
  • Sketch Online
  • Sudoku Camera
  • Totemo
  • UrbanGolf light
  • What the Doodle!? (ADC2)

Education

  • Botanica
  • Celeste
  • Complete Memorization
  • Detexify: LaTeX Recognizer
  • EarthTime
  • Flash of Genius: SAT Vocab
  • Flu Tracker
  • FUN2Learn
  • Kanji with Picture
  • Learn!
  • Manchego!
  • mobilematics
  • mobiProfessor
  • MultiLex English Explanatory
  • Plink Art
  • Robotic Guitarist (ADC2)
  • Trippo
  • Voicetrans (ADC)
  • Word Puzzle
  • Zenith

Entertainment

  • A World Of Photo
  • A.D.A.M
  • Daisy Garden
  • DroidSpray
  • Entertain Me
  • Fun Buzz Widget
  • g-tar
  • Golfuls
  • iLomo
  • JAM session
  • midNite movie
  • Nebudroid
  • SFR Postcard
  • SingSong
  • Solo – ADC2
  • SongDNA
  • Sonorox (ADC2)
  • Taps Of Fire
  • Who’s Calling
  • Yuilop

Lifestyle

  • AirPainter
  • Album Art Grabber for ADC2
  • AMon (adc2 version)
  • aShadow Finder
  • Digital Recipe Sidekick
  • DJ’it
  • FoxyRing ADC2
  • FriendBook
  • Gigbox
  • InTrouble
  • Mom’s shopping list
  • Mover
  • NetDroid
  • Rhythmatics™ Alpha
  • Smart Alarm Clock
  • SpecTrek
  • SweetDreams
  • Todoroo
  • Web Clip Widget
  • Xeeku Photo Journal

Misc

  • aLock
  • Andrometer 1.0
  • AndShowtime
  • Animal Compass
  • AnyWidget
  • Calton Hill GPSCaddy
  • Decaf: EC2 on your Android
  • Dialify
  • Executive Assistant
  • FlyScreen
  • KAN-BAN WORLD
  • medAssist.me
  • Missing Children ADC
  • Office Exercise
  • Open Gesture
  • Personal Finance
  • Rhythm Guitar
  • Scribtor
  • TapDialer
  • WebWidget

Multimedia

  • aPortaDrum
  • Buzz Deck beta
  • ChordBot
  • Citizenside
  • FxCamera (for ADC2)
  • Grooveshark Mobile
  • How-To Videos from Howcast.com
  • Mediafly Mobile ADC Edition
  • MicroJam
  • Mowsic Midi-Over-Wireless
  • musikCube
  • Photo BURST ADC2
  • PocketDJ
  • PrivateMedia
  • SPB TV for ADC
  • Spectral Audio Analyzer ADC2
  • Tesla – PC Remote Control
  • Time-Lapse Trial
  • TuneMagic
  • Uloops

Productivity

  • Alex Digital Secretary
  • AppManager (ADC2-edition)
  • Apps Organizer Adc
  • CubeWorks
  • Drocap
  • Eclosion
  • Event Flow
  • FlingTap Done
  • Fusion WebServer – Phone2Web
  • Handcent Messaging
  • Handy Poll ADC
  • Hoccer ADC2
  • Mobisle Notes
  • NewsRoom
  • Screebl
  • Tasker
  • taskTopia
  • Thinking-Space
  • Tracklet
  • WaveSecure

Social

  • A-GLOBAL-MIND
  • Agile Messenger IM
  • Appshare
  • Bambuser ADC2
  • Books-EX
  • Cartoon Gang
  • Ce:real – Everyday trends
  • ClapCard
  • Friend or Foe
  • GeoNotes
  • Locale Ping.fm Plug-In
  • MeetByChance.me
  • Phonebook Sharing
  • Scribble
  • SocialMuse
  • SpotMessage for ADC2
  • Swift Twitter App (ADC2)
  • TextEZFast
  • TweetAssist
  • Xeeku Twitter

Travel

  • Always Prompt
  • AnyStop: The Transit Companion
  • BabelSnap! (Trial)
  • Car Locator
  • Drive – AR Navigation System
  • Food Canary in a Restaurant
  • GPS Toolbox ADC2
  • HotelsByMe: Hotel Reservations
  • iNap: Arrival Alert (ADC2)
  • LawLocale
  • Maverick
  • MoVue
  • MyPosition
  • PhoneHotel
  • PhotSpot(ADC2ver)
  • PickYouUp
  • Sign Translation
  • Sports Trek
  • TopoDroid
  • Trip Journal

Friday, November 6, 2009

Handy Poll made it into ADC 2 Top 200


Yesterday, while browsing through the android mailing list, I found out that Google has already released the result of the first round of Android Developer Challenge 2. Then I immediately checked my inbox for any email........ argh, no new mail!!!!. Then I checked my Spam folder, and boom! There's an email coming from ADC 2 Support saying that my app Handy Poll ADC2 made it into the Top 20 under the Productivity category. Here's the actual email I got from G:

"Congratulations! Your application 'Handy Poll ADC' was selected by Android users as one of the top 20 in the Productivity category! We're excited that you chose to participate in the ADC 2 and wish you luck in the final round as your application is evaluated by users and a panel of judges."

Damn, I can't describe my feelings during the first few seconds after reading the email.

Now, I want to have an idea of what kind of applications that I will be competing with under the Productivity/Tools category. So here they are:

  1. Alex Digital Secretary
  2. AppManager (ADC2-edition)
  3. Apps Organizer Adc
  4. CubeWorks
  5. Drocap
  6. Eclosion
  7. Event Flow
  8. FlingTap Done
  9. Fusion WebServer - Phone2Web
  10. Handcent Messaging
  11. Handy Poll ADC
  12. Hoccer ADC2
  13. Mobisle Notes
  14. NewsRoom
  15. Screebl
  16. Tasker
  17. taskTopia
  18. Thinking-Space
  19. Tracklet
  20. WaveSecure
It looks like I'll be competing mostly with company-backed applications like WaveSecure and Handcent.

So, wish me luck :)

Wednesday, June 24, 2009

Certification

Yey, I just received my certification kit today.

Tuesday, June 2, 2009

Trying out different ROMs

Despite several attempts of reinstalling / applying optimization patch to the Rosie ROM, it is still so slow and unusable so I decided to give the Rogers ROM a try. By the way Rogers ROM is the one included in the HTC Dream and HTC Magic phones that's going to be released in Canada.

Basically this ROM is pretty much the same with Google Ion. They're both damn pretty fast except this ROM supports Exchange and has some nice goodies (PDF Viewer and Quick Office). I think I will be staying with this ROM for now.





Tuesday, May 26, 2009

FML Widget updates

I just released an update for the FML widget:

Version 1.3
- new icon (yes, finally I was able to create a shiny button, whew!)
- changed widget size to 2x2
- enhanced UI thanks to Jenny for the colors :)
- widget now displays the whole FML
- fixed other issues

The shiny, apple-inspired icon!





















The widget now occupies 2x2 space in your desktop and displays the full FML though I need to make the font size smaller.

















I also changed the color schemes and I think it's more readable now than using white on black background. Thanks to my girlfriend for helping me decide on colors :)







































Still available in the market for FREE. Enjoy!

Sunday, May 10, 2009

FML Widget

Today, I released my first widget for Android called FML Widget. It displays the latest entries from FMyLife and allows you to share it via SMS or email. You can also view other people's comments on the FML entry. The widget updates every hour to minimize battery consumption. It is now available in the market so go and try it out. By the way, it's FREE.




Screens:














Don't forget to buy me a beer if you like this widget! Donate

Monday, April 27, 2009

Cupcake on my Android phone

Hear ye! Just an hour ago Google and HTC released the Android 1.5 system image and Android 1.5r1 SDK for ADP phones and as a proud owner of an ADP phone, of course I immediately downloaded it and flashed my phone. It's already past 3 AM and I'm still awake playing around with the new system image. All of my apps that were written for 1.1 worked perfectly without any modifications. Without further ado, here's cupcake for you. Feast your eyes...



















and here's my clickr app...




SmugMug client....







and my latest app...FOREX gump

Thursday, June 26, 2008

My Arduino has arrived!

After waiting for almost a month, my Arduino Diecimila finally arrived.




Let there be light!



The Hello World for hardware. The orange light simply blinks every 1000ms.

The arduino IDE