Tag Archive for Android tutorial

Tricks to increase your income III (Admob)

In the previous article (Tricks to increase your income II)  of Android developer tutorial we saw how to increase your application downloads with Seo technologies. In the next article we will explain another trick to continue increasing the income of your applications.

In this post I will explain two basic tricks to increase the ”fill rate”. Fill rate refers to the number of ads displayed versus the number of ads requested by the application. If the fill rate increases the income will increase. with this two that I will explain I increase my fill rate from 40% to 100% as you can see in the next image.

The first thing that you must do to increase the fill rate from 40% to 98% is to activate the use of google ads to all our applications. For do that you must log in to your admob account an go to the option manage settings from our application  after that click to app settings tab and we will see the next:

 

we must select the option “Use Google ads and Google certified ad networks to improve fill rate. I have read and agree to the Google AdSense Terms and Conditions” as we can see in the image below, with this step we are giving permission to admob to use google ads, so when admob didn’t have ads admob will use google ads.

The Second step to increase our fill rate to 100% is to create self application campaigns the only requirement to do this is to have more than one application. To do that we must to go to our admob account and click on “House Ads” under the tab “Sites & app”. After that we click to create new house ad. And then we must configure the number of ads to publish and the date period to publish.  Don’t care about extra costs that service is totally free.

I hope that all this information will help to all of you to increase you fill rate to 100% and in consequence your benefits. If someone know more techniques to increase the benefits no doubt to write to me and I will add to my android tutorial.

Thank you for visit me… and remember if you like my blog and my posts please do a comment and return again it will motivate me to write more. In the next page you can find the list of all my post of the android tutorial

Tricks to increase your income II (SEO)

In the previous article (Tricks to increase your income)  of Android developer tutorial we saw how to increase your application downloads with an easy and sepeddy trick. In the next article we will explain another trick to continue increasing the downloads of your applications.

In this post I will explain basic techniques of SEO (Search engine optimization). I will explain that because android market is like a Search engine, So if android market is search engine we must apply the techniques that must use to search engines so we will use SEO.

So that means that the title that we will have on our applicatian will be very  important. We must have a title that the people will search and have this title adapted for each language that we have as description in android market. How will we know wich words the people search?¿?¿ With a web search based tool (Google keyword tool, market samurai, …). I use market samurai, but samurai is a payed tool and Google keyword tool is free and is a good tool and enough to use it for android market.

We will explain an example about how to select the title, As example we have an application that is a memory game. A got name will be “match game” and not as example “memory match card game” we decide this doing the next.

Searches of memory match card game:

Searches of match game:

 

Contrasting this Information I can say that “match game” will be a better name to an application. The two names have a low competency but match game have 1,5 Million searches pro month and “memory match card game” have only 46 searches pro month. So if I change the name from memory match card game to match game my application will be more searched and as resuld will more downloaded, and if the application is more downloaded the incomes will inrease.

I hope that all this information will help to all of you to increase your benefits. If someone know more techniques to increase the benefits no doubt to write to me and I will add to my android tutorial.

Thank you for visit me… and remember if you like my blog and my posts please do a comment and return again it will motivate me to write more. In the next page you can find the list of all my post of the andorid tutorial

Tricks to increase your income (android market)

Hello again in the next posts from andoid tutorial I will explain how increase the benefits.

So important is it to program an application as promoting it and know to know to fully exploit the possibilities of making money with it so in the following posts I will explain my knowledge in promoting and exploiting an application.

Is more than a year ago I’m doing android applications and I learned a few tricks to increase my profits. There aren’t great tips and many of you already know what I’m going to comment, but for those who do not know I hope it will help you.

So in the next articles I will explain some of these tricks and as for my experience goes knowing new tricks and techniques to improve the economic performance of the applications I will be explaining.

In this post I will explain the first trick I will discuss is going to increase the number of downloads of your application, if the number of downloads increases the benefits will increase as logical.

