What is the command to list the available avdnames

I know I can start the emulator avd by typing emulator.exe @avdname But is there a command to list the available avdnames ? Where are this avd configuration stored ?

Why isn't there a getContentView() method for Activity?

The Activity class has a setContentView() method. The PopupWindow Class has a getContentView() method but nothing else does. Is there another way to get the main content view for an activity?

How to set active item in the Action Bar drop-down navigation?

I’m trying to fix the issue with restarting activity on orientation changes. I have an ActionBar with drop-down list navigation and after every rotation first element of this list is being activated. Keeping fragment content wasn’t difficult, but I don’t know how to set active list item. Here is the definition of ActionBar: getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); ArrayAdapter<CharSequence> […]

i want to make my application only in landscape in android

I want to make my app work only in landscape mode but can’t make it work. I have given screenOrientation = “landscape” even though the first page will be in landscape mode and other activity will be in portrait. XML FILE <application android:icon=”@drawable/icon” android:label=”@string/app_name”> <activity android:name=”.Main” android:label=”@string/app_name” android:screenOrientation=”landscape” android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”> <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” […]

Webview avoid security alert from google play upon implementation of onReceivedSslError

I have a link which will open in webview. The problem is it cannot be open until I override onReceivedSslError like this: @Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { handler.proceed(); } I am getting security alert from google play saying: Security alert Your application has an unsafe implementation of the WebViewClient.onReceivedSslError handler. […]

Corona SDK free alternatives

I tried corona sdk free edition, i really liked it. The problem is, that im not so good developer to use corona paid edition for my small project, i’m aware that i’ll not earn my money back. Are there any free alternatives, like Corona? I’d prefer lua scripting, proper IDE and some other cookies. Question […]

Fragment standard transition not animating

I’m using the v4 android compatibility library to develop a tablet UI using fragments specifically for Android 2.2 devices and up. Everything is working as it should, except that I can’t get any animations to work, not even the standard animations. Code: FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); ABCFragment abcFragment = new ABCFragment(); ft.replace(R.id.main_frame_layout_fragment_holder,abcFragment); ft.addToBackStack(null); ft.commit(); […]

Android: How to detect double-tap?

I have a problem with implementing double tap. Well I implemented the onGestureListener and I had the gestureDetector, but I’m not sure where is the problem, here is my code: public class home extends TabActivity implements OnGestureListener { /** Called when the activity is first created. */ private EditText queryText; private ResultsAdapter m_adapter; private ProgressDialog […]

Can We Install an APK From a ContentProvider?

I am working on a library to allow apps to self-update, for those that are being distributed outside of the Android Market. My original plan was to include code that would download the APK file to internal storage, and then install it from there via a ContentProvider and a content:// Uri. However, when I tried […]

Using DiskLruCache in android 4.0 does not provide for openCache method

Have anyone worked on DiskLruCache? http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html provides an example of using this caching method. But i observe the implementation for DiskLruCache in 4.0 source code does not have defined methods. Any idea how to use this?

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