Browsing articles in "api"
Feb 1, 2012
heldervasc

Android Image Resizer – New Open Source Android Developer Tool

What is Android Image Resizer?

Android Image Resizer is a tool to automate android project image files resizing for all screen density supported by your app.

For example a image in res/drawable/xhdpi with 200x200px as a base file will be resized to :

  • res/drawable/hdpi with 150×150 px
  • res/drawable/mdpi with 100×100 px
  • res/drawable/ldpi with 75×75 px

Install Instructions

gem install android_img_resizer

Note: For Mac OSX you need to install rimagick first. Please follow the instructions described in this page rimagick

How To use it

In a Android Project directory (PATH that has a AndroidManifest.xml) please type:

To list all drawable resource imagefiles

android_img_resizer list [xhdpi|hdpi]

To Resize a resource image File

android_img_resizer img <image_file> [xhdpi|hdpi]

To Resize all resource image files

android_img_resizer all [xhdpi|hdpi]

Note: by default Android Image resizer will use xhdpi as base image file.

To use hdpi as base image file please type hdpi in the optional argument

Resize a image example:

cd /home/john/WorkSpace/smssheduler
android_img_resizer img ic_home_log.png
OUTPUT:
Resizing Image = ic_home_log.png with size = 64×64
Image = ic_home_log.png hdpi = 48×48
Image = ic_home_log.png mdpi = 32×32
Image = ic_home_log.png ldpi = 24×24

Resize all images example:

cd /home/john/WorkSpace/smssheduler
android_img_resizer all xhdpi
OUTPUT:
Resizing Image = ic_micro_site.png with size = 64×64
Image = ic_micro_site.png hdpi = 48×48
Image = ic_micro_site.png mdpi = 32×32
Image = ic_micro_site.png ldpi = 24×24
Resizing Image = ic_micro_logo.png with size = 64×64
Image = ic_micro_logo.png hdpi = 48×48
Image = ic_micro_logo.png mdpi = 32×32
Image = ic_micro_logo.png ldpi = 24×24
…..

License and copyright

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

Contributions are welcome ! The project is mainly missing documentation and examples…

Bearstouch Team

Nov 25, 2011
heldervasc

Open Source Android Market Ruby API

What is Android Market Ruby API ??

Android Market API is an open source Android Market Ruby Library created by Bearstouch Software for parsing Android Market information.

Whit this API you can get all information supplied by Android Market and analise top selling apps ,free and paid, for a category or the overall ranking .

Source Code on GitHub

https://github.com/bearstouch/android_market_api

Install Instructions

Install it with RubyGems

1
gem install android_market_api

or add this to your Gemfile if you use Bundler:


1
gem "android_market_api"

Getting started

Parsing an application on Android Market

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require 'rubygems'
require 'android_market_api'

app=AndroidMarketApplication.new('com.bearstouch.smsscheduler')

# Getting Application Name  
puts app.name            

# Getting Application Current Version
puts app.current_version

# Getting Application Price
puts app.price            

# Getting Ratting Value
puts app.ratting_value

# Getting  Nr of Votes
puts app.ratting_count

# Getting  Last Update datetime
puts app.updated  

# Getting  SDK Required
puts app.sdk_required

# Getting  Download category
puts app.downloads

# Getting  Application Size
puts app.size

# Getting  Content Ratting
puts app.contentRating

# Getting  Application description
puts app.description

# Getting Developer Name      
puts app.developer_name

# Getting Icon URL    
puts app.icon

# Getting Screenshot URLs Array
puts app.screenshots

# Getting Last Updates Array
puts app.update_text

Full Documentation

http://rubydoc.info/gems/android_market_api/0.3.2/frames

WIKI

https://github.com/bearstouch/android_market_api/wiki

Contributions are welcome ! The project is mainly missing documentation and examples…

Stay in touch with us for getting updated info about this API.

Enjoy

Bearstouch Software