This increase in downloads can be done quickly and easily, all you have to do is use the auto translation utility available to the android market. With this tool we will make the description of our application in android market is in several languages, so that our application will help get more downloads. Beware that in no time I said to translate our application. Try this and will see increases the number of downloads of its application.

With the bottom photo I will explain how to do this:

1.- Click to add Language

2.- Select all the languages that you want to add.

3.- Select to autotranslate. The tool will take the text that you have in english and translate to the languages selected in the step 2, it’s not a perfect description but will help to the people to read a description in his own lenguage.

4.- Click to accept button.

the result will look something like that:

I hope that all this information will help to all of you to increase your benefits. If someone know more techniques to increase the benefits no doubt to write to me and I will add to my android tutorial.

Thank you for visit me… and remember if you like my blog and my posts please do a comment and return again it will motivate me to write more. In the next page you can find the list of all my post of the andorid tutorial

Basic Controls (III)

In the previous article (Basic Controls II)  of Android developer tutorial we saw different types of image and text controls. In the next article we will do a review of the various controls available for android to select information.

In this post we will focus on the next user interface controls:

  •  CheckBox
  •  RadioButton

Control CheckBox

A checkbox control is often used to check or uncheck options in an application and Android is represented by the class of the same name, CheckBox. The way to define it in our interface and methods available to manipulate from our code are similar to those already mentioned for the ToggleButton control.

Thus, to define a control of this type in our layout we can use the following code, which defines a checkbox with the text “Mark me”:

< ImageView android:id= "@+id/ChkExample"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:text="Mark me"/>

As for the customization of the control we can say that it extends [indirectly] TextView control, so all the formatting options already discussed in previous articles are also valid for this control.

In the application code we can use the methods isChecked () for the control state and setChecked ( state ) to establish a state to control.

if (checkBox.isChecked()){
   checkBox.setChecked(false);
}

As for the possible events that can throw this control, the most interesting is undoubtedly the reporting that has changed the status of control, which is called OnCheckedChanged. To implement the actions of this event could therefore use the following logic:

final CheckBox cb = (CheckBox)findViewById(R.id.chkExample);
cb.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener(
{
   public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
   {  if(isChecked)
      {
          cb.setText("Checkbox marcked!");
      }else{
          cb.setText("Checkbox unmarcked!");
      }
   }
});

For more information you can visite the next page.

 

Control RadioButton

As controls checkbox, a radiobutton can be marked or unmarked, but in this case are often used within a group of options to one, and only one of them must be marked mandatory, meaning that if you mark one of they will automatically be unchecked which was inactive. Android, a radiobutton group is defined by RadioGroup element, which in turn contains all elements necessary RadioButton. An example of how to define a group of two radiobutton in our interface:

 

 < RadioGroup android:id="@+id/gruporb"
           android:orientation="vertical"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content">
      < RadioButton android:id= "@+id/ChkExample1"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="button A"/>
      < RadioButton android:id= "@+id/ChkExample2"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:text="button B"/>
 </RadioGroup >

 

First, here’s how we define the control group indicating their orientation (vertical or horizontal) as was the case for example with a LinearLayout. After that, add all objects needed RadioButton ID indicating your property by android: id and text using android: text.

Having defined the interface we can manipulate the control from our java code using different control methods RadioGroup, the most important: check (id) to make a choice determined by its ID, clearCheck () to deselect all options ygetCheckedRadioButtonId () which as its name suggests returns the ID of the highlighted option (or the value -1 if no checked). Here’s an example:

     final RadioGroup rg = (RadioGroup)findViewById(R.id.gruporb);
     rg.clearCheck();
     rg.check(R.id.radio1);
     int idSeleccionado = rg.getCheckedRadioButtonId();

 

As for the events sent, as in the case of checkboxes, the more important the reporting of changes in the selected element, also called in this case onCheckedChange. We see how to handle this event RadioGroup object:

     final RadioGroup rg = (RadioGroup)findViewById(R.id.gruporb);

