Tag: android

Augmented Reality Toolkit – Android

I have been searching around for free or commercial AR toolkits and need some advice on the best one! I don’t want to have one that recognises a pattern and creates a shape. The idea I have uses the local location and uses POI’s from a server to present them onto an AR view. Any […]

Android: It is a good practice to get Context statically?

currently, in my App I have the following class: public class MyApp extends Application { private static Context context; public void onCreate(){ super.onCreate(); MyApp.context = getApplicationContext(); } public static Context getContext() { return MyApp.context; } } I use this to have Context in classes that are neither Activities nor Fragment. It’s there any difference between […]

Changing coding style due to Android GC performance, how far is too far?

I keep hearing that Android applications should try to limit the number of objects created in order to reduce the workload on the garbage collector. It makes sense that you may not want to created massive numbers of objects to track on a limited memory footprint, for example on a traditional server application created 100,000 […]

Can setDisplayShowTitleEnabled be set in xml to theme an ActionBar?

I am trying to theme an ActionBar in xml rather than code. So far I have this: <style name=”TestTheme” parent=”android:Theme.Holo.Light”> <item name=”android:actionBarStyle”>@style/TestActionBar</item> </style> <style name=”TestActionBar” parent=”android:style/Widget.Holo.Light.ActionBar”> <item name=”android:background”>@drawable/actionbar_background</item> </style> This is giving me my custom background and I want to be able to turn off the title here as well. In code, I would set […]

SupportMapFragment's getMap() returns null

I’m trying to create a SupportMapFragment dynamically and to put it in a FrameLayout container. My issue is that mMapFragment.getMap() returns null… Anybody can help? CenterMapFragment.java public class CenterMapFragment extends Fragment { private SupportMapFragment mMapFragment; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.center_map_fragment, container, false); } @Override public void onActivityCreated (Bundle […]

Prevent duplicate activities

So, I’m both new to Java and to creating android apps, but not new to programming. I’ve read through most of the developer.android.com site, but I haven’t been able to find this: I want to make sure that a certain activity isn’t running more than once at the same time. So we have a task […]

How to generate signed and unsigned APK's using gradle?

I need to generate both unsigned and signed release apks using gradle command line (gradlew assembleRelease is the command im using now) The apks must be aligned. I checked this: Build Unsigned APK with Gradle but it seems to be an old way to achieve this, now it does not work and something has changed […]

import android.support.wearable cannot be resolved

I am trying to develop a simple Android Wear app but I am facing problem: import android.support.wearable cannot be resolved

M2e – plugin execution not covered by lifecycle

OS: ubuntu 11.10 Eclipse: Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857 Java: jdk1.7.0_03 SDK adb :Android Debug Bridge version 1.0.29 Trying to build javaocr in eclipse by using m2e android (2.8.4). it results in project being built with errors in pom.xml: Description Resource Path Location Type Plugin execution […]

Fetch dial number while calling.

When I enter any number in keypad and after when I press call button before the phone make call, I want to get that dial number in logcat. See below Image for understand. Can I get the number at the time of calling, if yes then How can I?

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