Create a badge for your android app

Posted On // Leave a Comment
Gplay.ws: Create a badge for your android app
google-play-app-badge-creator
An easy to use online tool that generates a badge for your play store app. Just enter the package id of your published app and it will generate a badge (containing information such as number of downloads and ratings) that you can display on your website.

Visit http://gplay.ws/ for making a badge for your app.
[Read more]

Android ripple background

Posted On // 1 comment
In this post we are gonna see how to create a beautiful ripple animation for your app. You can easily change its color, speed of wave, one ripple or multiple ripples. I have successfully put this in my app. So you may ask any doubts you may have via the comments section below.
android-ripple-background
The following is an extract from its github page: Click here to view in Github.

Usage

Step 1

Install with Gradle

dependencies {
        compile 'com.skyfishjy.ripplebackground:library:1.0.1'
}

Step 2

RippleBackground

Add RippleBackground to your layout with content you want, like an ImageView. Configure the view customization elements using styleable attributes.
<com.skyfishjy.library.RippleBackground
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/content"
    app:rb_color="#0099CC"
    app:rb_radius="32dp"
    app:rb_rippleAmount="4"
    app:rb_duration="3000"
    app:rb_scale="6">
    <ImageView
        android:layout_width="64dp"
        android:layout_height="64dp"
        android:layout_centerInParent="true"
        android:id="@+id/centerImage"
        android:src="@drawable/demoImage"/>
</com.skyfishjy.library.RippleBackground>
Start animation:
    final RippleBackground rippleBackground=(RippleBackground)findViewById(R.id.content);
    ImageView imageView=(ImageView)findViewById(R.id.centerImage);
    imageView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            rippleBackground.startRippleAnimation();
        }
    });
Stop animation:
    rippleBackground.stopRippleAnimation();
[Read more]

5 awesome tools for app developers

Posted On // Leave a Comment
Mockups are incredibly important in the demo and marketing of an app. Nowadays, it is quite easy to make one for an app. It really cheap or inexpensive, so you should make the most of it! In this post we are gonna see some of the most effective app screenshot makers.
clean-status-bar-android
Tired of Photoshopping out notifications/low battery to make a nice, clean status bar for the Play Store? Run this app first – it draws over your status bar, showing only a full battery and clock.
Android Device Art Generator
A simple tool from Google to create a demo of your app wrapped in a real device artwork. The tool features artwork of various popular devices such as Nexus 5, Nexus 7, Nexus 10, Galaxy Nexus, Motorola XOOM etc. Using the tool is very easy. Just drag your app screenshot and drop on to the device artwork of your choice. The screenshot is uploaded and you can also add some minor customization like adding a shadow or screen glare. Once done, just drag the image to your desktop to save it and your app demo is ready.
3. Placeit: App Screenshots in realistic environments
app-mockup-placeit
Placeit is an online tool to generate app screenshots in realistic environments. It has a huge collection of high quality images of devices in different settings and people using  devices. The screens of the devices in these images are actually blank and can be termed as a template which you can replace or fill by inserting screenshots of your app. The templates features a wide variety of devices including laptops mobiles, tablets etc.

You can choose from different mockup categories, such as smartphone, laptop and desktop .

Similar to placeit.net but has far less no of products to put screenshots in.
[Read more]

Repackaging android apps for blackberry world

Posted On // Leave a Comment

The following is extracted from official blackberry developer site.I have tried this out and have succeeded in testing my android app on my z10. You can find my app here. So you can ask doubts you may have via the comments section below.

Before you begin:
Make sure that you have the latest version of Android Studio and the BlackBerry Plug-in for AndroidStudio.

Installing Android Studio

For information about installing Android Studio, see Installing Android Studio.



Install the BlackBerry Plug-in for Android Studio

Before you begin, make sure that you have the Android Studio correctly installed and configured on your computer.
There is an alternate way to install the plug-in on the Mac OS or Linux. You can extract the BlackBerry Plug-in for Android Studio zip file directly to <your_android_studio_installation_folder>\plugins folder.
  1. Download the BlackBerry Plug-in for Android Studio.
  2. Open your project in Android Studio.
  3. On the File menu, click Settings.
    The Settings menu choice from the File menu.
  4. Select Plug-ins from the navigation list on the left.
  5. Click Install plugin from disk.
    The Install plugin from disk button in the Settings dialog box.
  6. Select the location of the zip file containing the BlackBerry Plug-in for Android Studio.
  7. Click Apply.
You must restart Android Studio for your changes to take effect. After Android Studio restarts, theBlackBerry ADB Proxy Manager icon appears in the main toolbar. The BlackBerry ADB Proxy Manager manages connections to the Android Debug Bridge (ADB).
The BlackBerry 10 ADB Proxy Manager icon in the main toolbar.
After you finish: 
After you install the plug-in, you should verify that Android Studio has successfully installed theAndroid SDK required for your app.
To verify that the required Android SDK (API level) for your app has been installed:
  1. Start Android Studio.
  2. On the Tools menu, click Android and then click SDK Manager.
  3. Verify that the required Android SDK (API level) for your app has a Status of Installed.
The maximum API level supported is Android 4.3 (API 18).

The BlackBerry ADB Proxy Manager

