Skip to main content

Posts

Showing posts from March, 2013

Actionbar Sherlock for Actionbar Menu

While implementing menu bar for my app, I realized that instead of using an Options menu(which appears at the bottom of the screen after pressing the menu button) I should be using an Action bar to access options and actions. The main reason behind this was Android's decision to deprecate the "Menu" button as some newer devices don't have it. I didn't wanted my app to be confined to certain devices due to this. I came across ActionBar Sherlock and decided to give it a try. I downloaded the zip from http://actionbarsherlock.com/ . The next step was to add it to my project in eclipse. Here are the steps I followed: i) Create a new android project. Browse to the library folder and hit ok. ii) Right click on the existing project(or create a new project if you don't have one) and go to       properties. iii) Click on Android. iv) Click on Add in the Library section and add the library project from step (i). However, when I cleaned and build my projec...

How to change the icon for your application in Eclipse

I created a new android project in eclipse, but didn't change the default icon at the time. Later on I realized I wanted to use Eejot's icon instead of the default. This is how you can do it in eclipse: 1) Open the AndroidManifest.xml file.  2) Click on the "Application" tab at the bottom of the editor.  3) In the text box labeled "Icon" click the "Browse" button at the end. 4) This will bring up a "Resource Chooser" window. Click on "Create New Icon" button. 5) This opens a "Create Asset Set" window.  Enter a new icon name. Hit Next. 6) Click the "image" tab. Hit "browse" and navigate to the image you want to use. 7) If you would like to choose a background color, do so at this time. 8) Hit "Finish" once done. 

Designing an app for Eejot

"There is an app for it" is a very common phrase nowadays. With that in mind, I decided to make a simple app for a non-profit organization, Eejot, which works towards helping students in the remote areas of Nepal with education. Before I began getting my hands dirty with the code, I created a mock-up of the design using Balsamiq. Here is what I envision it would look like: