Getting formatted string from strings.xml in Android

November 4, 2009 Leave a comment

We moved. Please visit this link for this post.

 

 

 

I found way to get formatted string from strings.xml.

I am going to show how I did it. Please refer to getString method.

strings.xml

<string name="text">My name is %s. I work at FaYna Soft Labs %d months.</string>

Activity

getResources().getString(R.string.text, "Oleg Mazurashu", 7)

Example:

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Activity which shows how to use formatted string from strings.xml
 *
 * @author FaYna Soft Labs
 */
public class Main extends Activity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      TextView tv = (TextView) findViewById(R.id.textId);
      tv.setText(getResources().getString(R.string.text, "Oleg Mazurashu", 7));
  }
}

I like this approach.

Advertisements
Categories: Android, Android how to

Working with Submenu in Android Activity

November 4, 2009 Leave a comment

We moved. Please visit this link for this post.

 

 

 

Submenu is a another way to group your menu items.

I am going to show how to create, add items and handle items selection. Read more…

Categories: Android, Android how to, Menu

PassGen 1.2.0 is released

November 3, 2009 Leave a comment

We moved. Please visit this link for this post.

 

 

 

FaYna Soft Labs updated PassGen application to version 1.2.0

PassGen – is a powerful and useful password generate tool. It allows to generate any password in very easy way. It has user friendly interface. User should select one from three allowed password templates:

  • Complex – all allowed data in passwords
  • Alpanumeric – digits 0-9 and symbols A-Z and a-z
  • Alpabetical – symbols A-Z and a-z

Also PassGen has several additional functions:

  • Favorite passwords – this place is for user’s favorite passwords. Here user can add and delete passwords
  • Possibility to copy selected passwords to clipboard
  • Possibility to send selected passwords through email (email client required)

Once user can generate 99 passwords with 99 characters.

Application is compatible with Android 1.5 and Android 1.6.

Screenshots.

Price: $0.99

For downloading from Android Market:

code

Categories: Applications

Guess the Word 1.2.0 is released

November 2, 2009 Leave a comment

We moved. Please visit this link for this post.

 

 

 

FaYna Soft Labs updated Guess the Word application to version 1.2.0

Guess the Word – great puzzle game which will make your brain work. Nothing complicated, after installation user has 60 words which need to guess. Game has possibility to add and delete words.

This game will kill your free time.

Main goal of this game is to guess the word from character set.

Game has clear and strong design. Also user friendly menu.

If word is unguessed in system presents help engine which can help with word.

Application is compatible with Android 1.5 and Android 1.6.

Screenshots.

Price: $0.99

For downloading from Android market:

code

Categories: Applications

Operations with Options Menu items group

November 1, 2009 Leave a comment
We moved. Please visit this link for this post.
Sometimes need to group your Options menu items.
Group is very useful when you need to work (remove, disable or hide) with several menu items.
I am going to show example about how to remove, disable/enable and hide/show group of menu items. Read more…
Categories: Android, Android how to, Menu

Easy Converter 1.2.0 is released

October 31, 2009 Leave a comment

We moved. Please visit this link for this post.

 

 

 

FaYna Soft Labs updated Easy Converter application to version 1.2.0.

Easy Converter – is all in one Android converter which allows to convert

  • Temperature
  • Currency
  • Weight
  • Length
  • Area
  • Volume

Easy Converter has user friendly interface and belongs to the type of applications that are easy to use.

Also this tool has possibility to edit existing and add new data.

Present great feature, possibility to copy results to clipboard.

Application is compatible with Android 1.6 (Donut).

Screenshots.

Price: $0.99

If you find a bug or want to request a feature please contact us. We want to make this application better.

For downloading from Android Market:

easyconverter

Categories: Applications

Calendar Details widget 1.2.0 is released

October 31, 2009 Leave a comment

We moved. Please visit this link for this post.

 

 

 

FaYna Soft Labs just updated Calendar Details widget to version 1.2.0.

Calendar Details widget – is a simple widget which shows additional information about current date

CalendarDetails

Now application is compatible with Android 1.6 (Donut).

Price: $0.99

For downloading from Android Market:

qrcode

Categories: Applications