Android Dev: Design is it that hard?

{lang: ‘en-GB’}I think we can all agree that the Google Play Store has a lot of apps which are ugly. Whether they are indie developers or huge corporations (looking at you Netflix, and many more). So my question is .. How is this still happening? I am not artistic, I seriously sucked at graphics and [...]

Switching To IntelliJ: Adding a Library Project

{lang: ‘en-GB’}This was something that caused me a headache … First of all, take a look at this page to get the correct terminology for IntelliJ. We need to add a module dependency, but first we need to create a module… For this example I will use the excellent ActionBarSherlock library. 1. Have your application [...]

Switching To IntelliJ: Installation and Setup

{lang: ‘en-GB’}I recently decided to switch to IntelliJ from Eclipse, as Eclipse was behaving like a petulant child and causing me so many issues. I have decided to make a few guides, as I had a few problems setting it up. So here is the first where I will attempt to detail how to download, [...]

Android Dev: ActionBarSherlock + Tabs + ViewPager

{lang: ‘en-GB’}My previous post gives a sample project that enables ActionBar Tab navigation and ViewPager enabling users to swipe to change tabs. Unfortunately using the same code with the Action Bar Sherlock library caused me some very strange problems. The first view would not swipe out, and then clicking the tab would overlay the new [...]

Android Dev: ActionBar Tabs + Swiping

{lang: ‘en-GB’}So I have spent my evening trying to use ViewPager + ActionBar + Tabs. I didn’t manage to find a complete example. I have just made a test project that demonstrates this wonderful Android design: In this project I have: * 1 main FragmentActivity (using support library) * 2 fragment classes (using support library) [...]

Android Dev: Action Bar Sherlock

{lang: ‘en-GB’}Action Bar Sherlock is a fantastic development by Jake Wharton. It is designed to build on the Android Compatibility Library (that makes Fragments available back to 1.6) and enables the Action Bar. Here’s how I implemented it (there may be better ways): 1. Download the library from here 2. Unzip the file 3. Create [...]

Android Dev: Adding Google Analytics Tracking

{lang: ‘en-GB’}First post in quite a while. Quick one, you can use Google Analytics to track use of your application. Here’s the quickest way using the EasyTracker. First download the Add this to your projects libs folder and add to the build path (right click, add to build path). Now you need to create an [...]

Android Dev: Simple Text to Speech

{lang: ‘en-GB’} Here is a quick example, with sample Eclipse project, of how to simply use the inbuilt Text to Speech (TTS) in Android. There are a few steps that I have tried to explain briefly in comments, including checking that the TTS service is installed (it is on most phones), setting the locale (language), [...]

Android Dev: Custom button with no PNG’s

{lang: ‘en-GB’} There is no denying that PNG’s (and .9.png’s) are the way to go if you are graphically talented. I am not! I prefer using xml to define drawable shapes / gradient / and strokes. For a while I have been merely replacing the background of my buttons with an xml shape. It works, [...]

Android Dev: Simple Notification

{lang: ‘en-GB’} OK, here’s a very simple implementation of a notification. NotificationManager notifier; Notification notification; static final int APP_ID = 0223; //v2 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.animation); notifier = (NotificationManager)main.this. getSystemService(Context.NOTIFICATION_SERVICE); int icon = R.drawable.ic_stat_notificationicon; notification = new Notification(icon,"Your app name",System.currentTimeMillis()); Intent toLaunch = new Intent(main.this,main.class); PendingIntent contentIntent = PendingIntent.getActivity(animation.this, 0, toLaunch, [...]