The BlackBerry Android Device Bridge (ADB) Proxy Manager is added when you install the BlackBerry Plug-in. It displays all of your connected BlackBerry devices and simulators.
The BlackBerry ADB Proxy Manager.
You can use the BlackBerry ADB Proxy Manager to:
  • Establish an ADB connection between your IDE and your BlackBerry 10 device or BlackBerry 10 Device Simulator
  • Generate a device debug token and deploy it to your BlackBerry 10 device

Using the BlackBerry ADB Proxy Manager in Android Studio

  1. Connect your BlackBerry 10 device to your computer with a USB cable, or start the BlackBerry 10 Device Simulator.
  2. Open your project in Android Studio.
  3. Click The BlackBerry icon. to start the BlackBerry ADB Proxy Manager.
    The icon to start the BlackBerry ADB Proxy Manager.
  4. Click the start button to use your BlackBerry 10 device, or BlackBerry 10 Device Simulator with the BlackBerry ADB Proxy Manager.
    The start button for the BlackBerry ADB Proxy Manager.
  5. After your device or simulator has connected to the BlackBerry ADB Proxy Manager, run or debug your Android app.
Disconnecting the BlackBerry ADB Proxy Manager
When you're done working with your Android app, click the stop button to disconnect your device or simulator from the BlackBerry ADB Proxy Manager.
The stop button for the BlackBerry ADB Proxy Manager.

Create and deploy a device debug token

A device debug token allows you to deploy and debug an unsigned Android app on your BlackBerry 10device. You don't need a device debug token when you're using the BlackBerry 10 Device Simulator to test and debug your Android apps.
For more information, see the BlackBerry 10 Simulator Documentation.
Before you begin testing, see Getting started.
You must Create a BlackBerry ID Signing token and Developer certificate before you can test and debug yourAndroid app on a BlackBerry 10 device.
When you have a BlackBerry ID Signing token and Developer certificate configured, you can connect aBlackBerry device that doesn't contain a device debug token and use the BlackBerry ADB Proxy Manager to create a new device debug token.
Follow these steps to create and deploy a device debug token:
  1. Enable Development Mode on your BlackBerry 10 device. For more information, see Set up your test environment.
  2. Connect your BlackBerry 10 device to your computer with a USB cable.
  3. Open your project in your IDE.
  4. Click The BlackBerry icon. on the main toolbar to start the BlackBerry ADB Proxy Manager.
    In the BlackBerry ADB Proxy Manager, when you try to start a BlackBerry 10 device that doesn't have a device debug token, the Missing Debug Token message appears in the Statuscolumn. A dialog box that begins the process of creating a device debug token is displayed.
    The BlackBerry ADB Proxy Manager debug token missing message.
  5. In the Confirmation dialog box, click Yes.
    Dialog box asking to create and upload a device debug token.
  6. In the BlackBerry Debug Token Request dialog box, click Deploy Debug Token.The BlackBerry Debug Token Request dialog box.
  7. In the Password Prompt dialog box, enter your BlackBerry ID Signing token password and clickOK.
    The CSK password dialog box.
    For more information, see Create a BlackBerry ID Signing token.
    The new device debug token is created and deployed (uploaded) to your BlackBerry 10 device.
    The messages generated as the device debug token is created and deployed.
After you've created and deployed the device debug token, start your BlackBerry 10 device in theBlackBerry ADB Proxy Manager.
The start button for the BlackBerry ADB Proxy Manager.
[Read more]

How to include "don't ask me again" popup dialog in an android app

Posted On // Leave a Comment

This post takes you through as to on how to include a "don't ask me again" popup dialog in your android app.I have successfully put this in my app. So you may ask any doubts you may have via the comments section below.


Logic: It sets a value in Android Preferences and checks it to determine whether it will show the dialog or not.
Tested in: Android Studio 1.0.1 and earlier
create checkbox.xml in resources/layoutsand paste the following
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout_root"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal"
    android:padding="10dp" >
    <CheckBox
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/skip"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Ok please do not show again." >
    </CheckBox>
</LinearLayout>
Paste the following where you want the box to appear
        AlertDialog.Builder adb = new AlertDialog.Builder(Youractivity.this);
        LayoutInflater adbInflater = LayoutInflater.from(Youractivity.this);        
        dontShowAgain = (CheckBox) eulaLayout.findViewById(R.id.skip);
        adb.setView(eulaLayout); adb.setIcon(R.drawable.yourimage);
        adb.setTitle("Attention");
        adb.setMessage("Your message here");
        adb.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
                String checkBoxResult = "NOT checked";
                if (dontShowAgain.isChecked())
                    checkBoxResult = "checked";
                SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
                SharedPreferences.Editor editor = settings.edit();
                editor.putString("skipMessage", checkBoxResult);
                // Commit the edits!
                editor.commit();
            }
        });

        adb.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
                String checkBoxResult = "NOT checked";
                if (dontShowAgain.isChecked())
                    checkBoxResult = "checked";
                SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
                SharedPreferences.Editor editor = settings.edit();
                editor.putString("skipMessage", checkBoxResult);
                // Commit the edits!
                editor.commit();
            }
        });
        SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        String skipMessage = settings.getString("skipMessage", "NOT checked");
        if (!skipMessage.equals("checked"))
            adb.show();
SO, I did "copy and paste" too. Changed only the message strings. It works beautifully.

The following screenshot is from Facts! app, you can download it from here.


I'm including the code here with reference to the original author's site.
[Read more]