rg.setOnCheckedChangeListener(

    new RadioGroup.OnCheckedChangeListener() {

        public void onCheckedChanged(RadioGroup group, int checkedId) {

            lblMensaje.setText("ID opcion seleccionada: " + checkedid);

        } 
    }
)

For more information you can visite the next page.

Basic Controls (II)

In the previous article (Buttons)  of Android developer tutorial we saw different types of buttons available. In the next articles on Android we will do a review of the various controls available for android, Images, labels and for last text boxes.

In this post we will focus on the next user interface controls:

  •  ImageView
  •  TextView
  •  EditText
  •  ScrollView

ImageView control

ImageView control is capable of displaying the application. The most interesting property is android: src, which lets you specify the image to display. Again, the normal will indicate how the image source of a resource identifier of our portfolio /res/drawable for example android: src = “@drawable/imageexample”. In addition to this property, there are some other useful sometimes those designed to set the maximum size that can take the picture, android:maxWidth and android:maxHeight.

< ImageView android:id= "@+id/ImgPhoto"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:src="@drawable/icon"/>

 

In the application logic, we could establish the image by setImageResorce (…), passing the ID of the resource to use as the content of the image.

ImageView img= (ImageView)findViewById(R.id.ImgFoto);
   img.setImageResource(R.drawable.icon);

 

For more information you can visite the next page.

TextView control

The TextView control is another classic in programming GUIs, text labels, and is used to display a given text to the user. As in the case of buttons, the control’s text property is set using the android: text. A part of this property, the nature of control makes the most interesting are those that establish the format of the displayed text, which as in the case of the buttons are as follows: android: background (background color), android: textColor (text color), android: textsize (font size) android: typeface (text style: bold, italic, …).

< TextView android:id= "@+id/Label1"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:text="text label"
   android:background="#AA44FF"
   android:typeface="monospace"/>

 

Similarly, we can manipulate these properties from our code. For example, in the following example recover the text of a label with getText (), and then you concatenate a few numbers, update your content via setText () and change its background color with setBackgroundColor ().

< TextView  label1= (TextView)findViewById(R.id.Label1);
   String text1 = label1.getText().toString();
   texto +=  "este es el texto"
   android:text="text label"
   label1.setText(text1);

 

For more information you can visite the next page.

EditText control

EditText control is the text editing component that provides the Android platform. It allows text input and editing by the user, so that design-time most interesting property also establish their position, size and format, the text to display, attribute android: text.

< EditTextandroid:id= "@+id/TxtText"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:layout_below="@id/Label1"/>

Similarly, from our code can retrieve and set the text using the methods getText() and setText(Text to set), respectively:

 EditText txtText = (EditText)findViewById(R.id.txtText);
      String text1 = txtText.getText().toString();
      txtText.setText("Text to set");

For more information you can visite the next page.

ScrollView control

Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. A ScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects. A child that is often used is a LinearLayout in a vertical orientation, presenting a vertical array of top-level items that the user can scroll through.

The TextView class also takes care of its own scrolling, so does not require a ScrollView, but using the two together is possible to achieve the effect of a text view within a larger container.

ScrollView only supports vertical scrolling.

<?xml version="1.0" encoding="utf-8"?>
     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    
          android:orientation="vertical"    
          android:layout_width="fill_parent"    
          android:layout_height="fill_parent">

         <ScrollView  android:id="@+id/SCROLLER_ID"    
              android:layout_width="fill_parent"    
              android:layout_height="wrap_content"    
              android:scrollbars="vertical"    
              android:fillViewport="true">

              <TextView android:id="@+id/TEXT_STATUS_ID"        
                  android:layout_width="fill_parent"        
                  android:layout_height="fill_parent"        
                  android:layout_weight="1.0"/>    
          </ScrollView>
</LinearLayout>

For more information you can visite the next page.

 

Seo Packages