android

The Jar of this class file blongs to container Android 2.0.1 which does not allow modifications

can any one provide me solution to this error i have searched alot to this problem but failed i am using eclipse with ADT with android sdk 2.0.1 OS Microsoft windows VIsta x86 ...

Get an integer array from an xml resource in Android program

Just a quickie, i have an xml resource in res/values/integers.xml <?xml version="1.0" encoding="utf-8"?> <resources> <integer-array name="UserBases"> <item>2</item> <item>8</item> <item>10</item> <item>16</item> </integer-array> </resources> and ive tried several things to access it:...

Can't change the layout of alternatives keys show on android keyboard

I want to change the default layout which Android uses for show the alternative keys when performs a long-press on a key. Keys have an attribute "android:popupKeyboard" used for define the layout of the alternative key list (which could be a Keyboard reference) but when I use it the Android's default layout still appears. Is possible to ...

Changing Android Spinner Layout/Design

Hello! I am trying to modify the design of Spinner widget. I can change the background, but I can't find a way to change the arrow icon on the right side. Is there a way to do it? Thanks! ...

Storing SSL sessions in Android

Im pretty new to SSL, however in making an SSL request, how would i prevent the "handshake" happening each time i call an HTTPS url in Android. Is it possible to just store the SSL session? ...

Fixed: "Android: Detecting focus/pressed color"

I'm trying to detect the focus/pressed color for button and other elements. This is needed because I'm developing new components and it's important that those look as part of platform. Those colors are ORANGE on android sdk and GREEN on HTC SenseUI. If I could detect that color my component will look as part of platform on both version. ...

Problem with list activity

I have implmented pagination and it display 5 records per page. Now suppose I am on page 3 and click 3'rd element then 3'rd element of page-1 is selected. I am not able to figure out problem as I always create new list object while setting data. I used below code temp = new ArrayList(); this.someListAdapter = new SomeListAdapter(this,...

ImageButtons in a ViewGroup

My app's underlying view has bitmaps, lines, etc drawn on a canvas. I want to display images (icons) on top of this which will respond to Touch events. The number and positioning of such images will be variable depending on data in an SQLite database. Am I correct in thinking that the way to achieve this is to have a ViewGroup to which ...

What fonts are available on Android?

I know that android has a collection of fonts specifically designed by Ascender for Google, but what other fonts are available? I'm looking for a list like this one or even better this one. ...

How to take emulator screen shots using Eclipse?

I need to take screen shots of an android application running on an emulator in Eclipse Galileo. Is there a built in feature for this or do I have to download a plugin of some sorts? ...

Between 2 Androids and to other OS mobiles

Hi, PhoneMyPC tool in Android provides remote desktop connection to PC. But, Do Android based mobiles support VNC protocol/softwares for connection between 2 android mobiles ? Do android based mobiles support RDP or other tools for connections to other OS based mobiles like windows, symbian etc ? Thx in advans, Karthik Balaguru ...

Download scripts for Android Scripting Environment

Downloaded ASE from google code, and was looking through tutorials, and available scripts. I found a script I wanted to try, however copy pasting it is removing all whitespace (and this is a Python script...). Is there a simple way to download a script from the internet into the Android Scripting Environment? ...

Intent.setClass error

I have the following ClickListener code. It will do different stuff depending on what button was pressed. If the Vehicle button is pressed I want it to start another activity by loading the Vehicles.class but it is erroring during the setClass() statement.I believe it is erroring when trying to instantiate the Vehicles class. The error r...

Android force Horizontal layout

I'm pretty close to finished with my first game for Android, and I've come across a problem that's so simple I'm sure I'll feel stupid for not knowing how to solve it, but how can I force the app to stay in a Horizontal layout? Right now, if you turn the phone (emulator) it flips the graphics and squeezes them. I want the game to start...

Android ListView programmatic selection/highlight

I have a simple listview and listadapter setup as follows: listAdapter = new ArrayAdapter<MyDomainObject>(this, android.R.layout.simple_list_item_1, listOfDomainObjects); listView.setAdapter(listAdapter); The user makes a selection on the list which takes them to another activity. From the new activity they can click their selection w...

Fast Bitamp Blur For Android SDK

Currently in an Android application that I'm developing I'm looping through the pixels of an image to blur it. This takes about 30 seconds on a 640x480 image. While browsing apps in the Android Market I came across one that includes a blur feature and their blur is very fast (like 5 seconds) so they must be using a different method o...

Android - How do I get raw touch screen information?

Hi, I'm working on a painting application for Android and I'd like to use raw data from the device's touch screen to adjust the user's paint brush as they draw. I've seen other apps for Android (iSteam, for example) where the size of the brush is based on the size of your fingerprint on the screen. As far as painting apps go, that would...

Kiosk mode in Android

I'm in the process of evaluating if and how a CF .NET enterprise application can be ported to run on Android devices. The application on Windows Mobile phones are run in kiosk mode where the application autostart in fullscreen-mode after booting and with the users unable to accidentally or willingly access any other parts of the phone. I...

Does Android support scaling Video?

Using a VideoView is it possible to set a scale factor for Android? By Default the video view resizes itself to fit the encoded resolution of the Video. Can I force Android to render a video into a smaller or larger rect? ...

From WebView Errors to ImageView Cover-ups to Screen Orientation

It all started with a simple WebView within an Android app. This view loads info from a public URL. Nothing unusual there. However ... if there should be a network interruption, you can easily end up with an error displayed prominently in the WebView. Well, that's no good, right? So I searched the docs and elsewhere for a way to suppr...