Bookmarks Live Folder
Want a "live folder" for bookmarks on your android home screen?
http://market.android.com/search?q=pname:com.googlecode.livebookmarks
Labels: Android
Labels: Android
Labels: Android, foursquare
How to get push notifications on Android. As we all are aware its possible to run apps in the background in Android. The way push notifications work for the google apps like gmail and gtalk are by way of TCP connections with long TTLs. This allows the phone to wake up intermittently as the gsm radio will do (on the measure of microseconds) to see if new data has arrived on the wire. This implementation though, requires its own backend and for each service doing it, we'd be draining the battery even further... Other work on Android Push:
Labels: Android, foursquare
I'm looking for help on foursquared. I can start fleshing out some starter bugs and features so that anyone interested can just jump right in and code. I've been hating git since I started using it and may end up migrating the SCM to HG on Google Code... I just feel more comfortable with both tools... Still not sure. If I have any external contributors it will really force my hand as I don't want to have to deal with emailed diffs and patches. I'm not asking for testers because at the pace I'm going, the problems and features I'm trying to implement take up my allocated time plus a bit more. Increasing the water hose of bug reports and feature requests would just drown me. On the other hand, I did put together some crash reporting infrastructure while I was on the airplane so that when I do release, I can get automated bug reports: http://joelapenna.com/blog/labels/dumpcatcher (the code is at http://dumpcatcher.googlecode.com) Right now I'm working on some troubling network connectivity issues (after some period of usage, all HTTP requests start hanging). After I resolve these issues I will be readed for limited testing... I'm content to release non-feature-complete if only to get some people looking at the app who might be developers. I'm thinking that feature-wise the release will include the five screens I've sent before: http://joelapenna.com/foursquared/
Labels: Android, foursquare
Cupcake introduced "Live Folders" to the android world and since then I've wondered why the phone does not come with a LiveFolder implementation for bookmarks by default. In an effort to try and get code into core-android I set out to write it, but I've been struggling with all sorts of issues.
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
Cursor c = getContext().getContentResolver().query(Browser.BOOKMARKS_URI,
Browser.HISTORY_PROJECTION, "bookmark = 1", null, null);
String[] liveFolderColumnNames = {
LiveFolders._ID, LiveFolders.NAME, LiveFolders.ICON_PACKAGE,
LiveFolders.ICON_RESOURCE,
};
MatrixCursor mc = new MatrixCursor(liveFolderColumnNames, c.getCount());
int columnCount = c.getColumnNames().length;
while (c.moveToNext()) {
Object[] row = {
c.getString(Browser.HISTORY_PROJECTION_ID_INDEX),
c.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX),
getContext().getPackageName(), R.drawable.ic_launcher_shortcut_browser_bookmark
};
mc.addRow(row);
}
return mc;
}
Labels: Android
Alright, about halfway through my flight and I now have an Uncaught exception handler that will post messages to dumpcatcher. It doesn't work with android at the momement... There is a thread I know I have to read on android-developers. I think I starred it because I knew I'd find it uuseful. The first user of this class was going to be Foursquared, but it turns out the code I wrote doesn't work. I quickly added the ability to create a client id attached to each crash in order to allow me track each individual client and in the process refactored a bit of the code here and there. I'll have to remeber to update the design doc as I have made some changes to the design after noticing flaws in my original work.
Labels: Android, dumpcatcher, Java
I'm on my way back from Cambodia... More on that later... After spending about two-three hours working on hmac signing with Java I now have a working Dumpcatcher client for Java, this is similar to the python client
clients/python/logging/handler.py:Dumpcatcherin that its usage is:
Dumpcatcher dc = new Dumpcatcher(PRODUCT_KEY, SECRET, "http://localhost:8080/add", 2);
HttpResponse response = dc.sendCrash(
new NameValuePair("short", "Some short dump"),
new NameValuePair("long", "some long dump")
)
assertNotNull(response);
assertEquals(200, response.getStatusLine().getStatusCode());
Have a look: http://code.google.com/p/dumpcatcher/source/browse/clients/java/src/com/googlecode/dumpcatcher/logging/Dumpcatcher.java?r=20090629r0
Now onto making a logging client for this guy.Labels: dumpcatcher, Java