Posts

Showing posts from May, 2014

Pager Tabs with Icon and text which appears to have fixed width.

Image
We are going to create pager tabs, which unlike default library will be able to show more than 3 tabs in a screen. All the tabs will close to each other.   To achieve this purpose we shall need a library located at http://viewpagerindicator.com/ . Download the library project, named as JakeWharton-Android-ViewPagerIndicator-2.4.1-0-g8cd549f.zip. It includes a library and sample project. We need library for our app. If you are curious, you may check the sample project as well. Import the library project in eclipse.   Create a new Android project and open its properties. Add library project in this project using Android section in properties. Clean library and android project. Add the following in your activity_layout.xml. <com.viewpagerindicator.TabPageIndicator                 android:id="@+id/indicator"              ...

Downloading image blob from Google's App Engine

Last time we have seen how to upload an image to app engine. Now its time to fetch it back. There are 2 ways to do that. 1. Using serve() 2. Using urls generate for each blob. I tried using 1st method, but it did not work. So tried out second method which did work. Following are the details of that implementation. First get the url for download for each blob. To do that you need blob key of your blobs. In my case I have saved blob keys in a separate database entity. Blob key is returned when you create new blob. String[] array = getBlobKeyByProblemId(problemId); if (array != null && array.length > 0) { String[] urls = new String[array.length]; for (int i = 0; array != null && i < array.length; i++) { ImagesService imagesService = ImagesServiceFactory.getImagesService(); BlobKey key = new BlobKey(array[i]); ServingUrlOptions options = ServingUrlOptions.Builder.withBlobKey(key).secureUrl(true); urls[i] = im...

Tips for how to improve ranking of your app in app store.

Tips for how to improve ranking of your app in app store. http://katemats.com/20-things-every-ios-and-mobile-dev-should-consider-in-their-app-promotion-strategy/