I am creating application with WebView. I use the WebView to show HTML pages, containing input fields. If the HTML input fields expect an email address to be typed by the user, then I want to enable an email-friendly keyboard layout. Is it possible to set up the HTML or the WebView to show an […]
I have a button selector that changes the button image when it is pressed. I have also set an image for when the button is disabled. I try and disable the button programmatically but the disabled button image is not appearing. Is my button_selector correct? <item android:drawable=”@drawable/red_btn_bg_disabled” android:state_enabled=”false”/> <!– disabled –> <item android:drawable=”@drawable/red_btn_bg_pressed” android:state_pressed=”true”/> <!– […]
I am trying to use getChildFragmentManager() method on api 14, but of course I am getting error. Is there anyway to use this method on lower apis. Thanks
In my app I am using several preferences, including some of them related with dependencies using the following attribute: android:dependency=”pref_key”. Basically, when the checkbox is not selected, all the other preferences below are disabled: The problem happens when I setup back the following 3 lines in my custom theme: <style name=”AppThemeOrange” parent=”@style/AppTheme”> <item name=”android:textColorPrimary”>@color/OrangeMain</item> <item […]
i am trying to build apk from command line with ant. I am able to create build in debug mode while getting this error when i run in release mode for signing the apk file with the key store generated. my local.properties file look like this sdk.dir=E:\\_WorkArea\\adt-bundle-windows-x86\\sdk key.store=C:\Users\\l.keystore key.alias=tys key.store.password=tr key.alias.password=tre D:\Android-Sdks\tools\ant\build.xml:1132: The following error […]
I have an Android application that is very image intensive. I’m currently using Bitmap.createScaledBitmap() to scale the image to a desired size. However, this method requires that I already have the original bitmap in memory, which can be quite sizable. How can I scale a bitmap that I’m downloading without first writing the entire thing […]
Hello fellow programmers, I have a little problem with Preferences activity. http://developer.android.com/reference/android/preference/PreferenceActivity.html I’ve got just one preference category and a listPreference: <?xml version=”1.0″ encoding=”utf-8″?> <PreferenceCategory android:title=”@string/basic_settings” > <ListPreference android:defaultValue=”70″ android:entries=”@array/listArray” android:entryValues=”@array/listValues” android:key=”updates_interval” android:persistent=”true” android:summary=”@string/SOME_SUMMARY” android:title=”@string/SOME_TITLE” /> </PreferenceCategory> I need to have the selected value (the default one or the user defined one) written in the […]
I have a ViewAnimator (ViewSwitcher to be precise) with fade in/out animations associated to it and two Views which I transition between using the ViewAnimator.showNext() and ViewAnimator.showPrevious() methods. There is a requirement in my app where sometimes I need to start straight from the second View, without showing a fade animation in going from the […]
I think this is a pretty simply question, but how do I disable the predictive text for an EditText in Android. Do I set a property in the EditText’s XML or a property in the EditText’s object… or both? Thanks!
I would like to play sound after touching the button. MediaPlayer works fine, but I read somewhere that this library is for long .wav (like music). Is there any better way to play short .wav(2-3 sec.)?