Mar 13

Coming to Blackberry 10!

Hey, we are in the process of making a Blackberry 10 app based off of this website! It will contain all new posts so download it if you have a Blackberry 10 device! You will be able to keep track of your Android Monetization needs on the go whenever you want.

I will provide the link as soon as it becomes available. Stay tuned!

Jun 20

How to Integrate AppBrain Ads in 10 Minutes

1. Create an AppBrain developer account at https://developers.appbrain.com/info/sdk

2. Download the AppBrain SDK at https://github.com/swisscodemonkeys/appbrain-sdk

3. Right click on your project folder and create a folder called “libs”.

4. Copy the SDK (the .jar file) into the libs folder you just created.

5. Right click on the jar file inside the libs folder and go to Build Path-> Add to Build Path.

6. Add the following lines to your manifest file (AndroidManifest.xml) before the tag:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

7. Then add these lines in between the and tags:

1
2
3
4
5
6
7
8
9
<!-- AppBrain SDK -->
<activity android:configChanges="keyboard|keyboardHidden|orientation" 
    android:name="com.appbrain.AppBrainActivity" />
<service android:name="com.appbrain.AppBrainService" />        
<receiver android:exported="true" android:name="com.appbrain.ReferrerReceiver" >
    <intent-filter>
        <action android:name="com.android.vending.INSTALL_REFERRER" />
    </intent-filter>
</receiver>

8. Copy this line in your onCreate method in your main Activity:

AppBrain.init(this);

9. To only show this offerwall every 3 days when the user presses the back button to exit your app, use this code. If you want to always show it, go to 10 below. Now add this code outside of you onCreate method in your main Activity. If you are still supporting Android 1.6, you will need to add more, but I advise against this because 99% of users have upgraded to at least 2.1 by now.:

1
2
3
4
5
@Override
public void onBackPressed() {
    AppBrain.getAds().maybeShowInterstitial(this);
    finish();
}

10. If you want to always show the app wall, you can do this too. This is useful if you have a menu and an option called “Top Free Apps” or something similar. I do this in my apps and have gotten great results.
Just replace AppBrain.getAds().maybeShowInterstitial(this); with AppBrain.getAds().showInterstitial(activity);

11. You can add AppBrain to any of your apps, and immediately increase your income. Today for one of my apps that I just released, I got 10 clicks, 3 installs and $2.73! This is crazy for an app with less than 1,000 downloads. Also, I have never gotten any negative reviews because of my AppBrain ads. In fact, I think many users like exploring new apps, so it is a nice addition to any app. Good luck with whatever you decide to do!

Jun 19

How To Integrate Leadbolt Ads in 10 Minutes

This tutorial will show you how to quadruple your income from free apps in 10 minutes! Leadbolt ads have made me about 3 times as much as my Admob ads. I am currently getting between $4-8 per day with Admob and $15-20 per day with Leadbolt, and I could be making more if I increased the amount of ads I am showing. The only type of ad I show right now is a notification ad. If I showed icon ads, people say I could be making double what I am now! I may try it in the future and let you know how it goes.

1. Before you write any code, you must go to http://leadbolt.com/developers_signup.php?ref=10030964 in order to create an account and sign up. It’s very quick, only takes a few seconds.

2. Then download the sdk here: https://www.leadboltnetwork.net/publisher/help/index/cid:8

3. Add the sdk to your project. To do this, right click on the name of your project and create a new folder called “libs”. Copy and paste the sdk you downloaded into the libs folder you just created. Then right click on it and go to Build Path-> Add to Build Path.

4. First, I will show you how to add notification ads to your app. You need to create a notification ad on your Leadbolt dashboard (on the website) and enter in all of your app details. Then get the section ID number, because you will need it for the code you will be writing.

5. Next, edit your manifest file. You must add the next two lines of code before the “<application” tag:

1
2
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

6. You must also enter the next line of code after the “<application” tag but before the “/application>” tag, replacing <Package Name> with your package name (com.blah.blah):

1
2
3
4
5
6
<receiver android:name="com.Leadbolt.AdNotification"/>
<receiver android:name="<Package Name>.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>

7. Now put this code in your onCreate method, replacing MY_LEADBOLT_SECTION_ID with the section ID number you got when you created your app on the Leadbolt dashboard:

1
2
3
AdController myController = new AdController(getApplicationContext(),"MY_LEADBOLT_SECTION_ID");
myController.setAsynchTask(true);
myController.loadNotification();

8. Create a new class called BootReceiver.java and place the following code inside of it, once again making sure that your replace YOUR_LB_SECTION_ID with your ID:

1
2
3
4
5
6
7
8
9
10
11
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.Leadbolt.AdController;
public class BootReceiver extends BroadcastReceiver {
public void onReceive(Context arg0, Intent arg1) {
//register the notification on reboot
AdController mycontroller = new AdController(arg0, "YOUR_LB_SECTION_ID");
mycontroller.loadNotification();
}
}

9. Your Notification Ad should now be ready to go. You don’t need to do anything else, but if you would like to add Icon Ads, keep reading.

