We moved

November 13, 2009 Oleg Mazurashu Leave a comment

We moved. The Developer’s Info bought own domain.
I invite all to visit new site
http://thedevelopersinfo.com


I will not update http://thedevelopersinfo.wordpress.com/
Thanks a lot for your attention.

Categories: other

Using SubActivities in Android

November 11, 2009 Oleg Mazurashu Leave a comment

We moved. Please visit this link for this post.

Sometimes you need to run some Activity, do some operation there and return some value to parent Activity. For this situation Android has possibility to run Activity for result. Read more…

Categories: Android, Android how to

Viewing logs and exceptions in Android

November 9, 2009 Oleg Mazurashu Leave a comment

We moved. Please visit this link for this post.

 

 

 

I found that there is no logcat console in android plugins for NetBeans and IDEA 8.

But when you develop application you need to see exceptions or see simple log.

I am going to show how easy is to see all these things in system console.

At first you should have installed Android SDK.

At second type in your console:

adb logcat

Note: emulator instance should be working.

Categories: Android, Android how to, Tools

IntelliJ IDEA 9 Beta is released

November 6, 2009 Oleg Mazurashu Leave a comment

We moved. Please visit this link for this post.

 

 

 

Good news for all who use IDEA. JetBrains announced that anybody can download and try their IDEA 9 Beta.

Some new features:

  • Faster Environment
  • Improved Code Understanding
  • Cleaner, More Productive Coding
  • More Efficient User Interface
  • More Flexible Project Structure
  • Preliminary Java 7 Features Support
  • Java EE 6 Support
  • Improved Groovy support
  • Extended Polyglot Arsenal
  • New Web Frameworks Support
  • OSGi Application Development
  • Enhanced Maven Support
  • Android Development
  • Better JavaScript and HTML
  • Flex Development
  • Context Management
  • UML Support
  • Version Control Integration

Using Context Menus in Android

November 6, 2009 Oleg Mazurashu 2 comments

We moved. Please visit this link for this post.

 

 

 

Context menu in Android is similar to context menu in any others OS.

In Microsoft Windows or in any Linux distr you click right mouse key and see context menu. The same is in Android, but you press and hold your view which has context menu. Read more…

Categories: Android, Android how to, Menu

Adding alphabetic shortcut to the menu item in Android

November 6, 2009 Oleg Mazurashu Leave a comment

We moved. Please visit this link for this post.

 

 

 

There is a way to add shortcut to your menu item.

I am going to show how it can be done.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
	menu.add(0, NEW_MENU_ITEM, 0, "New").setAlphabeticShortcut('N');
...
	return super.onCreateOptionsMenu(menu);
}

As you see it is very easy.
How you can test it? Run your code with this snippet, click Menu button and after click “N”.

Categories: Android, Android how to, Menu

Adding icon to the menu item in Android

November 4, 2009 Oleg Mazurashu Leave a comment

We moved. Please visit this link for this post.

 

 

 

There is a good practice to add icons to the menu items.

I am going to show code snippet which add icon to the menu item:

@Override
public boolean onCreateOptionsMenu(Menu menu) {
   menu.add(0, ADD_MENU_ITEM, 0, "Add").setIcon(android.R.drawable.ic_menu_add);
   return super.onCreateOptionsMenu(menu);
}

This code adds icon add to the menu item ADD_MENU_ITEM.

As you see this is simple operation.

Categories: Android, Android how to, Menu

Getting formatted string from strings.xml in Android

November 4, 2009 Oleg Mazurashu 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.

Categories: Android, Android how to

Working with Submenu in Android Activity

November 4, 2009 Oleg Mazurashu 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 Oleg Mazurashu 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