Best practices when clustering large amount of markers in Google Maps Android V2

I would like to show a large amount of markers (50k+) on a Google Map. As it turns out, the Android Maps Util Library seems to be the number one choice when clustering markers. I was wondering if there exist any best practices in order to increase the performance of the map user experience […]

ActiveAndroid app autocloses when run on Gingerbread

I have an app developed with Android Studio and Gradle. The app uses ActiveAndroid. The app works perfectly on 3.0 and up. When run on a Gingerbread device it just opens, white screen, and then closes automatically. The only clue given in the logcat when app is run is the following: D/dalvikvm´╣Ľ GC_CONCURRENT freed 195K, […]

FragmentManager.getFragmens().size() dont decrease after FragmentTransaction.remove(Fragment)

After a while searching the reason of my NPE, i noticed that despite FragmentTransaction.remove(Fragment) reallys removes the Fragment, the size of the List returned by FragmentManager.getFragments() still the same. This screenshot shows what is returned by this method after a fragment removal: The list have 3 fragments, why size still 4?

get duration of audio file

I have made a voice recorder app, and I want to show the duration of the recordings in a listview. I save the recordings like this: MediaRecorder recorder = new MediaRecorder(); recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT); folder = new File(Environment.getExternalStorageDirectory() + File.separator + “Audio recordings”); String[] files = folder.list(); int number = files.length + 1; String filename = […]

Adding an Image Frame or Watermark for Video in Android programmatically

I am working on an Android Camera Application which have capability of Image and Video capturing. Later users can annotate on the image and add watermark to Video. All went fine when drawing Annotation on Image but failed to get no solution. In iPhone there AVComposition Library to draw watermark on Videos. I don’t know […]

Why doing listview.setAdapter(_adapter) twice crashes app?

The key issue I have is doing lv_apps.setAdapter(_adapter) TWICE is what crashes my app. (Basically, when i call populateListView_trial() the 2nd time, app crashes — and the offending line is lv_apps.setAdapter(_adapter) Stacktrace is below the functions private void populateListView_trial() { blockedApps = loadArrayBlockedApps(); if(isTimerRunning()) { blockedApps = loadArrayBlockedApps(); temp_blockedList = new ArrayAdapter<String>( MainActivityCircularSeekbar.this, android.R.layout.simple_list_item_1, blockedApps); […]

ActionBar not scrolling to selected tab if this one is outside the visible bounds of actionBar on screen

I set up an actionbar in my application. I get back the ActionBar by calling the Activity.getActionBar(). Then I set all the Tabs I need thanks to ActionBar.addTab() and ActionBar.newTab() methods. When I am in landscape mode, all my categories are displayed on screen (i.e., user can see all available Tab). I select the last […]

How can I forward my localhost IP-Address to an Android Emulator?

I know it is possible to forward a port from my develop machine to an Android emulator, but how is this done? I’ve found the solution on the android-developers site, but I couldn’t see how they’ve meant their instructions… Anybody got some clear instructions on this? My develop machine is running Windows.

Android Bluetooth: Software Caused Connection Abort IOException?

Possible Duplicate: Official reasons for “Software caused connection abort: socket write error” I have problems with BluetoothChat I can’t connect Droid . I always get this IOException 08-09 20:58:24.889: INFO/BluetoothChat(17378): MESSAGE_STATE_CHANGE: 3 08-09 20:58:51.053: DEBUG/BluetoothService(17378): BT_SEND_MESSAGE 08-09 20:58:51.108: ERROR/BluetoothService(17378): disconnected 08-09 20:58:51.108: ERROR/BluetoothService(17378): Software caused connection abort 08-09 20:58:51.108: ERROR/BluetoothService(17378): at android.bluetooth.BluetoothSocket.readNative (Native Method) […]

My first app. Error: Invalid start tag LinearLayout. Why?

It was working perfectly but then I made some minor edits and now it isn’t working… Here’s the main layout xml file… It gives an error in line 3. <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”” android:orientation=”horizontal” android:layout_width=”fill_parent” android:layout_height=”fill_parent”> <LinearLayout android:layout_width=”0dip” android:layout_height=”fill_parent” android:orientation=”vertical” android:layout_weight=”6″> <TextView android:layout_width=”fill_parent” android:layout_height=”0dip” android:layout_weight=”2″ android:background=”#FFFF00″ android:text=”@string/yellow” android:textColor=”#FFFFFF” android:gravity=”center_horizontal” /> <TextView android:layout_width=”fill_parent” android:layout_height=”0dip” android:layout_weight=”1″ […]

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