10. Just like you created your notification ad on the Leadbolt dashboard, you now need to create an Icon Ad for the same app. This will give you a different section ID that you will need to use for this section.

11. Next you need to edit your manifest file. Always make adding the necessary permissions to your manifest file the first thing you do, because you WILL forget one day and you will be debugging trying to find errors for hours when finally you will realize that you forgot to add it to your manifest. This still happens to me many times and it is very frustrating. Anyway, place this next to your other uses-permissions:

<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

12. Add these lines in your onCreate method, replacing the section ID and your Icon Ad will be ready to go:

1
2
3
AdController myControllerIcon = new AdController(getApplicationContext(),"MY_LEADBOLT_SECTION_ID");
myControllerIcon.setAsynchTask(true);
myControllerIcon.loadIcon();

13. You can also add many other types of ads, including banner ads, an app wall and content unlockers, but I have found that Admob gives better results for banners, and I haven’t tried the app wall, but AppBrain has been doing well for me, so I would stick to using AppBrain for an app wall. I will do this tutorial soon. The content unlockers apparently yield good amounts of money, but for me they are too annoying to the user. You are more than welcome to give them a try and let me know how they are. Go to http://leadbolt.com/developers_signup.php?ref=10030964 to sign up now and quadruple your income for apps!

Jun 13

How to Integrate Admob Banner

How to Integrate Admob Banner

  1. Go to http://admob.com and create an account.
  2. Download the Admob sdk at https://developers.google.com/mobile-ads-sdk/download
  3. Create a folder in your project called libs
  4. Copy and paste the Admob sdk .jar file into the libs folder
  5. Right-click on the .jar file and click Build Path->Add to Build Path. Doing this makes sure that the library is included in the project.
  6. Add these lines to your Android manifest file before the <application> tag. These are required, so that the user knows what permissions your app requires when they are installing the app.
1
2
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

7. Add this line to your Android manifest file anywhere between the <application></application> tags. You must define each Activity in the manifest, and this includes the AdActivity you use with Admob.

1
2
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>;

8. Go to your xml file in the layout folder that you will be placing the ad into. Add the second line of code (xmlns:ads…)into whichever type of layout you will be using. For example, I have a LinearLayout in my project:

1
2
3
4
5
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

9. Add these lines of code where you want to put the ad in the layout. You will need to change your adUnitId to whatever yours is. You will also need to change your testDevices AAAA… to whatever the ID of your phone is. If you don’t know what these are, look at 9 and 10. Otherwise, skip to 11.

1
2
3
4
5
6
7
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="aaaaaaaaaaa"
ads:adSize="BANNER"
ads:testDevices="TEST_EMULATOR, AAAAAAAAAAA"
ads:loadAdOnCreate="true" />

10. If you do not know your adUnitId, go to your Admob account page…

11. If you do not know your deviceId, go to Window->Show View->Devices. This will work whether you have a real Android device or you are using the emulator. The name of your device is what you will replace the AAAAAA in testDevices with.

12. You now should have a working banner. Make sure the device you are using has an internet connection. Run your project and see if it works. If not, let me know and we’ll figure it out.

13. Bonus: Play around with the layout a little bit. Look at the properties tab to see if there is anything you want to change. In addition, add these lines inside the previous AdView xml code and it should align on the bottom of the screen.

1
2
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"

Jun 12

How To Install the Android SDK

Before you do anything, you need to have the Android SDK installed. I know most of you already have this installed, but I don’t wanna leave anyone behind, so here it is below. I think using Eclipse makes everything much easier, so I strongly recommend using that IDE.

  1. Download and install Eclipse Classic (http://www.eclipse.org/downloads/)
  2. Download and install the newest version of the Java JDK (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
  3. Download and install the Android SDK and the ADT plugin for eclipse (http://developer.android.com/sdk/installing.html)
  4. Open Eclipse
  5. Open Preferences menu, then select Android
  6. Click Browse next to SDK Location
  7. Select the Android SDK folder that you unzipped from the Android SDK install
  8. Click Apply and then OK
  9. Launch the AVD Manager by clicking the button
  10. Select Available Packages
  11. If no Sites are listed, select Add Add-on Site…” and add https://dl-ssl.google.com/android/repository/repository.xml
  12. Check the box next to the site and click Install Selected
  13. Follow the steps in the wizard

If you have any issues or questions, don’t be afraid to ask.

Lou

Jun 11

Welcome!

Welcome to How To Make Money With Android, my new blog!

 

I will be sharing my experiences on how to monetize Android apps, as I started after Christmas of ’11 and now I am making nearly $1,000 per month as a one-man development team! I will be posting monthly income reports that break down how each of the ad networks I use are doing, as well as share some of the experiments I have done with apps and ads. I will also provide some simple and more advanced how-tos on Android features I have been playing around with.

 

Hope you enjoy and always feel free to ask any questions at lou@howtomakemoneywithandroid.com. I love to get feedback from my readers and I normally respond in a timely manner.

 

Thanks!

 

Lou