android

Open folder navigation when button clicked in Android App?

So I have the App User store images from my App to a folder that I programmatically created in the Android phone. Say the path is /sdcard/mnt/Android/data/mypackage/images To navigate to that folder and view what they saved in there I want to create a button in my app that will help them navigate to that folder with absolute path to vi...

android/webkit text-overflow: ellipsis not working

hello -- i am trying to get the following code to work on an androind 2.1 phone (HTC Sense UI): h1 { font-size: 14px; font-weight: bold; color: #FFF; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } however, the text-overflow property does not seem to work. has anybody else had this problem...

Does it make sense to set up mediaPlayer to run in a separate thread in Android?

I've recently begun experimenting with a mediaPlayer instance in my Android app. I implemented a couple different beeps for feedback to the user. Now, when I implemented an audioTrack (for a completely different purpose), I discovered that it pretty much sets itself up as a separate thread automatically (as far as I can tell). It cert...

Displaying Web data, not web page, in Android

I need display data from a web page in a ListView, for example if I were to send a request to a time server for the U.S. time zone's times and the web server responded with an HTML web page that contained the current time's of each zone and a small icon image of each geographic region time zone, what steps would I need to take to put tha...

why does my android spinner display the radio button in the textview?

i have a spinner with an arrayadapter that is dynamically managed. when it gets displayed, the spinner text also displays the radio button. how do i get rid of this radio button? NOTE: i'm not talking about the radio buttons that appear in the list that is displayed when i select the drop down on the spinner. here is a pic of what it ...

How can I integrate Paypal to payout users when a button is clicked?

It might sound a little odd but I am in the final phases of finishing up my app that would pay users. There is an activity in the app where as and when the users use the app, money keeps accruing. I have a button in that activity called Cash Out which when the user reaches a certain amount can be clicked and is supposed to let the user...

Are databases deleted when an application is updated?

I added a table to a database that my application uses and wrote some code to work with that table. Everything worked fine for my on my phone and in the emulator, so I sent the update to the market. This cause me to receive quite a few stack traces in the developers console cause by android.database.sqlite.SQLiteException: no such tabl...

Android/Eclipse: Configuring a custom AVD?

In the AVD manager for Android in Eclipse I can specify the size of the SD card storage, the "skin", the screen resolution, and certain hardware specs. But what if I wanted to make something that specifically resembled a particular phone, say the Droid Incredible? Then I'd also need to have a row of little buttons below the screen for...

Surround SCM integration with Eclipse for Android project

I have a bunch of code in Surround SCM, which I would like to get into a workspace in Eclipse. I will need to be able to work off of two branches. One for bug fixes, and one for new features, which can then be merged into my main branch. What is the best way to do this? ...

getLastVisiblePosition returning -1

I'm having a problem with my ListView (using CursorAdapter). When I call getListView().getLastVisiblePosition() I am receiving -1. This is a problem since my list is populated with items. Additionally, getListView().getFirstVisiblePosition() always returns 0, no matter where I am scrolled on the list. Any ideas? It has something to ...

Is there a file picker widget for custom file formats?

I'm writing a bitmap editor. Each document consists of about 3 bitmap layers and documents are, at the moment, saved as a custom file with a .bme extension. These files can be converted to standard jpg/png files by rendering each bitmap on top of one bitmap and saving the latter. I need some way for the user to be able to select .bme fi...

Android Library using Main Project Resources

I am not getting is this is right way to solve problem or not... Situation is... I am creating Library for Android project.. Activity is declared in the Library Project..As it will be reusable in different projects. Lets Name it ActivityA ActivityA is using images which are Project Specific.. I have added images in Main Project... I...

Android accelerometer detect user state

I'm currently working on a project which requires the detection of user state (walking, running, driving), I've looked through some of the existing solutions on Android platform such as pedometer or calculating velocity with given acceleration, but I'm still unsure how I can approach this problem. Is there a way to accomplish this withou...

Why are there extra pixels around my Android GridView?

I have a GridView in my Android application that has a number of ImageViews in it. The space on my screen is limited and I want the images to take up as much of the available space as they can. Unfortunately, the GridView always leaves 5 pixels of empty screen space around the outside edge of the ImageViews (the space between ImageViews ...

Including visibility of options menu in Android Unit Test

I've search for a while now, but I can't find any answers on this topic. So, i've been trying to include UI tests into my suite. But I can't figure out how to check if a certain menu item on the options menu for an activity is visible after I sent a certain series of keys to the emulator. Is it possible to get a handle to the options m...

Dip to pixel conversion results in the exact same value.

I am trying to convert dips to pixels using the following function. I’ve tried low, medium, and high density emulators and regardless of the emulator I use, the pixel value remains the same value as the dip value I pass into the function. private int ConvertDips(float dips) { int pixels = (int) TypedValue.applyDimension(TypedValue.COM...

OpenGL functional example needed in Android

Does anybody have and want to share layout.xml file and working Activity class in which have example of using OpenGL in android ? ...

Creating a static data structure on application startup for Android

In my application, I am going to create a few listviews that are dependent on the listview before it. For example, 1st list has these items Illinois Indiana Then, depending on user choice, will go next screen, let's say, it contains a submenu of each type of school,that may be different or may be the same to other states Click Illin...

android contacts intent?

i'm looking for an intent filter for when you are at the contact list and you long press a contact so a the menu comes up ...

How can I get the default selector behavior on a GridView of LinearLayouts?

My problem is that I do not get the default/selected/pressed glowing background, so my gridview looks like images and text that give no indication that they can be pressed or interacted with. I have looked at the various API samples, and can see nothing different from the code they use and mine other than I host a LinearLayout instead of...