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
Hala Sige Pindot!
code snippets, ideas or anything about java and mobile apps
Monday, August 30, 2010
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;
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.
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:
and then can be added to a PreferenceScreen or PreferenceCategory
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
Subscribe to:
Posts (Atom)