Multiple notifications to the same activity

I have an activity that is being opened from the notification bar, but when I do NotificationManager.notify(…), I’m giving to the intent a different bundle, so that each notification opens the same activity, but obtaining from the DB other information each other. But when I try to enter to any of the notifications (for example […]

How do you to check if a user has rated your app on the android market?

I want to check to see if a user has rated my app on the android market, not how many stars, just if they have. And if they haven’t I will prompt them with a dialog asking them to rate it with this code: startActivity( new Intent( Intent.ACTION_VIEW, Uri.parse(“market://details?id=packagename”) ) );

Android toggle button custom look

I’ve been trying to customize the toggle button look but with no success. Here is how I want it to look like: Can someone give me a tutorial?

How do you add an SDK to Android Studio?

I’m using Google’s Android Studio 0.1 based on IntelliJ, and I cannot figure out how to add additional SDKs to my project. I exported my existing project from Eclipse to a Gradle project, which I imported into Android Studio, as recommended by Google. My project’s SDK is Google APIs 2.3.3. However, I use a library […]

How to make QR code for BOTH Android Market and App Store

I have an app which has versions for both Android and iPhone. So I have two URL-s for them (Market and AppStore), but I do not want to add two different QR codes to the homepage. Is there a way (online service I’d expect) to have single URL for both markets, which will detect user […]

Android Pop-up message

I’m trying to get a pop up text box, with some disclaimer and app info at the start of my Android application’s launch. Does anyone know how to implement this? Also could it read from a txt file? Thanks

How can I find out if a device has a vibrator?

I have a device of which I don’t know if it has a vibrator. Is there a way to query for the availability of the vibrator?

ObjectAnimator animate LinearLayout width

Ok, so i checked out He says you can animate the property of an object in a given time. And i tried moving around objects and it looks fine. I encountered a problem when i went changing the width of a LinearLayout. I got this: 10-26 14:51:27.190: E/PropertyValuesHolder(12681): Couldn’t find setter/getter for property width […]

BroadcastReceiver: can't instantiate class; no empty constructor

I have inner class as broadcast receiver: public class ManualBacklightReceiver extends BroadcastReceiver { public static final String ACTION_MANUAL_BACKLIGHT = “”; public ManualBacklightReceiver() { } @Override public void onReceive(Context context, Intent intent) { Log.d(“ManualBacklightReceiver”, intent.getAction()); } }; AndroidManifest: <receiver android:name=”.statusbar.powerwidget.PowerWidgetGrid$ManualBacklightReceiver”> <intent-filter> <action android:name=””/> </intent-filter> </receiver> And when I send the intent with this code: Intent intent […]

Generic class that extends class and implements interface

To reduce dependece of class, I want to send parameter (using generic class) to constructor that extends some class and implements interface, for example public interface SomeInterface{ public void someMethod(); } public class MyFragment extends Fragment implements SomeInterface{ //implementation } //here is classs, that I need to create. T must extend Fragment and implements //SomeInterface. […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.