Posts Tagged ‘Android’

Date formatting in Android for Twitter

This one kept me up at night. I thought I had the right format string, but my dates never worked write, though the strings were ok. Then I found this at http://svn.liferay.com/browse/plugins/trunk/portlets/twitter-portlet/docroot/WEB-INF/src/com/liferay/twitter/service/impl/FeedLocalServiceImpl.java?r=23183

 SimpleDateFormat sdf = new SimpleDateFormat( “EEE MMM d hh:mm:ss Z yyyy”);  �
Date createDate;
createDate = sdf.parse(<yourTwitterCreatedAtDateStringGoesHere>);

Ways to Implement an OnClick Listener in Android

I hate inline solutions, so I went in search of alternatives to the popular inline onclick listener.

I found the start of what I was looking for in this blog post

http://tseng-blog.nge-web.net/blog/2009/02/14/implementing-listeners-in-your-android-java-application/

I’m going to use a hybrid of inline. While I’ll create an online listener, they will always call a function outside the listener. This way, I ‘ve have the entire scope of the class available.

Project TwitWit

My current project is one for the Android platform called TwitWit. It is a twitter client. Why another one of those you ask? Well, for the most part, it is a good pilot project to get accustomed the Android OS. Consider it a stepping stone for bigger and better. I’ll post screen shot soon. I’ll leave this post open for comments, so if anyone has a “gotta have” feature that no one else has, please post!

November 2018
M T W T F S S
« Feb    
 1234
567891011
12131415161718
19202122232425
2627282930